Apps

An App is anything that owns Resources and reports Events.


Apps List

GET /apps

Request Examples

$ curl -n -X GET https://indy-events.api.wdtinc.com/apps \
-H "Accept: application/vnd.wdt+json; version=1"

Response Example

HTTP/1.1 200 OK
[{
  'id': '6616ceaa-3d8e-4191-b735-e5aa86026666',
  'handle': 'Tilesaw',
  'description': 'Converts large geotiffs into tiles for map apis.'
},{
  'id': '5ecd6a62-16c9-4dd3-b9eb-ffad3ad81e38',
  'handle': 'Smelt',
  'description': 'Receives payloads from the Content team and converts them into geotiffs.'
},{
  'id': '41260b7f-cec3-41e1-a269-ee5aada32813',
  'handle': 'FrameWatch',
  'description': 'Polls the Platform API periodically and reports when there is a late or missing frame.'
}]

App Information

GET /apps/{app-uuid}

Request Example

$ curl -n -X GET https://indy-events.api.wdtinc.com/apps/6616ceaa-3d8e-4191-b735-e5aa86026666 \
-H "Accept: application/vnd.wdt+json; version=1"

Response Example

HTTP/1.1 200 OK
{
  'id': '6616ceaa-3d8e-4191-b735-e5aa86026666',
  'handle': 'Tilesaw',
  'description': 'Converts large geotiffs into tiles for map apis.'
}

App Creation

POST /apps

Request Example

$ curl -n -X POST https://indy-events.api.wdtinc.com/apps \
-H "Accept: application/vnd.wdt+json; version=1" \
-H "Content-Type: application/json" \
-d '{
  'handle': 'Tilesaw',
  'description': 'Converts large geotiffs into tiles for map apis.'
}'

Response Example

HTTP/1.1 201 Created
{
  'id': '6616ceaa-3d8e-4191-b735-e5aa86026666',
  'handle': 'Tilesaw',
  'description': 'Converts large geotiffs into tiles for map apis.'
}

App Update

PUT /apps

Request Example

$ curl -n -X PUT https://indy-events.api.wdtinc.com/apps/6616ceaa-3d8e-4191-b735-e5aa86026666 \
-H "Accept: application/vnd.wdt+json; version=1" \
-H "Content-Type: application/json" \
-d "{
  'description': 'Description is the only mutable field.'
}"

Response Example

HTTP/1.1 201 Created
{
  'id': '6616ceaa-3d8e-4191-b735-e5aa86026666',
  'handle': 'Tilesaw',
  'description': 'Description is the only mutable field.'
}

App Removal

DELETE /apps/{app-id}

Request Example

$ curl -n -X DELETE https://indy-events.wdtinc.com/apps/6616ceaa-3d8e-4191-b735-e5aa86026666 \
-H "Accept: application/vnd.wdt+json; version=1"

Response Example

{
  'message': 'Successfully deleted app, Tilesaw.'
}