An open API service indexing awesome lists of open source software.

https://github.com/sanjayengineer121/djangotestofrestapi


https://github.com/sanjayengineer121/djangotestofrestapi

Last synced: 5 months ago
JSON representation

Awesome Lists containing this project

README

          

# Djangotestofrestapi

Assignment Details -

You need to create a single url /invoices/ for thisCreate a Django application (Django Rest Framework) using the given information:

You need to create a single url /invoices/ for this

/invoices/
/invoices//

- Create two Django models viz. Invoice and Invoice Detail.
- Invoice model fields -> Date, Invoice CustomerName.
- InvoiceDetail model fields -> invoice (ForeignKey), description, quantity, unit_price, price.
- Create APIs using Django Rest Framework for all the HTTP methods for the invoice models.
- The API should also accept invoice_details in the payload and create/update the associated invoice details too

- Create test cases to test all the API endpoints.