Simple Job API

This is a Job API
More information: https://helloreverb.com
Contact Info: hello@helloreverb.com
Version: 1.0.0
BasePath:/
Apache 2.0
http://www.apache.org/licenses/LICENSE-2.0.html

Access

Methods

[ Jump to Models ]

Table of Contents

Acquisitions

Sales

Acquisitions

Up
delete /acquisition/delete/{id}
Deletes the Acquisition with the specified ID. (acquisitionDeleteIdDelete)

Path parameters

id (required)
Path Parameter — The Acquisition ID.

Responses

200

acquisition deleted

500

internal error

Up
get /acquisition
search purchased vehicles (acquisitionGet)
You search for all vehicles in the system

Return type

array[Acquisition]

Example data

Content-Type: application/json
[ {
  "color" : "red",
  "updated_at" : "2016-08-29T09:12:33.001+0000",
  "price" : 22000.53,
  "available" : true,
  "manufacture_year" : "2000",
  "created_at" : "2016-08-29T09:12:33.001+0000",
  "model" : "Ferrari Enzo",
  "plate" : "ABC1234",
  "id" : 1,
  "chassis" : "333456789ABCDGGGH",
  "brand" : "Ferrari"
}, {
  "color" : "red",
  "updated_at" : "2016-08-29T09:12:33.001+0000",
  "price" : 22000.53,
  "available" : true,
  "manufacture_year" : "2000",
  "created_at" : "2016-08-29T09:12:33.001+0000",
  "model" : "Ferrari Enzo",
  "plate" : "ABC1234",
  "id" : 1,
  "chassis" : "333456789ABCDGGGH",
  "brand" : "Ferrari"
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

search results matching criteria

500

Internal Error

Up
post /acquisition
add vehicle purchase (create)
Adds a vehicle acquisition to the system

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

acquisition Acquisition (optional)
Body Parameter — Vehicle purchase to add

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

acquisition created

400

invalid input, object invalid

Up
put /acquisition/edit/{id}
edit existing vehicle acquisition (edit)
Edit existing vehicle purchase

Path parameters

id (required)
Path Parameter — The Acquisition ID.

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

acquisition Acquisition (optional)
Body Parameter — Vehicle purchase to edit

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

acquisition edited

400

invalid input, object invalid

Sales

Up
delete /sale/delete/{id}
Deletes the Sale with the specified ID. (saleDeleteIdDelete)

Path parameters

id (required)
Path Parameter — The Acquisition ID.

Responses

200

sale deleted

500

internal error

Up
get /sales
search vehicle sales (salesGet)
You search for all vehicle sales

Return type

array[Sale]

Example data

Content-Type: application/json
[ {
  "acquisition_id" : 1,
  "updated_at" : "2016-08-29T09:12:33.001+0000",
  "created_at" : "2016-08-29T09:12:33.001+0000",
  "commission" : 22000.53,
  "id" : 1,
  "value" : 22000.53,
  "Acquisition" : {
    "color" : "red",
    "updated_at" : "2016-08-29T09:12:33.001+0000",
    "price" : 22000.53,
    "available" : true,
    "manufacture_year" : "2000",
    "created_at" : "2016-08-29T09:12:33.001+0000",
    "model" : "Ferrari Enzo",
    "plate" : "ABC1234",
    "id" : 1,
    "chassis" : "333456789ABCDGGGH",
    "brand" : "Ferrari"
  }
}, {
  "acquisition_id" : 1,
  "updated_at" : "2016-08-29T09:12:33.001+0000",
  "created_at" : "2016-08-29T09:12:33.001+0000",
  "commission" : 22000.53,
  "id" : 1,
  "value" : 22000.53,
  "Acquisition" : {
    "color" : "red",
    "updated_at" : "2016-08-29T09:12:33.001+0000",
    "price" : 22000.53,
    "available" : true,
    "manufacture_year" : "2000",
    "created_at" : "2016-08-29T09:12:33.001+0000",
    "model" : "Ferrari Enzo",
    "plate" : "ABC1234",
    "id" : 1,
    "chassis" : "333456789ABCDGGGH",
    "brand" : "Ferrari"
  }
} ]

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

search results matching criteria

500

Internal Error

Models

[ Jump to Methods ]

Table of Contents

  1. Acquisition -
  2. Sale -

Acquisition - Up

id (optional)
Long format: int64
example: 1
chassis
example: 333456789ABCDGGGH
model
example: Ferrari Enzo
brand
example: Ferrari
manufacture_year
example: 2000
plate
example: ABC1234
color
example: red
price
Double format: double
example: 22000.53
available
example: true
created_at (optional)
Date format: date-time
example: 2016-08-29T09:12:33.001+0000
updated_at (optional)
Date format: date-time
example: 2016-08-29T09:12:33.001+0000

Sale - Up

id (optional)
Long format: int64
example: 1
acquisition_id (optional)
Long format: int64
example: 1
value
Double format: double
example: 22000.53
commission (optional)
Double format: double
example: 22000.53
created_at (optional)
Date format: date-time
example: 2016-08-29T09:12:33.001+0000
updated_at (optional)
Date format: date-time
example: 2016-08-29T09:12:33.001+0000
Acquisition (optional)