Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit b0ceab5

Browse files
committed
Add basic Open API 3.0.0 documentation
1 parent 3e4e793 commit b0ceab5

1 file changed

Lines changed: 127 additions & 0 deletions

File tree

docs/postnl-api.yaml

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
openapi: 3.0.0
2+
3+
info:
4+
version: "1.0.0"
5+
title: 'PostNL API (mobile)'
6+
description: 'API used for the PostNL iOS app to track deliveries'
7+
8+
components:
9+
securitySchemes:
10+
bearerAuth:
11+
type: http
12+
scheme: bearer
13+
bearerFormat: JWT
14+
15+
responses:
16+
UnauthorizedError:
17+
description: Access token is missing or invalid
18+
19+
servers:
20+
- url: https:/jouw.postnl.nl
21+
22+
paths:
23+
/mobile/token:
24+
post:
25+
summary: Return a token
26+
description: Retrieve a access and refresh token.
27+
responses:
28+
'200':
29+
description: Token
30+
content:
31+
application/json:
32+
schema:
33+
type: object
34+
items:
35+
type: string
36+
37+
/mobile/api/orders:
38+
get:
39+
summary: Returns a list of orders.
40+
security:
41+
- bearerAuth: []
42+
responses:
43+
'200':
44+
description: A JSON array of orders
45+
'401':
46+
description: Not authenticated
47+
$ref: '#/components/responses/UnauthorizedError'
48+
49+
/mobile/api/shipments:
50+
get:
51+
summary: Returns a list of shipments.
52+
security:
53+
- bearerAuth: []
54+
responses:
55+
'200':
56+
description: A JSON array of orders
57+
'401':
58+
description: Not authenticated
59+
$ref: '#/components/responses/UnauthorizedError'
60+
61+
/mobile/api/shipments/{shipmentId}:
62+
get:
63+
summary: Returns a shipment by id
64+
parameters:
65+
- name: shipmentId
66+
in: path
67+
required: true
68+
schema:
69+
type : string
70+
minimum: 1
71+
72+
security:
73+
- bearerAuth: []
74+
responses:
75+
'200':
76+
description: A JSON object of a specific order
77+
'401':
78+
description: Not authenticated
79+
$ref: '#/components/responses/UnauthorizedError'
80+
81+
/mobile/api/letters:
82+
get:
83+
summary: Returns a list of letters.
84+
security:
85+
- bearerAuth: []
86+
responses:
87+
'200':
88+
description: A JSON array of letters
89+
'401':
90+
description: Not authenticated
91+
$ref: '#/components/responses/UnauthorizedError'
92+
93+
/mobile/api/profile/device:
94+
get:
95+
summary: Returns profile information
96+
security:
97+
- bearerAuth: []
98+
responses:
99+
'200':
100+
description: Array
101+
'401':
102+
description: Not authenticated
103+
$ref: '#/components/responses/UnauthorizedError'
104+
105+
/mobile/api/notification:
106+
post:
107+
summary: ...
108+
security:
109+
- bearerAuth: []
110+
responses:
111+
'200':
112+
description: Array
113+
'401':
114+
description: Not authenticated
115+
$ref: '#/components/responses/UnauthorizedError'
116+
117+
/mobile/api/location:
118+
post:
119+
summary: ...
120+
security:
121+
- bearerAuth: []
122+
responses:
123+
'200':
124+
description: Array
125+
'401':
126+
description: Not authenticated
127+
$ref: '#/components/responses/UnauthorizedError'

0 commit comments

Comments
 (0)