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

API endpoints for the Hardware devices #84

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

API endpoints for the Hardware devices #84

ramanaditya opened this issue Mar 2, 2020 · 4 comments
Assignees
Labels
gssoc20 Welcome to GirlScript Summer of Code 2020 hard hard level issue

Comments

@ramanaditya
Copy link

Creating API endpoints for Hardware 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.
There will be hardware devices associated with their Hardware id, check the models.py file inside hardware app for better understanding

Requirements of the Product

  • Getting a list of Hardware device
  • Getting the information of single Hardware Device
  • Creating an Hardware using POST method and linking it with user model
  • Updating the information of hardware device using their id.
  • Fetching the list of hardware devices registered with users using user id. (Beware of cyclic imports)

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 Hardware 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 advanced advanced level issue gssoc20 Welcome to GirlScript Summer of Code 2020 labels Mar 2, 2020
@Aju100
Copy link

Aju100 commented Mar 2, 2020

can you assigned for me this issue ?

@ramanaditya ramanaditya added hard hard level issue and removed advanced advanced level issue labels Mar 3, 2020
@payal-98
Copy link

can u assigned me this issue?

@ramanaditya
Copy link
Author

The issue has been assigned to @Aju100 and @payal-98 , work on this and make a PR

@EZENGESH
Copy link

EZENGESH commented Feb 18, 2024

I did not comprehend well the requirement

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 hard hard level issue
Projects
None yet
Development

No branches or pull requests

4 participants