SP2 V1 (1.0.0)

Download OpenAPI specification:Download

E-mail: blegall@noesio.fr License: Apache 2.0

Swagger for Westfield Smartparking API V1

dummy

Récupérer tous les objets dummy

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Créer un nouvel objet dummy

Request Body schema: application/json
required
email
required
string <email>
age
integer >= 18
username
required
string [ 3 .. 20 ] characters

Responses

Request samples

Content type
application/json
{
  • "email": "user@example.com",
  • "age": 18,
  • "username": "string"
}

Response samples

Content type
application/json
{
  • "email": "user@example.com",
  • "age": 18,
  • "username": "string",
  • "id": 0
}

Récupérer un objet dummy par son ID

path Parameters
id
required
string

Responses

Response samples

Content type
application/json
{
  • "email": "user@example.com",
  • "age": 18,
  • "username": "string",
  • "id": 0
}

Mettre à jour partiellement un objet dummy

path Parameters
id
required
string
Request Body schema: application/json
required
email
string <email>
age
integer >= 18

Responses

Request samples

Content type
application/json
{
  • "email": "user@example.com",
  • "age": 18
}

Response samples

Content type
application/json
{
  • "email": "user@example.com",
  • "age": 18,
  • "username": "string",
  • "id": 0
}

Supprimer un objet dummy

path Parameters
id
required
string

Responses

Visitor Vehicles

Create a new visitor vehicle

path Parameters
visitorId
required
string <uuid> (visitor_visitorId)
Example: 123e4567-e89b-12d3-a456-426614174000
Request Body schema: application/json
required
name
string or null
maker
string
color
string
model
string
licensePlate
required
string
licensePlateCountry
string
Enum: "AD" "AE" "AF" "AG" "AI" "AL" "AM" "AO" "AQ" "AR" "AS" "AT" "AU" "AW" "AX" "AZ" "BA" "BB" "BD" "BE" "BF" "BG" "BH" "BI" "BJ" "AD" "AE" "AF" "AG" "AI" "AL" "AM" "AO" "AQ" "AR" "AS" "AT" "AU" "AW" "AX" "AZ" "BA" "BB" "BD" "BE" "BF" "BG" "BH" "BI" "BJ" "BL" "BM" "BN" "BO" "BQ" "BR" "BS" "BT" "BV" "BW" "BY" "BZ" "CA" "CC" "CD" "CF" "CG" "CH" "CI" "CK" "CL" "CM" "CN" "CO" "CR" "CU" "CV" "CW" "CX" "CY" "CZ" "DE" "DJ" "DK" "DM" "DO" "DZ" "EC" "EE" "EG" "EH" "ER" "ES" "ET" "FI" "FJ" "FK" "FM" "FO" "FR" "GA" "GB" "GD" "GE" "GF" "GG" "GH" "GI" "GL" "GM" "GN" "GP" "GQ" "GR" "GS" "GT" "GU" "GW" "GY" "HK" "HM" "HN" "HR" "HT" "HU" "ID" "IE" "IL" "IM" "IN" "IO" "IQ" "IR" "IS" "IT" "JE" "JM" "JO" "JP" "KE" "KG" "KH" "KI" "KM" "KN" "KP" "KR" "KW" "KY" "KZ" "LA" "LB" "LC" "LI" "LK" "LR" "LS" "LT" "LU" "LV" "LY" "MA" "MC" "MD" "ME" "MF" "MG" "MH" "MK" "ML" "MM" "MN" "MO" "MP" "MQ" "MR" "MS" "MT" "MU" "MV" "MW" "MX" "MY" "MZ" "NA" "NC" "NE" "NF" "NG" "NI" "NL" "NO" "NP" "NR" "NU" "NZ" "OM" "PA" "PE" "PF" "PG" "PH" "PK" "PL" "PM" "PN" "PR" "PS" "PT" "PW" "PY" "QA" "RE" "RO" "RS" "RU" "RW" "SA" "SB" "SC" "SD" "SE" "SG" "SH" "SI" "SJ" "SK" "SL" "SM" "SN" "SO" "SR" "SS" "ST" "SV" "SX" "SY" "SZ" "TC" "TD" "TF" "TG" "TH" "TJ" "TK" "TL" "TM" "TN" "TO" "TR" "TT" "TV" "TW" "TZ" "UA" "UG" "UM" "US" "UY" "UZ" "VA" "VC" "VE" "VG" "VI" "VN" "VU" "WF" "WS" "YE" "YT" "ZA" "ZM" "ZW"
yearOfManufacture
integer [ 1800 .. 2500 ]
lastParkingSession
string <date-time>
creationDate
string <date-time>
updateDate
string <date-time>
deletionDate
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "maker": "string",
  • "color": "string",
  • "model": "string",
  • "licensePlate": "string",
  • "licensePlateCountry": "FR",
  • "yearOfManufacture": 1800,
  • "lastParkingSession": "2019-08-24T14:15:22Z",
  • "creationDate": "2019-08-24T14:15:22Z",
  • "updateDate": "2019-08-24T14:15:22Z",
  • "deletionDate": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "maker": "string",
  • "color": "string",
  • "model": "string",
  • "licensePlate": "string",
  • "licensePlateCountry": "FR",
  • "yearOfManufacture": 1800,
  • "lastParkingSession": "2019-08-24T14:15:22Z",
  • "creationDate": "2019-08-24T14:15:22Z",
  • "updateDate": "2019-08-24T14:15:22Z",
  • "deletionDate": "2019-08-24T14:15:22Z",
  • "vehicleId": 0,
  • "visitorId": "123e4567-e89b-12d3-a456-426614174000",
  • "creation_date": "2020-01-01T00:00:00Z",
  • "update_date": "2020-01-01T00:00:00Z"
}

List all vehicles for a visitor

path Parameters
visitorId
required
string <uuid> (visitor_visitorId)
Example: 123e4567-e89b-12d3-a456-426614174000

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get a visitor vehicle by ID

path Parameters
visitorId
required
string <uuid> (visitor_visitorId)
Example: 123e4567-e89b-12d3-a456-426614174000
vehicleId
required
string (generic_number_string) ^[0-9]+$

Responses

Response samples

Content type
application/json
{
  • "name": "string",
  • "maker": "string",
  • "color": "string",
  • "model": "string",
  • "licensePlate": "string",
  • "licensePlateCountry": "FR",
  • "yearOfManufacture": 1800,
  • "lastParkingSession": "2019-08-24T14:15:22Z",
  • "creationDate": "2019-08-24T14:15:22Z",
  • "updateDate": "2019-08-24T14:15:22Z",
  • "deletionDate": "2019-08-24T14:15:22Z",
  • "vehicleId": 0,
  • "visitorId": "123e4567-e89b-12d3-a456-426614174000",
  • "creation_date": "2020-01-01T00:00:00Z",
  • "update_date": "2020-01-01T00:00:00Z"
}

Update a visitor vehicle

path Parameters
visitorId
required
string <uuid> (visitor_visitorId)
Example: 123e4567-e89b-12d3-a456-426614174000
vehicleId
required
string (generic_number_string) ^[0-9]+$
Request Body schema: application/json
required
name
string or null
maker
string
color
string
model
string
licensePlate
string
licensePlateCountry
string
Enum: "AD" "AE" "AF" "AG" "AI" "AL" "AM" "AO" "AQ" "AR" "AS" "AT" "AU" "AW" "AX" "AZ" "BA" "BB" "BD" "BE" "BF" "BG" "BH" "BI" "BJ" "AD" "AE" "AF" "AG" "AI" "AL" "AM" "AO" "AQ" "AR" "AS" "AT" "AU" "AW" "AX" "AZ" "BA" "BB" "BD" "BE" "BF" "BG" "BH" "BI" "BJ" "BL" "BM" "BN" "BO" "BQ" "BR" "BS" "BT" "BV" "BW" "BY" "BZ" "CA" "CC" "CD" "CF" "CG" "CH" "CI" "CK" "CL" "CM" "CN" "CO" "CR" "CU" "CV" "CW" "CX" "CY" "CZ" "DE" "DJ" "DK" "DM" "DO" "DZ" "EC" "EE" "EG" "EH" "ER" "ES" "ET" "FI" "FJ" "FK" "FM" "FO" "FR" "GA" "GB" "GD" "GE" "GF" "GG" "GH" "GI" "GL" "GM" "GN" "GP" "GQ" "GR" "GS" "GT" "GU" "GW" "GY" "HK" "HM" "HN" "HR" "HT" "HU" "ID" "IE" "IL" "IM" "IN" "IO" "IQ" "IR" "IS" "IT" "JE" "JM" "JO" "JP" "KE" "KG" "KH" "KI" "KM" "KN" "KP" "KR" "KW" "KY" "KZ" "LA" "LB" "LC" "LI" "LK" "LR" "LS" "LT" "LU" "LV" "LY" "MA" "MC" "MD" "ME" "MF" "MG" "MH" "MK" "ML" "MM" "MN" "MO" "MP" "MQ" "MR" "MS" "MT" "MU" "MV" "MW" "MX" "MY" "MZ" "NA" "NC" "NE" "NF" "NG" "NI" "NL" "NO" "NP" "NR" "NU" "NZ" "OM" "PA" "PE" "PF" "PG" "PH" "PK" "PL" "PM" "PN" "PR" "PS" "PT" "PW" "PY" "QA" "RE" "RO" "RS" "RU" "RW" "SA" "SB" "SC" "SD" "SE" "SG" "SH" "SI" "SJ" "SK" "SL" "SM" "SN" "SO" "SR" "SS" "ST" "SV" "SX" "SY" "SZ" "TC" "TD" "TF" "TG" "TH" "TJ" "TK" "TL" "TM" "TN" "TO" "TR" "TT" "TV" "TW" "TZ" "UA" "UG" "UM" "US" "UY" "UZ" "VA" "VC" "VE" "VG" "VI" "VN" "VU" "WF" "WS" "YE" "YT" "ZA" "ZM" "ZW"
yearOfManufacture
integer [ 1800 .. 2500 ]
lastParkingSession
string <date-time>
creationDate
string <date-time>
updateDate
string <date-time>
deletionDate
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "name": "string",
  • "maker": "string",
  • "color": "string",
  • "model": "string",
  • "licensePlate": "string",
  • "licensePlateCountry": "FR",
  • "yearOfManufacture": 1800,
  • "lastParkingSession": "2019-08-24T14:15:22Z",
  • "creationDate": "2019-08-24T14:15:22Z",
  • "updateDate": "2019-08-24T14:15:22Z",
  • "deletionDate": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "name": "string",
  • "maker": "string",
  • "color": "string",
  • "model": "string",
  • "licensePlate": "string",
  • "licensePlateCountry": "FR",
  • "yearOfManufacture": 1800,
  • "lastParkingSession": "2019-08-24T14:15:22Z",
  • "creationDate": "2019-08-24T14:15:22Z",
  • "updateDate": "2019-08-24T14:15:22Z",
  • "deletionDate": "2019-08-24T14:15:22Z",
  • "vehicleId": 0,
  • "visitorId": "123e4567-e89b-12d3-a456-426614174000",
  • "creation_date": "2020-01-01T00:00:00Z",
  • "update_date": "2020-01-01T00:00:00Z"
}

Delete a visitor vehicle

path Parameters
visitorId
required
string <uuid> (visitor_visitorId)
Example: 123e4567-e89b-12d3-a456-426614174000
vehicleId
required
string (generic_number_string) ^[0-9]+$

Responses