Skip to content

Commit e8d827c

Browse files
committed
OCPI 2.3.0 OpenApi specification and deploy documents to github pages
1 parent 58d3112 commit e8d827c

49 files changed

Lines changed: 8433 additions & 7 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-pages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ jobs:
3737
run: npm ci
3838

3939
- name: Build OpenAPI Modules
40-
run: npm run build:ocpi:2.2.1
40+
run: npm run build:ocpi:2.2.1 && npm run build:ocpi:2.3.0
4141

4242
- name: Build OpenAPI Roles
43-
run: npm run build:ocpi:cpo:2.2.1 && npm run build:ocpi:msp:2.2.1 && npm run build:ocpi:hub:2.2.1
43+
run: npm run build:ocpi:cpo:2.2.1 && npm run build:ocpi:msp:2.2.1 && npm run build:ocpi:hub:2.2.1 && npm run build:ocpi:cpo:2.3.0 && npm run build:ocpi:msp:2.3.0 && npm run build:ocpi:hub:2.3.0
4444

4545
- name: Copy index page
46-
run: cp ocpi/2.2.1/index.html dist/ocpi/2.2.1/index.html
46+
run: mkdir -p dist/ocpi/2.2.1 dist/ocpi/2.3.0 && cp ocpi/2.2.1/index.html dist/ocpi/2.2.1/index.html && cp ocpi/2.3.0/index.html dist/ocpi/2.3.0/index.html
4747

4848
- name: Upload artifact
4949
uses: actions/upload-pages-artifact@v3
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
openapi: 3.1.0
2+
components:
3+
parameters:
4+
# ---- Common Request Headers ----
5+
6+
X-Request-ID:
7+
in: header
8+
name: X-Request-ID
9+
description: |
10+
Every request SHALL contain a unique request ID, the response to this request SHALL
11+
contain the same ID. It is advised to use GUID/UUID as values.
12+
required: true
13+
schema:
14+
type: string
15+
X-Correlation-ID:
16+
in: header
17+
name: X-Correlation-ID
18+
description: |
19+
Every request/response SHALL contain a unique correlation ID, every response to this
20+
request SHALL contain the same ID. It is advised to use GUID/UUID as values.
21+
When a Hub forwards a request to a party, the request SHALL contain the same
22+
X-Correlation-ID HTTP header (with the same value).
23+
required: true
24+
schema:
25+
type: string
26+
27+
# ---- Message Routing Headers ----
28+
29+
OCPI-to-party-id:
30+
in: header
31+
name: OCPI-to-party-id
32+
description: "'party id' of the connected party this message is to be sent to."
33+
required: false
34+
schema:
35+
type: string
36+
maxLength: 3
37+
OCPI-to-country-code:
38+
in: header
39+
name: OCPI-to-country-code
40+
description: "'country code' of the connected party this message is to be sent to."
41+
required: false
42+
schema:
43+
type: string
44+
maxLength: 2
45+
OCPI-from-party-id:
46+
in: header
47+
name: OCPI-from-party-id
48+
description: "'party id' of the connected party this message is sent from."
49+
required: false
50+
schema:
51+
type: string
52+
maxLength: 3
53+
OCPI-from-country-code:
54+
in: header
55+
name: OCPI-from-country-code
56+
description: "'country code' of the connected party this message is sent from."
57+
required: false
58+
schema:
59+
type: string
60+
maxLength: 2
61+
62+
# ---- Pagination Query Parameters ----
63+
64+
DateFromParameter:
65+
in: query
66+
name: date_from
67+
description: Only return objects that have last_updated after or equal to this Date/Time (inclusive).
68+
required: false
69+
schema:
70+
type: string
71+
format: date-time
72+
DateToParameter:
73+
in: query
74+
name: date_to
75+
description: Only return objects that have last_updated up to this Date/Time, but not including (exclusive).
76+
required: false
77+
schema:
78+
type: string
79+
format: date-time
80+
OffsetParameter:
81+
in: query
82+
name: offset
83+
description: The offset of the first object returned. Default is 0.
84+
required: false
85+
schema:
86+
type: integer
87+
minimum: 0
88+
default: 0
89+
LimitParameter:
90+
in: query
91+
name: limit
92+
description: Maximum number of objects to GET.
93+
required: false
94+
schema:
95+
type: integer
96+
minimum: 1
97+
98+
# ---- Common Path Parameters ----
99+
100+
CountryCodeParameter:
101+
in: path
102+
name: country_code
103+
description: Country code of the CPO that 'owns' this object (ISO-3166 alpha-2).
104+
required: true
105+
schema:
106+
type: string
107+
maxLength: 2
108+
PartyIdParameter:
109+
in: path
110+
name: party_id
111+
description: Party ID (Provider ID) of the CPO that 'owns' this object (following the ISO-15118 standard).
112+
required: true
113+
schema:
114+
type: string
115+
maxLength: 3

0 commit comments

Comments
 (0)