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

Write api documention for getting credential detail from studio server #135

Open
varsha766 opened this issue Nov 7, 2022 · 1 comment
Open
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@varsha766
Copy link
Collaborator

No description provided.

@varsha766 varsha766 changed the title Write api documention of that will query studio server for user credential detail Write api documention for getting credential detail from studio server Nov 7, 2022
@varsha766
Copy link
Collaborator Author

varsha766 commented Nov 7, 2022

API documention for getting user detail after presentation verification

After creating presentation template form here. Verify presentation using hypersign-auth-node-sdk by following steps mentioned here

Run the project using command

npm run dev

API for fetching user data

To fetch user detail use our api https://stage.hypermine.in/studioserver/api/v1/presentation/request/info

URL

https://stage.hypermine.in/studioserver/api/v1/presentaion/request/info

Method

GET

Headers:

"accesstoken":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzNjhjMTQ3MjAwOGNkZWQ3ZDI1OWMxYyIsImlhdCI6MTY2NzgwOTYwNywiZXhwIjoxNjY3ODA5OTA3fQ._kBL39S-CT9cQWvP7Q0O6qXiV_f9TY5lgr74AOpoRCg"

Response

  • If status is 200
{
 message: 'success',
 data: {
   name: 'varsha',
   age: '23',
   id: 'did:hid:testnet:z4j9Exyg3Cbkq9AsMRJVSkW3q7nTriyv25WTp3rQaCLjR'
 },
 error: false
}
  • If some error occured status will be 400 and response is as below
{
    "message": "Token has expired",
    "data": null,
    "error": true
}

message: Reason due to which error has occured.

@varsha766 varsha766 self-assigned this Nov 8, 2022
@varsha766 varsha766 added the documentation Improvements or additions to documentation label Nov 8, 2022
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
Projects
None yet
Development

No branches or pull requests

1 participant