-run script
sudo docker-compose up -d
- Navgiate http://127.0.0.1:8000/swagger-ui/
postman_collection.json file exists in the source directory. You can import it into the Postman Software and experiment the rest api after you run the project succesfully
- Invoices API
GET
/api/invoices/?format=json
List the Invoices with pangiation.
format query params are optional and by default it renders the data in JSON format. if you specify?format=xml
api response in XML format.POST
/api/invoices/
Create the InvoiceGET
/api/invoices/{invoice_id}/
List the Invoice data of given invoice_idPUT
/api/invoices/{invoice_id}/
Update or Replace the Existing Invoice dataDelete
/api/invoices/{invoice_id}/
Delete the InvoiceGET
/api/invoices/{invoice_id/items/?format=json
List the Invoice Items of given invoice_id Pagination features are present.POST
/api/invoices/{invoice_id/items/
Add the Invoice Item to the given invoice_idGET|PUT|DELETE
/api/invoices/{invoice_id}/items/{invoice_item_id}/
List|Update|Delete the Invoice Item of given id of given invoice id
- Invoice Items API
GET
/api/invoice-items/?format=json
List the invoice items with pagination. support both json and xml.POST
/api/invoice-items/
Create the invoice item.GET
/api/invoice-items/{invoice_item_id}/
Retrieve the Invoice Item with invoice_item_idPUT
/api/invoice-items/?format=json
Update the Invoice Item with invoice_item_idDELETE
/api/invoice-items/?format=json
Delete the Invoice Item with invoice_item_id
- You can browse API with swagger UI on http://<domain_name>/swagger-ui/