forked from GeoNode/geonode-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.oas2.yml
78 lines (72 loc) · 1.58 KB
/
common.oas2.yml
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
swagger: '2.0'
info:
version: '1.0'
title: GeoNode API Demo
description: >-
### Notes:
This OAS2 (Swagger 2) specification defines common models and responses,
that other specifications may reference.
For example, check out the user poperty in the main.oas2 dataset-partial
model - it references the dataset model in this specification!
Likewise, the main.oas2 operations reference the shared error responses in
this common specification.
contact:
name: GeoNode Development Team
url: 'http://geonode.org'
license:
name: GPL-3.0
host: geonode.org
securityDefinitions: {}
paths: {}
responses:
'401':
description: ''
schema:
$ref: '#/definitions/error-response'
examples:
application/json:
status: '401'
error: Not Authorized
'403':
description: ''
schema:
$ref: '#/definitions/error-response'
examples:
application/json:
status: '403'
error: Forbbiden
'404':
description: ''
schema:
$ref: '#/definitions/error-response'
examples:
application/json:
status: '404'
error: Not Found
'500':
description: ''
schema:
$ref: '#/definitions/error-response'
examples:
application/json:
status: '500'
error: Server Error
definitions:
error-response:
type: object
title: Error Response
properties:
status:
type: string
error:
type: string
required:
- status
- error
schemes:
- http
- https
consumes:
- application/json
produces:
- application/json