|
| 1 | +openapi: 3.0.4 |
| 2 | +info: |
| 3 | + title: APEx Dispatch API |
| 4 | + description: |- |
| 5 | + This is a temporary description. |
| 6 | + version: 1.0.0 |
| 7 | +externalDocs: |
| 8 | + description: Find out more about Swagger |
| 9 | + url: https://swagger.io |
| 10 | +# server: |
| 11 | +# - url: https://petstore3.swagger.io/api/v3 |
| 12 | +tags: |
| 13 | + - name: Upscale Tasks |
| 14 | + description: API calls to manage upscale tasks |
| 15 | + # externalDocs: |
| 16 | + # description: Find out more |
| 17 | + # url: https://swagger.io |
| 18 | + - name: Unit Jobs |
| 19 | + description: API calls to manage processing jobs |
| 20 | + # externalDocs: |
| 21 | + # description: Find out more about our store |
| 22 | + # url: https://swagger.io |
| 23 | + |
| 24 | +paths: |
| 25 | + /tiles: |
| 26 | + post: |
| 27 | + tags: |
| 28 | + - Upscale Tasks |
| 29 | + summary: Retrieve a list of tiles to process |
| 30 | + description: |- |
| 31 | + Given a certain area of interest and a tiling grid definition (from the service’s Max AOI capacity), calculate the number of tiles to be processed by the upscaling service |
| 32 | + requestBody: |
| 33 | + description: Request the tiles to be processed. |
| 34 | + content: |
| 35 | + application/json: |
| 36 | + schema: |
| 37 | + $ref: '#/components/schemas/TileRequest' |
| 38 | + required: true |
| 39 | + responses: |
| 40 | + '200': |
| 41 | + description: Successfully calculated tiles |
| 42 | + content: |
| 43 | + application/json: |
| 44 | + schema: |
| 45 | + $ref: '#/components/schemas/TileResponse' |
| 46 | + '400': |
| 47 | + description: Invalid ID supplied |
| 48 | + '404': |
| 49 | + description: Pet not found |
| 50 | + '422': |
| 51 | + description: Validation exception |
| 52 | + # default: |
| 53 | + # description: Unexpected error |
| 54 | + # content: |
| 55 | + # application/json: |
| 56 | + # schema: |
| 57 | + # $ref: "#/components/schemas/Error" |
| 58 | + security: |
| 59 | + - petstore_auth: |
| 60 | + - write:pets |
| 61 | + - read:pets |
| 62 | +components: |
| 63 | + schemas: |
| 64 | + TileRequest: |
| 65 | + type: object |
| 66 | + required: |
| 67 | + - aoi |
| 68 | + - grid |
| 69 | + properties: |
| 70 | + aoi: |
| 71 | + type: object |
| 72 | + description: GeoJSON Feature using coordinates in EPSG:4326 |
| 73 | + example: { "type": "Feature", "geometry": {}} |
| 74 | + grid: |
| 75 | + type: string |
| 76 | + example: S2_UTM_TILING_GRID |
| 77 | + enum: |
| 78 | + - S2_UTM_TILING_GRID |
| 79 | + TileResponse: |
| 80 | + type: object |
| 81 | + properties: |
| 82 | + tiles: |
| 83 | + type: array |
| 84 | + items: |
| 85 | + type: object |
| 86 | + description: GeoJSON Feature using coordinates in EPSG:4326 |
| 87 | + example: { "type": "Feature", "geometry": {}} |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + securitySchemes: |
| 92 | + petstore_auth: |
| 93 | + type: oauth2 |
| 94 | + flows: |
| 95 | + implicit: |
| 96 | + authorizationUrl: https://petstore3.swagger.io/oauth/authorize |
| 97 | + scopes: |
| 98 | + "write:pets": modify pets in your account |
| 99 | + "read:pets": read your pets |
| 100 | + api_key: |
| 101 | + type: apiKey |
| 102 | + name: api_key |
| 103 | + in: header |
0 commit comments