|
| 1 | +openapi: 3.0.3 |
| 2 | +info: |
| 3 | + title: in-situ-data-services |
| 4 | + description: API for querying in-situ data sources |
| 5 | + version: 0.0.1 |
| 6 | + license: |
| 7 | + name: Apache 2.0 |
| 8 | + url: http://www.apache.org/licenses/LICENSE-2.0.html |
| 9 | + |
| 10 | +servers: |
| 11 | + - url: https://k3a3qmarxh.execute-api.us-west-2.amazonaws.com/dev |
| 12 | + description: 'JPL AWS Cloud API Gateway' |
| 13 | + - url: https://1gp9st60gd.execute-api.us-west-2.amazonaws.com/dev |
| 14 | + description: 'MCP AWS Cloud API Gateway - DEV Venue' |
| 15 | + - url: https://58nbcawrvb.execute-api.us-west-2.amazonaws.com/test |
| 16 | + description: 'MCP AWS Cloud API Gateway - TEST Venue' |
| 17 | + |
| 18 | +paths: |
| 19 | + '/am-uds-dapa/collections': |
| 20 | + get: |
| 21 | + summary: 'list all collections in Cumulus' |
| 22 | + parameters: |
| 23 | + - name: "Authorization" |
| 24 | + description: "Authorization Bearer token. It should begin with the key `Bearer <token>`" |
| 25 | + in: "header" |
| 26 | + required: true |
| 27 | + schema: |
| 28 | + type: "string" |
| 29 | + - name: "limit" |
| 30 | + description: "How many items in 1 page. defaulted to 10" |
| 31 | + in: "query" |
| 32 | + required: false |
| 33 | + schema: |
| 34 | + type: "string" |
| 35 | + - name: "offset" |
| 36 | + description: "How many items to skip. if limit == 10, offset = 10 for 2nd page, so on and so forth" |
| 37 | + in: "query" |
| 38 | + required: false |
| 39 | + schema: |
| 40 | + type: "string" |
| 41 | + responses: |
| 42 | + '200': |
| 43 | + description: 'Successful query' |
| 44 | + content: |
| 45 | + application/json: |
| 46 | + schema: |
| 47 | + type: object |
| 48 | + properties: |
| 49 | + features: |
| 50 | + example: 'STAC collection array' |
| 51 | + type: array |
| 52 | + items: |
| 53 | + type: object |
| 54 | + '500': |
| 55 | + description: 'Server Error' |
| 56 | + '403': |
| 57 | + description: 'Authorization Error' |
| 58 | + '401': |
| 59 | + description: 'Authorization Error' |
| 60 | + put: |
| 61 | + summary: 'ingest new granules to a collection' |
| 62 | + parameters: |
| 63 | + - name: "Authorization" |
| 64 | + description: "Authorization Bearer token. It should begin with the key `Bearer <token>`" |
| 65 | + in: "header" |
| 66 | + required: true |
| 67 | + schema: |
| 68 | + type: "string" |
| 69 | + requestBody: |
| 70 | + description: 'Ingestion Body in JSON' |
| 71 | + required: true |
| 72 | + content: |
| 73 | + application/json: |
| 74 | + schema: |
| 75 | + type: object |
| 76 | + properties: |
| 77 | + provider_id: |
| 78 | + type: string |
| 79 | + description: 'Provider ID defined in Cumulus' |
| 80 | + features: |
| 81 | + description: 'STAC granules array' |
| 82 | + type: array |
| 83 | + items: |
| 84 | + type: object |
| 85 | + responses: |
| 86 | + '200': |
| 87 | + description: 'Successful query' |
| 88 | + content: |
| 89 | + application/json: |
| 90 | + schema: |
| 91 | + type: object |
| 92 | + properties: |
| 93 | + message: |
| 94 | + description: 'result description' |
| 95 | + type: string |
| 96 | + '500': |
| 97 | + description: 'Server Error' |
| 98 | + '403': |
| 99 | + description: 'Authorization Error' |
| 100 | + '401': |
| 101 | + description: 'Authorization Error' |
| 102 | + '/am-uds-dapa/collections/{collectionId}/items': |
| 103 | + get: |
| 104 | + summary: 'list all granules in Cumulus' |
| 105 | + parameters: |
| 106 | + - name: "Authorization" |
| 107 | + description: "Authorization Bearer token. It should begin with the key `Bearer <token>`" |
| 108 | + in: "header" |
| 109 | + required: true |
| 110 | + schema: |
| 111 | + type: "string" |
| 112 | + - name: "collectionId" |
| 113 | + description: "Cumulus Collection Id from DAPA collection endpoint. add `*` if querying from all collections" |
| 114 | + in: "path" |
| 115 | + required: true |
| 116 | + schema: |
| 117 | + type: "string" |
| 118 | + - name: "limit" |
| 119 | + description: "How many items in 1 page. defaulted to 10" |
| 120 | + in: "query" |
| 121 | + required: false |
| 122 | + schema: |
| 123 | + type: "string" |
| 124 | + - name: "offset" |
| 125 | + description: "How many items to skip. if limit == 10, offset = 10 for 2nd page, so on and so forth" |
| 126 | + in: "query" |
| 127 | + required: false |
| 128 | + schema: |
| 129 | + type: "string" |
| 130 | + responses: |
| 131 | + '200': |
| 132 | + description: 'Successful query' |
| 133 | + content: |
| 134 | + application/json: |
| 135 | + schema: |
| 136 | + type: object |
| 137 | + properties: |
| 138 | + features: |
| 139 | + description: 'STAC granule (aka item) array' |
| 140 | + type: array |
| 141 | + items: |
| 142 | + type: object |
| 143 | + '500': |
| 144 | + description: 'Server Error' |
| 145 | + '403': |
| 146 | + description: 'Authorization Error' |
| 147 | + '401': |
| 148 | + description: 'Authorization Error' |
0 commit comments