-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
106 lines (99 loc) · 2.68 KB
/
swagger.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
openapi: 3.0.0
info:
version: 1.0.0
title: Provgen API
description: API specification of the Provgen service
contact:
name: Javier Quinteros
url: http://www.gfz-potsdam.de/en/section/seismology/staff/profil/javier-quinteros/
email: [email protected]
servers:
- url: 'http://rz-vm258.gfz-potsdam.de/eudat/provgen'
description: Development server at GEOFON
paths:
/version:
get:
summary: Get version of the code
description: Returns a string specifying the version.
responses:
'200':
description: Version of the code
content:
text/plain:
schema:
type: string
/features:
get:
summary: Get features of the system
description: Returns a set of attributes describing the capabilities of the system.
responses:
'200':
description: Capabilities of the system
content:
application/json:
schema:
required:
- ProvStore
properties:
whatever:
type: boolean
/templates:
get:
summary: Get list of templates available
description: Returns a list containing all templates available.
responses:
'200':
description: List of templates
content:
application/json:
schema:
type: array
items:
required:
- name
- doc
properties:
name:
type: string
doc:
type: string
'204':
description: No templates available.
'/templates/{template}':
get:
summary: Gets a template identified by name
description: Create a provenance record and save it in ProvStore
parameters:
- name: template
in: path
required: true
description: Name of the template
schema:
type: string
responses:
'200':
description: The ID of the record
content:
text/plain:
schema:
type: integer
'204':
description: The Template does not exist.
'400':
$ref: '#/components/responses/Standard4XXErrorResponse'
components:
schemas:
Error:
type: object
properties:
code:
type: string
message:
type: string
responses:
Standard4XXErrorResponse:
description: Bad Request.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'