Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating API endpoints for user model #80

Open
ramanaditya opened this issue Mar 2, 2020 · 3 comments
Open

Creating API endpoints for user model #80

ramanaditya opened this issue Mar 2, 2020 · 3 comments
Labels
gssoc20 Welcome to GirlScript Summer of Code 2020 medium medium level issue

Comments

@ramanaditya
Copy link

ramanaditya commented Mar 2, 2020

Creating API endpoints for User model
The hardware devices will need to communicate with the server, so for that we require API endpoints to get the specific results in the JSON format.

Requirements of the Product

  • Getting a list of Users
  • Getting the information of single user
  • Creating an user using POST method
  • Updating the information of user using their id.

To make the code standard please use the following parameters

  • serializers.py for dumping data in JSON
  • views.py for creating all kinds of endpoints
  • Use class viewsets.ModelViewSet
  • All the API endpoints related to the user model should be present inside same class

Where to write the file

Note

  • Well commented code(required).
  • Don't delete the applied migrations
  • Don't push your database file
  • Don't push your local settings file
  • Write the test cases properly
  • Use Postman for checking the API endpoints (not required but suggested)
@ramanaditya ramanaditya added medium medium level issue gssoc20 Welcome to GirlScript Summer of Code 2020 labels Mar 2, 2020
@welcome
Copy link

welcome bot commented Mar 2, 2020

Thanks for opening your first issue!
Kindly note that this repository is maintained by Vinit Shahdeo.
He'll get back to you soon.

@Mit-Patel
Copy link

I want to contribute in this issue. @ramanaditya please assign me this issue.

@payal-98
Copy link

I want to contribute in this isuue..can u assign me?

@Mit-Patel Mit-Patel removed their assignment Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc20 Welcome to GirlScript Summer of Code 2020 medium medium level issue
Projects
None yet
Development

No branches or pull requests

3 participants