Skip to content
Snippets Groups Projects
Commit 07362817 authored by ac3963's avatar ac3963
Browse files

Update README.md

parent a83636a1
No related branches found
No related tags found
No related merge requests found
# NeuroFlow Interview # NeuroFlow Interview
Features: /mood endpoint to record and view the mood for the signed user only. Each POST will increase the streak if it is one day after latest post.
login,register, and logout.
RESTful API for interview with NeuroFlow RESTful API for interview with NeuroFlow
To use the application, install the latest version of Python and type "pip install django" and "pip install djangorestframework" in any terminal.
Afterwards, just change into the folder containing manage.py and type "python manage.py runserver {ip:port}" replacing {ip:port}
with the ip and port of the server hosting it. Since this is an assessment, just leave it empty for localhost.
On the website, there are /register and /login endpoints to register and login.
To access the /mood endpoint, you need to be logged in and it will only display mood submissions submitted by the logged in user.
Since there is no front-end, to submit a mood, use a program like postman to send a POST request with credentials and a body
with in JSON format stating the mood. An example would be {"mood":"{replace mood here}"}.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment