-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create swagger.yaml Co-authored-by: Mohamed Sadiq <mohamed.sadiq@fiware.org>
- Loading branch information
1 parent
d2498f5
commit 1187b60
Showing
9 changed files
with
279 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
components: | ||
schemas: | ||
OffStreetParking: | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/OffStreetParking/model.yaml#/OffStreetParking" | ||
info: | ||
description: >- | ||
A site, off street, intended to park vehicles, managed independently and with suitable and clearly marked access points (entrances and exits). | ||
If necessary, and for management purposes or to deal with multi-location parking sites, | ||
it can be divided into different zones modelled by the entity type ParkingGroup . | ||
In DATEX 2 version 2.3 terminology it corresponds to a UrbanParkingSite of type offStreetParking. | ||
title: OffStreetParking | ||
version: "1.0.0" | ||
openapi: "3.0.0" | ||
|
||
# These paths are merely representative. | ||
paths: | ||
/ngsi-ld/v1/entities: | ||
get: | ||
description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" | ||
parameters: | ||
- | ||
in: query | ||
name: type | ||
required: true | ||
schema: | ||
enum: | ||
- OffStreetParking | ||
type: string | ||
responses: | ||
? "200" | ||
: | ||
content: | ||
application/ld+json: | ||
examples: | ||
keyvalues: | ||
summary: "Key-Values Pairs" | ||
value: | ||
- | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/OffStreetParking/examples/example-normalized.json" | ||
normalized: | ||
summary: "Normalized NGSI-LD" | ||
value: | ||
- | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/OffStreetParking/examples/example-normalized-ld.jsonld" | ||
description: OK | ||
tags: | ||
- ngsi-ld | ||
tags: | ||
- | ||
|
||
description: "NGSI-LD Linked-data Format" | ||
name: ngsi-ld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
components: | ||
schemas: | ||
OnStreetParking: | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/OnStreetParking/model.yaml#/OnStreetParking" | ||
info: | ||
description: >- | ||
A site, open space zone, on street, (metered or not) with direct access from a road, | ||
intended to park vehicles. In DATEX 2 version 2.3 terminology it | ||
corresponds to a UrbanParkingSite of type onStreetParking. | ||
title: OnStreetParking | ||
version: "1.0.0" | ||
openapi: "3.0.0" | ||
|
||
# These paths are merely representative. | ||
paths: | ||
/ngsi-ld/v1/entities: | ||
get: | ||
description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" | ||
parameters: | ||
- | ||
in: query | ||
name: type | ||
required: true | ||
schema: | ||
enum: | ||
- OnStreetParking | ||
type: string | ||
responses: | ||
? "200" | ||
: | ||
content: | ||
application/ld+json: | ||
examples: | ||
keyvalues: | ||
summary: "Key-Values Pairs" | ||
value: | ||
- | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/OnStreetParking/examples/example-normalized.json" | ||
normalized: | ||
summary: "Normalized NGSI-LD" | ||
value: | ||
- | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/OnStreetParking/examples/example-normalized-ld.jsonld" | ||
description: OK | ||
tags: | ||
- ngsi-ld | ||
tags: | ||
- | ||
|
||
description: "NGSI-LD Linked-data Format" | ||
name: ngsi-ld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
--- | ||
components: | ||
schemas: | ||
ParkingAccess: | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/ParkingAccess/model.yaml#/ParkingAccess" | ||
info: | ||
description: >- | ||
Represents an access point to a parking site, normally an offstreet parking. | ||
title: ParkingAccess | ||
version: "1.0.0" | ||
openapi: "3.0.0" | ||
|
||
# These paths are merely representative. | ||
paths: | ||
/ngsi-ld/v1/entities: | ||
get: | ||
description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" | ||
parameters: | ||
- | ||
in: query | ||
name: type | ||
required: true | ||
schema: | ||
enum: | ||
- ParkingAccess | ||
type: string | ||
responses: | ||
? "200" | ||
: | ||
content: | ||
application/ld+json: | ||
examples: | ||
keyvalues: | ||
summary: "Key-Values Pairs" | ||
value: | ||
- | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/ParkingAccess/examples/example-normalized.json" | ||
normalized: | ||
summary: "Normalized NGSI-LD" | ||
value: | ||
- | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/ParkingAccess/examples/example-normalized-ld.jsonld" | ||
description: OK | ||
tags: | ||
- ngsi-ld | ||
tags: | ||
- | ||
|
||
description: "NGSI-LD Linked-data Format" | ||
name: ngsi-ld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
components: | ||
schemas: | ||
ParkingAccess: | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/ParkingAccess/model.yaml#/ParkingAccess" | ||
info: | ||
description: >- | ||
A group of parking spots. Granularity level can vary. It can be an storey on a parking garage, | ||
an specific zone belonging to a big parking lot, or just a group of spots intended for parking a certain vehicle type or | ||
subject to certain restrictions (disabled, residents, ...). | ||
For the sake of simplicity only one vehicle type per parking group is allowed. Similarly, | ||
one required permit is only allowed per group type. | ||
title: ParkingAccess | ||
version: "1.0.0" | ||
openapi: "3.0.0" | ||
|
||
# These paths are merely representative. | ||
paths: | ||
/ngsi-ld/v1/entities: | ||
get: | ||
description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" | ||
parameters: | ||
- | ||
in: query | ||
name: type | ||
required: true | ||
schema: | ||
enum: | ||
- ParkingAccess | ||
type: string | ||
responses: | ||
? "200" | ||
: | ||
content: | ||
application/ld+json: | ||
examples: | ||
keyvalues: | ||
summary: "Key-Values Pairs" | ||
value: | ||
- | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/ParkingAccess/examples/example-normalized.json" | ||
normalized: | ||
summary: "Normalized NGSI-LD" | ||
value: | ||
- | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/ParkingAccess/examples/example-normalized-ld.jsonld" | ||
description: OK | ||
tags: | ||
- ngsi-ld | ||
tags: | ||
- | ||
|
||
description: "NGSI-LD Linked-data Format" | ||
name: ngsi-ld |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
components: | ||
schemas: | ||
ParkingSpot: | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/ParkingSpot/model.yaml#/ParkingSpot" | ||
info: | ||
description: >- | ||
A parking spot is an area well delimited where one vehicle can be parked. | ||
The aim of this entity type is to monitor the status of parking spots individually. | ||
Thus, an entity of type ParkingSpot cannot exist without a containing entity of type (OnStreetParking, OffStreetParking). | ||
A parking spot might belong to one group. | ||
title: ParkingSpot | ||
version: "1.0.0" | ||
openapi: "3.0.0" | ||
|
||
# These paths are merely representative. | ||
paths: | ||
/ngsi-ld/v1/entities: | ||
get: | ||
description: "Retrieve a set of entities which matches a specific query from an NGSI-LD system" | ||
parameters: | ||
- | ||
in: query | ||
name: type | ||
required: true | ||
schema: | ||
enum: | ||
- ParkingSpot | ||
type: string | ||
responses: | ||
? "200" | ||
: | ||
content: | ||
application/ld+json: | ||
examples: | ||
keyvalues: | ||
summary: "Key-Values Pairs" | ||
value: | ||
- | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/ParkingSpot/examples/example-normalized.json" | ||
normalized: | ||
summary: "Normalized NGSI-LD" | ||
value: | ||
- | ||
$ref: "https://smart-data-models.github.io/dataModel.Parking/ParkingSpot/examples/example-normalized-ld.jsonld" | ||
description: OK | ||
tags: | ||
- ngsi-ld | ||
tags: | ||
- | ||
|
||
description: "NGSI-LD Linked-data Format" | ||
name: ngsi-ld |