Add GET endpoint for sequence events.

Provides a variety of formats:

* JSON
* Seis+JSON
* GeoJSON
* HTML
This commit is contained in:
D. Berge
2021-05-11 23:37:55 +02:00
parent 61ffd1b766
commit a652a08815
2 changed files with 29 additions and 0 deletions

View File

@@ -816,6 +816,32 @@ paths:
/project/{project}/sequence/{sequence}:
get:
description: Get a sequence
tags: [ "sequences" ]
parameters:
- $ref: "#/components/parameters/Project"
- $ref: "#/components/parameters/Sequence"
responses:
"200":
description: Sequence data.
content:
application/json:
schema:
$ref: "#/components/schemas/Sequence"
application/vnd.seis+json:
schema:
type: object
application/geo+json:
schema:
$ref: "#/components/schemas/GeoJSONFeature"
text/html:
schema:
type: string
application/pdf:
schema:
type: string
format: binary
patch:
summary: Update sequence information.
description: All of the properties are optional. Users may specify only the one(s) they need, other properties remain unchanged. An empty object body causes the resource not to be modified at all. Final sequence properties only have effect if a final P1 file exists for the relevant sequence.