-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathopenapi.yaml
144 lines (135 loc) · 3.49 KB
/
openapi.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
x-commons:
common-responses: &common-responses
'400':
$ref: '#/components/responses/400BadRequest'
'429':
$ref: '#/components/responses/429TooManyRequests'
'503':
$ref: '#/components/responses/503ServiceUnavailable'
default:
$ref: '#/components/responses/default'
openapi: 3.0.0
info:
version: "1.0.0"
title: |-
Eurostat NUTS API.
x-summary: >-
EU Github Nuts Maps (nuts, coastal lines)
description: |
#### Documentazione
The main goal of GISCO's various activities and long-term projects is to better integrate statistical and geospatial information at the EU level.
termsOfService: 'https://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/administrative-units-statistical-units'
contact:
email: [email protected]
name: Roberto Polli
url: https://twitter.com/ioggstream
x-audience:
- public
x-api-id: 00000000-0000-0000-0000-000000000000
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
x-lifecycle:
published: 1970-01-01
deprecated: 2050-01-01
retired: 2050-06-01
maturity: published
tags:
- name: public
description: Retrieve informations
externalDocs:
url: http://docs.my-api.com/pet-operations.htm
servers:
- description: Development server
url: https://raw.githubusercontent.com/eurostat/Nuts2json/master/pub/v1/2016/3035/20M/2.json
paths:
/{year}/{projection}/{scale}/{id}.json:
get:
parameters:
- $ref: '#/components/parameters/Year'
- $ref: '#/components/parameters/Projection'
- $ref: '#/components/parameters/Scale'
- $ref: '#/components/parameters/Id'
responses:
"200":
description: ok
content:
application/geo+json:
schema:
type: object
components:
parameters:
Type:
in: path
name: scale
required: true
schema:
type: string
enum:
- nutsrg
- nutsbn
- cntrg
- cntbn
- gra
NutsLevel:
in: path
name: scale
required: true
schema:
type: string
enum:
- 0
- 1
- 2
- 3
Scale:
in: path
name: scale
required: true
schema:
type: string
enum:
- 03M
- 10M
- 20M
- 60M
Projection:
in: path
name: projection
required: true
schema:
type: string
enum:
- 3035
- 3857
- 4326
Year:
in: path
name: year
required: true
schema:
type: string
enum:
- 2010
- 2013
- 2016
- 2021
Id:
name: id
in: path
required: true
schema:
type: string
example: NUTS_BN_01M_2021_3035
responses:
# Predefined error codes for this API
400BadRequest:
$ref: 'https://teamdigitale.github.io/openapi/0.0.7/definitions.yaml#/responses/400BadRequest'
404NotFound:
$ref: 'https://teamdigitale.github.io/openapi/0.0.7/definitions.yaml#/responses/404NotFound'
429TooManyRequests:
$ref: 'https://teamdigitale.github.io/openapi/0.0.7/definitions.yaml#/responses/429TooManyRequests'
503ServiceUnavailable:
$ref: 'https://teamdigitale.github.io/openapi/0.0.7/definitions.yaml#/responses/503ServiceUnavailable'
default:
$ref: 'https://teamdigitale.github.io/openapi/0.0.7/definitions.yaml#/responses/default'