Create db.sqlite file in the project directory.
Then you may type command:
npm run server
Also you need some way to send json files. I use Postman for that.
If you want use all crud operations you need to create superuser account. For this go to:
http://localhost:3000/auth/register
Then in json format send your username and password. Like this:
{
"username": yourusername,
"password": yourpassword
}
For login send the same json in:
http://localhost:3000/auth/login
After that you will get token acces. Now just put it in the header Authorization. Like this:
Bearer yourtoken
Authentication not required
http://localhost:/gnomes
If you want filter results by race of gnomes:
http://localhost:3000/gnomes/race
Authentication required
http://localhost:3000/gnomes
http://localhost:3000/gnomes/<int:id>
http://localhost:3000/gnomes/<int:id>
- Sending png file for gnome
- Implement swagger
- Add exception handling in some places