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

Practice App: Implementing API for User #81

Closed
8 tasks done
mehmetemreakbulut opened this issue May 8, 2022 · 1 comment · Fixed by #82
Closed
8 tasks done

Practice App: Implementing API for User #81

mehmetemreakbulut opened this issue May 8, 2022 · 1 comment · Fixed by #82
Assignees
Labels
Prio: High Importance of Issue: High Status: Accepted Issue is reviewed, accepted Type: To Do Our tasks are labeled with this label.

Comments

@mehmetemreakbulut
Copy link
Contributor

mehmetemreakbulut commented May 8, 2022

Issue Description

Endpoints are determined in Weekly Notes 10.2
We divided the practice app APIs into 12 tasks.My responsibility is implementing an endpoint for creating user and getting all users.
We push together the essential models. Issue #78

Django built-in user model might be enough. However custom user model can be more suitable for the project. Both will be tested.

Details for User APIs:

  • Check data is valid
  • Check whether user exists
  • Password hashing
  • Creating and saving user
  • Success or Error Response
  • Postman Test
  • Saving to Postman
  • Documentation

In the Postman, requests and response will be saved and linked to the documentation.

Task Deadline: 14.05.2022 16:00

Review Deadline: 14.05.2022 20:00

@mehmetemreakbulut mehmetemreakbulut self-assigned this May 8, 2022
@mehmetemreakbulut mehmetemreakbulut added Prio: High Importance of Issue: High Type: To Do Our tasks are labeled with this label. Status: In Progress Issue is worked on, currently labels May 8, 2022
@mehmetemreakbulut
Copy link
Contributor Author

mehmetemreakbulut commented May 8, 2022

Details

All tasks are done.
Django built-in User model with Djagno Rest Framework is used. Fields of Users : "username","email" and "password".
Username is primary key. Password is hashed with sha256 using Django User Model.

User functionalities:

Using endpoint "user/userList":
GET request: View all Users
POST request: Create a User

Using endpoint "user/userDetail":
GET request: View User Detail

Documentation is available here

To fork the collection in postman use:

Run in Postman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Prio: High Importance of Issue: High Status: Accepted Issue is reviewed, accepted Type: To Do Our tasks are labeled with this label.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants