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 contract for users/userAvailble/:id route #20
Changes from 6 commits
b3cb58b
1aa65be
7273c8d
ba3dc2f
2c44835
f022f2e
23780b0
766e60e
d3b9ee7
19c3c0b
ef71f1b
3450580
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,6 +111,22 @@ Returns the specified user. | |
- **Code:** 401 | ||
- **Content:** `{ 'statusCode': 401, 'error': 'Unauthorized', 'message': 'Unauthenticated User' }` | ||
|
||
## **GET /users/userAvailable/:id** | ||
|
||
Returns the availability of user name. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please combine and make it |
||
|
||
- **Params** | ||
_Required:_ `id=[string]` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. re: |
||
- **Body** | ||
None | ||
- **Headers** | ||
Content-Type: application/json | ||
- **Cookie** | ||
rds-session: `<JWT>` | ||
- **Success Response:** | ||
- **Code:** 200 | ||
- **Content:** `{ 'userAvailable': <Availability Stauts> }` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Something like |
||
|
||
## **POST /users** | ||
|
||
Creates a new User. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be
username
instead ofid
, right?