Simple Job API
This is a Job API
Version: 1.0.0
BasePath:/
Apache 2.0
http://www.apache.org/licenses/LICENSE-2.0.html
Access
[ Jump to Models ]
Table of Contents
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
search purchased vehicles (acquisitionGet)
You search for all vehicles in the system
Return type
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 request header;
the media type will be conveyed by the response header.
Responses
200
search results matching criteria
500
Internal Error
add vehicle purchase (create)
Adds a vehicle acquisition to the system
Consumes
This API call consumes the following media types via the request header:
Request body
Body Parameter — Vehicle purchase to add
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the 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 request header:
Request body
Body Parameter — Vehicle purchase to edit
Produces
This API call produces the following media types according to the request header;
the media type will be conveyed by the response header.
Responses
200
acquisition edited
400
invalid input, object invalid
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
search vehicle sales (salesGet)
You search for all vehicle sales
Return type
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 request header;
the media type will be conveyed by the response header.
Responses
200
search results matching criteria
500
Internal Error
[ Jump to Methods ]
Table of Contents
Acquisition
-
Sale
-
id (optional)
example: 1
chassis
example: 333456789ABCDGGGH
model
example: Ferrari Enzo
brand
example: Ferrari
manufacture_year
example: 2000
plate
example: ABC1234
color
example: red
price
example: 22000.53
available
example: true
created_at (optional)
example: 2016-08-29T09:12:33.001+0000
updated_at (optional)
example: 2016-08-29T09:12:33.001+0000
id (optional)
example: 1
acquisition_id (optional)
example: 1
value
example: 22000.53
commission (optional)
example: 22000.53
created_at (optional)
example: 2016-08-29T09:12:33.001+0000
updated_at (optional)
example: 2016-08-29T09:12:33.001+0000
Acquisition (optional)