Skip to content

Latest commit

 

History

History
305 lines (237 loc) · 3.17 KB

README.md

File metadata and controls

305 lines (237 loc) · 3.17 KB

REST API Service

Description

API Documentation

GET /bike

Field

Response

{
  
}

PUT /bike

Fields

  • image Optional
  • ownerId

Response

{
  "uuid": "...",
  "image": "...",
  "owner": "...",
  "feedback": [],
  "location": []
}

GET /bike/<uuid:string>

Fields

Response

{
  "uuid": "...",
  "image": "...",
  "owner": "...",
  "feedback": [],
  "location": []
}

UPDATE /bike/<uuid:string>

Fields

{
  "image": "..."
}

Response

{
  "uuid": "...",
  "image": "...",
  "owner": "...",
  "feedback": [],
  "location": []
}

DELETE /bike/<uuiD:string>

Fields

Response

{
  "uuid": "...",
  "image": "...",
  "owner": "...",
  "feedback": [],
  "location": []
}

GET /feedback

Fields

Response

{

}

PUT /feedback

Fields

  • date
  • note
  • comment
  • bikeState
  • location

Response

{
  "date": "...",
  "note": "...",
  "comment": "...",
  "bikeState": "...",
  "location": "..."
}

GET /feedback/<uuid:string>

Fields

Response

{
  "date": "...",
  "note": "...",
  "comment": "...",
  "bikeState": "...",
  "location": "..."
}

UPDATE /feedback/<uuid:string>

Fields

  • date
  • note
  • comment
  • bikeState

Response

{
  "date": "...",
  "note": "...",
  "comment": "...",
  "bikeState": "...",
  "location": "..."
}

DELETE /feedback/<uuid:string>

Fields

Response

{
  "date": "...",
  "note": "...",
  "comment": "...",
  "bikeState": "...",
  "location": "..."
}

GET /location

Fields

Response

{
  
}

PUT /location

Fields

  • start:Date
  • end:Date
  • customerClient

Response

{
  "start": "...",
  "end": "...",
  "customerClient": "..."
}

GET /location/<uuid:string>

Fields

Response

{
  "start": "...",
  "end": "...",
  "customerClient": "..."
}

UPDATE /location/<uuid:string>

Fields

  • end:Date

Response

{
  "start": "...",
  "end": "...",
  "customerClient": "..."
}

DELETE /location/<uuid:string>

Fields

Response

{
  "start": "...",
  "end": "...",
  "customerClient": "..."
}

GET /customer

Fields

Response

{
  
}

PUT /customer

Fields

  • firstName:string
  • lastName:string
  • customerType

Response

{
  "uuid": "...",
  "firstName": "...",
  "lastName": "...",
  "customerType": "..."
}

GET /customer/<uuid:string>

Fields

Response

{
  "uuid": "...",
  "firstName": "...",
  "lastName": "...",
  "customerType": "..."
}

UPDATE /customer/<uuid:string>

Fields

  • firstName:string
  • lastName:string
  • customerType

Response

{
  "uuid": "...",
  "firstName": "...",
  "lastName": "...",
  "customerType": "..."
}

DELETE /customer/<uuid:string>

Fields

Response

{
  "uuid": "...",
  "firstName": "...",
  "lastName": "...",
  "customerType": "..."
}