|
| 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