https://github.com/sanjayengineer121/djangotestofrestapi
https://github.com/sanjayengineer121/djangotestofrestapi
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sanjayengineer121/djangotestofrestapi
- Owner: sanjayengineer121
- License: apache-2.0
- Created: 2024-03-17T06:49:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-17T06:54:16.000Z (almost 2 years ago)
- Last Synced: 2025-04-03T15:44:34.966Z (9 months ago)
- Language: HTML
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.