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

Online Component #12

Open
ridasafeer opened this issue Feb 22, 2022 · 0 comments
Open

Online Component #12

ridasafeer opened this issue Feb 22, 2022 · 0 comments
Assignees

Comments

@ridasafeer
Copy link
Collaborator

The online component consists of 2 requests:

GET request

Request: **GET** request/api/online/who
Returns all users when the online value will equal true
Parameter(s): None

PUT request

Request: PUT request api/online/change-status
Takes userid and updates the value of online to not, therefore depending on whether it is already True or False
Uses a JSON body: Ensures that only one route needs to be built for both requests

Online - Home API.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants