We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There will be three models on which the API will be based.
Both purchase and repair models have a one-to-many relationship with a customer.
purchase
repair
customer
Endpoints:
/api/customers
GET /api/customers
limit
POST /api/customers
/api/customers/<customer_id>
GET /api/customers/<customer_id>
PUT /api/customers/<customer_id>
DELETE /api/customers/<customer_id>
/api/customers/<customer_id>/purchases
GET /api/customers/<customer_id>/purchases
search
filter
POST /api/customers/<customer_id>/purchases
/api/customers/<customer_id>/purchases/<purchase_id> - GET /api/customers/<customer_id>/purchases/<purchase_id> - return purchase details
/api/customers/<customer_id>/purchases/<purchase_id>
GET /api/customers/<customer_id>/purchases/<purchase_id>
PUT /api/customers/<customer_id>/purchases/<purchase_id>
DELETE /api/customers/<customer_id>/purchases/<purchase_id>
/api/customers/<customer_id>/repairs
GET /api/customers/<customer_id>/repairs
POST /api/customers/<customer_id>/repairs
/api/customers/<customer_id>/repairs/<repair_id>
GET /api/customers/<customer_id>/repair/<repair_id>
PUT /api/customers/<customer_id>/repair/<repair_id>
DELETE /api/customers/<customer_id>/repair/<repair_id>
The text was updated successfully, but these errors were encountered:
#14
Sorry, something went wrong.
When branches are created from issues, their pull requests are automatically linked.
There will be three models on which the API will be based.
Both
purchase
andrepair
models have a one-to-many relationship with acustomer
.Endpoints:
/api/customers
GET /api/customers
- return list of customers get all customers endpoint #17query parameters:
limit
TODOPOST /api/customers
- create new customer implement POST /api/customers for creating new customer #20accept json
/api/customers/<customer_id>
GET /api/customers/<customer_id>
- return customer details implementGET /api/customers/<customer_id>
#24PUT /api/customers/<customer_id>
- edit customer details implementPUT /api/customers/<customer_id>
for editing user details #25DELETE /api/customers/<customer_id>
- delete customer and all it's relations implementDELETE /api/customers/<customer_id>
for deleting customer data #27/api/customers/<customer_id>/purchases
GET /api/customers/<customer_id>/purchases
return list of purchases - implementGET /api/customers/<customer_id>/purchases
#29query parameters:
search
,limit
,filter
TODOPOST /api/customers/<customer_id>/purchases
create new purchaseaccept json - implement POST /api/customers/<customer_id>/purchases #37
/api/customers/<customer_id>/purchases/<purchase_id>
-GET /api/customers/<customer_id>/purchases/<purchase_id>
- return purchase detailsPUT /api/customers/<customer_id>/purchases/<purchase_id>
- edit purchase details - implementPUT /api/customers/<customer_id>/purchases/<purchase_id>
#40DELETE /api/customers/<customer_id>/purchases/<purchase_id>
- delete purchase details - implementDELETE /api/customers/<customer_id>/purchases/<purchase_id>
#39/api/customers/<customer_id>/repairs
GET /api/customers/<customer_id>/repairs
return list of repairsquery parameters:
search
,limit
,filter
POST /api/customers/<customer_id>/repairs
create new repairaccept json
/api/customers/<customer_id>/repairs/<repair_id>
GET /api/customers/<customer_id>/repair/<repair_id>
- return repair detailsPUT /api/customers/<customer_id>/repair/<repair_id>
- edit repair detailsDELETE /api/customers/<customer_id>/repair/<repair_id>
- delete repair detailsThe text was updated successfully, but these errors were encountered: