Skip to content

Api services

Ilya Kabushko edited this page Jan 23, 2019 · 19 revisions

Api services

  1. Clients
  2. Vehicles
  3. Interventions
  4. Mechanics

Clients

POST /clients

Parámetros del cuerpo

  • nombreCompleto: String (requerido)
  • horasNevera: int

Respuesta

  • 200 OK
    • id: String
  • 403 BAD_REQUEST

GET /clients

Parámetros del cuerpo

Respuesta

  • 200 OK
  • 403 BAD_REQUEST
  • 404 NOT_FOUND

PUT /clients/{id}

Parámetros del cuerpo

  • nombreCompleto: String (requerido)
  • horasNevera: int

Respuesta

  • 200 OK
  • 403 BAD_REQUEST
  • 404 NOT_FOUND

DELETE /clients/{id}

Respuesta

  • 200 OK
  • 404 NOT_FOUND

Vehicles

POST /vehicles

Parámetros del cuerpo

  • registrationPlate: String (requerido)
  • brand: String
  • clientId: int

Respuesta

  • 200 OK
    • id: String
  • 403 BAD_REQUEST

GET /vehicles

Parámetros del cuerpo

Respuesta

  • 200 OK
  • 403 BAD_REQUEST
  • 404 NOT_FOUND

Interventions

POST /Interventions

Parámetros del cuerpo

  • title: String (requerido)
  • State: String
  • vehicleId: int
  • workId: int

Respuesta

  • 200 OK
    • id: String
  • 403 BAD_REQUEST

GET /Interventions

Parámetros del cuerpo

  • vehicleId: int
  • mechanicId: int

Respuesta

  • 200 OK
  • 403 BAD_REQUEST
  • 404 NOT_FOUND

Mechanics

POST /Mechanics

Parámetros del cuerpo

  • name: String (requerido)
  • password: String

Respuesta

  • 200 OK
    • id: String
  • 403 BAD_REQUEST

Clone this wiki locally