-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoms.yml
38 lines (38 loc) · 846 Bytes
/
oms.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
oms: 1
info:
version: 1.0.0
title: NewsAPI
description: NewsAPI.org's REST API service (https://newsapi.org)
license:
name: MIT
url: https://opensource.org/licenses/MIT
lifecycle:
startup:
command: ["node", "/app/src/index.js"]
health:
http:
path: /health
port: 8080
actions:
topHeadlines:
help: Access News API's Top Headlines
http:
path: /top-headlines
method: get
port: 8080
arguments:
sources:
help: Refer to official API service docs.
type: string
default: "new-york-times"
required: false
in: query
output:
help: Top headlines and ledes from requested source(s)
contentType: application/json
type: map
environment:
NEWSAPI_API_KEY:
type: string
required: true
help: API Key provided by NewsAPI