Skip to content

philipp-bliznuk/market

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Market API

To setup this application you should create virtualenv and run following commands:

$ pip install -r requirements.txt
$ ./manage.py migrate
$ ./manage.py runserver

API Examples

To create new product you should make POST request to http://localhost:8000/products/ with payload:

{
  "name": "product name",
  "description": "product description"
}

To vote for a product you should make POST request to http://localhost:8000/votes/ with payload:

{
  "product": "product id",
  "value": "rating value in range 0-5"
}

For more info about API implementation please visit http://localhost:8000/

Also you can access products data via admin panel. Default admin credentials is admin:admin

About

Implement simple market API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages