Skip to content

Latest commit

 

History

History
65 lines (26 loc) · 1.94 KB

README.md

File metadata and controls

65 lines (26 loc) · 1.94 KB

stock-REST-Django

REST framework helps in maintaining uniform interoperability between two applications or system regardless of the architecture they are built on. The project demonstrate a Stock Market app using django REST Framework, which can retrieve data using GET request as well as update data at server side using POST request.

Running the server :

Use python manage.py runserver

For Adding a Stock to database navigate to /stocks/create/

Alt text

Fill in stock details on browsable API for adding stocks

Alt text

For getting a particular stock details navigate to /stocks/<stock_id>

Alt text

Response will list the particular stock fields

Alt text

For getting the list of stocks in database navigate to /stocks/

Alt text

Response list will contain all the stocks in app database with related fields

Alt text

For updating a particular stock in database navigate to /stocks/<stock_id>/edit/

Alt text

Fill in stock details on browsable API for Updating stock

Alt text

For Deleting a particular stock based on id in database navigate to /stocks/<stock_id>/delete/

Alt text

Confirm delete on browsable api for deleting the stock

Alt text

At any time, to get response in json plain text, suffix the url with '.json'