generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 19
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
[RFC] Identity Service API Contract #18
Labels
documentation
Improvements or additions to documentation
enhancement
Improving something existing
feature task
A big ticket item that needs to come up as a feature
question
Further information is requested
Comments
This was referenced Dec 28, 2021
4 tasks
This was referenced Feb 6, 2022
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
Improvements or additions to documentation
enhancement
Improving something existing
feature task
A big ticket item that needs to come up as a feature
question
Further information is requested
Identity Service API Contracts
New User Object
Health Log object
Requests
PENDING
and calls the identity servicePENDING
approvalNOT APPROVED
PATCH /users/identityURL
Sets the identityURL for a user having param username
Params
None
Query
None
Body
{identityURL : <identityURL>}
Headers
None
Cookie
User Cookies
Success Response:
Code: 200
Error Response:
{ 'statusCode': 500, 'error': 'Internal Server Error', 'message': 'An internal server error occurred' }
GET /users/chaincode
Returns the chaincode after generating and updating new and distict chaincode
Params
None
Query
None
Body
None
Headers
None
Cookie
User Cookies
Success Response:
Code: 200
Error Response:
{ 'statusCode': 500, 'error': 'Internal Server Error', 'message': 'An internal server error occurred' }
POST /users/verify
Sets the identityStatus to
PENDING
and calls the identity serviceParams
None
Query
None
Body
None
Headers
None
Cookie
User Cookies
Success Response:
Code: 200
Error Response:
{ 'statusCode': 500, 'error': 'Internal Server Error', 'message': 'An internal server error occurred' }
GET /users/profileDiffs
Returns the profile diffs with the
PENDING
approvalParams
None
Query
None
Body
None
Headers
None
Cookie
User Cookies
Success Response:
Code: 200
Error Response:
{ 'statusCode': 500, 'error': 'Internal Server Error', 'message': 'An internal server error occurred' }
PATCH /users/:username
Update the user and sets the lastDiff to
APPROVED
if requested by an authorized personParams
None
Query
username: string
Body
{
'first_name': string,
'last_name': string,
'email': string,
'phone': number,
'yoe': number,
'company': string,
'designation': string,
'github_id': string,
'linkedin_id': string,
'twitter_id': string,
'instagram_id': string,
'website': string,
}
Headers
None
Cookie
User Cookies
Success Response:
Code: 200
Error Response:
{ 'statusCode': 500, 'error': 'Internal Server Error', 'message': 'An internal server error occurred' }
PATCH /users/rejectDiff
Sets the approval key in users latest profile diff to
NOT APPROVED
Params
None
Query
username: string
Body
{
username: string
}
Headers
None
Cookie
User Cookies
Success Response:
Code: 200
Error Response:
{ 'statusCode': 500, 'error': 'Internal Server Error', 'message': 'An internal server error occurred' }
The text was updated successfully, but these errors were encountered: