-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocs.yml
94 lines (94 loc) · 2.93 KB
/
docs.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
---
swagger: "2.0"
info:
version: "0.1"
title: "AVURNAVs"
description: "Tells about in-force navigational warnings in metropolitan France"
contact:
name: "Antoine Augusti"
license:
name: "MIT"
host: "avurnav.antoine-augusti.fr"
basePath: "/"
schemes:
- "https"
produces:
- "application/json"
paths:
/avurnavs/regions/{region}:
get:
description: >
Returns in-force navigational warnings for the region under the supervision of a specific Préfet Maritime. Navigational warnings are called AVURNAVs ("avis urgents aux navigateurs") in French.
This endpoint is limited at 60 HTTP requests / minute / IP address.
produces:
- "application/json"
parameters:
- name: region
in: path
description: The Préfet Maritime region
required: true
type: string
enum: [atlantique, manche, méditerranée]
responses:
"200":
description: "A list of in-force navigational warnings for this region"
schema:
type: "array"
items:
$ref: "#/definitions/AVURNAV"
headers:
X-RateLimit-Limit:
description: The number of HTTP requests authorized in this current period
type: integer
X-RateLimit-Remaining:
description: The number of HTTP requests remaining in this current period
type: integer
X-RateLimit-Reset:
description: UNIX timestamp telling when the current period will end
type: integer
definitions:
AVURNAV:
required:
- number
- title
- content
- latitude
- longitude
- url
- valid_from
- valid_until
- premar_region
properties:
number:
type: string
pattern: '^\d+\/\d{2}$'
example: "1115/18"
title:
type: string
example: "ANTIFER - PHARE DE GATEVILLE"
content:
type: string
example: "LES NAVIGATEURS SONT INFORMES DE LA MISE EN PLACE CE JOUR A TITRE D'ESSAIS D'UN SYSTEME AIS SUR LE PHARE DE GATTEVILLE (MMSI 992271217). (LFLA 30400). POSITION (WGS84): 49-41,8N 001-16,0W"
latitude:
type: number
format: float
example: 49.222
longitude:
type: number
format: float
example: -1.2654
url:
type: string
format: url
example: "https://www.premar-manche.gouv.fr/avis-urgents-aux-navigateurs/antifer-phare-gateville-1115.html"
valid_from:
type: string
format: date
example: "2018-12-01"
valid_until:
type: string
format: date
example: "2018-12-31"
premar_region:
type: string
example: "Atlantique"