Skip to content

Commit

Permalink
get {locations_endpoint_url}/{location_id}[/{evse_uid}][/{connector_id}]
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaddeusJiang committed Oct 11, 2023
1 parent 92f262b commit 6dc4b6f
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 0 deletions.
9 changes: 9 additions & 0 deletions openapi/components/responses/Location.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: Location
content:
application/json:
schema:
allOf:
- $ref: ./BaseResponse.yaml
- properties:
data:
$ref: ../schemas/Location.yaml
6 changes: 6 additions & 0 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ paths:
$ref: paths/credentials.yaml
/locations:
$ref: paths/locations.yaml
/locations/{location_id}:
$ref: paths/locations_{location_id}.yaml
/locations/{location_id}/{evse_uid}:
$ref: paths/locations_{location_id}_{evse_uid}.yaml
/locations/{location_id}/{evse_uid}/{connector_id}:
$ref: paths/locations_{location_id}_{evse_uid}_{connector_id}.yaml

components:
securitySchemes:
Expand Down
20 changes: 20 additions & 0 deletions openapi/paths/locations_{location_id}.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
get:
tags:
- Locations
summary: Sender /locations/{location_id}
operationId: getLocation_by_location_id
security:
- tokenAuth: []
parameters:
- name: location_id
in: path
required: true
schema:
type: string
responses:
"200":
$ref: ../components/responses/Location.yaml
"400":
$ref: ../components/responses/BadRequest.yaml
"404":
$ref: ../components/responses/NotFound.yaml
25 changes: 25 additions & 0 deletions openapi/paths/locations_{location_id}_{evse_uid}.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
get:
tags:
- Locations
summary: Sender /locations/{location_id}/{evse_uid}
operationId: getLocation_by_location_id_evse_uid
security:
- tokenAuth: []
parameters:
- name: location_id
in: path
required: true
schema:
type: string
- name: evse_uid
in: path
required: true
schema:
type: string
responses:
"200":
$ref: ../components/responses/Location.yaml
"400":
$ref: ../components/responses/BadRequest.yaml
"404":
$ref: ../components/responses/NotFound.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
get:
tags:
- Locations
summary: Sender /locations/{location_id}/{evse_uid}]/[{connector_id}
operationId: getLocation_by_location_id_evse_uid_connector_id
security:
- tokenAuth: []
parameters:
- name: location_id
in: path
required: true
schema:
type: string
- name: evse_uid
in: path
required: true
schema:
type: string
- name: connector_id
in: path
required: true
schema:
type: string
responses:
"200":
$ref: ../components/responses/Location.yaml
"400":
$ref: ../components/responses/BadRequest.yaml
"404":
$ref: ../components/responses/NotFound.yaml

0 comments on commit 6dc4b6f

Please sign in to comment.