Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NeuroFlow Interview
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ac3963
NeuroFlow Interview
Commits
07362817
Commit
07362817
authored
Jul 24, 2020
by
ac3963
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
a83636a1
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+12
-1
12 additions, 1 deletion
README.md
with
12 additions
and
1 deletion
README.md
+
12
−
1
View file @
07362817
# 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment