-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create a List of api to be exposed #143
Comments
Studio Core APIsCore APIs are the list of apis that will be used for registering any org or person on our server, creating dids, schemas, credentials, and presentations as well as verifying those generated credentials. ObjectiveTo provide API service on Entity Studio to issuers/verifier PrerequisitesThe first client has to register themselves. For this, they have to fill out the below form Upon filing the details, click on the {
"audience": "https://stage.hypermine.in/",
"url": "https://stage.hypermine.in/studioserver/auth/token",
"tenant_subdomain": "varsha-kumari-dplbkq",
"client_id": "arBlWbnir4EG1DU7F4tqoRREbtsa4nxJ",
"client_secret": "9C3_oXh85QB4Izf5NvQ_tEj_fVcKjRmP_tuXJ5GWwi51LGNVuv-WG4lEmiA0A5yM"
} API to register on studio server(/studioserver/register)This api is for register any client on studio server before using any functionality of studio URLPOST https://stage.hypermine.in/studioserver/register Request Body{
"name":"Varsha kumari",
"email":"[email protected]",
"organisation":"hypermine",
"organisationWebsite":"http://hypersign.id",
"country":"india",
"role":"developer",
"phoneNumber":"6202533809"
} Response Body{
"client_id": "assb7358vcbuututr",
"client_secret": "5C3_oXh85QB4Izf5NvQ_tEj_fVcKjRmP_tuXJ5GWwi51LGNVuv-WG4lEmiA0A5xt",
"kmsId": "var48458bchfuhjkd_k_012",
"edvId": "bnkgitkhy2854jrefnf_eut84hji"
} AuthorizationFor calling any api client need to authenticate itself. Authentication happens on every single request by passing access_token in the header. API for generating access_tokenGenerate access token using registered client_Id, client_secret, and audience. URLPOST https://stage.hypermine.in/studioserver/auth/token Request Body{
"client_id": "arBlWbnir4EG1DU7F4tqoRREbtsa4nxJ",
"client_secret":"9C3_oXh85QB4Izf5NvQ_tEj_fVcKjRmP_tuXJ5GWwi51LGNVuv-WG4lEmiA0A5yM",
"grant_type": "client_credentials"
} Response Body{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlJqaEROemRDUlVKRVEwTTVSVFE0TmtZME9UZzVNVEpDTlVJNFJqRTBPREExTmpZMk1qazFPQSJ9.eyJodHRwOi8vbWF0dHIvdGVuYW50LWlkIjoiODRjMTE3MmMtYzhmYS00YWQzLTg0MzItOGMzOGExMzQwNDMzIiwiaXNzIjoiaHR0cHM6Ly9hdXRoLm1hdHRyLmdsb2JhbC8iLCJzdWIiOiJhckJsV2JuaXI0RUcxRFU3RjR0cW9SUkVidHNhNG54SkBjbGllbnRzIiwiYXVkIjoiaHR0cHM6Ly92aWkubWF0dHIuZ2xvYmFsIiwiaWF0IjoxNjcwMjE0MzAzLCJleHAiOjE2NzAyMjg3MDMsImF6cCI6ImFyQmxXYm5pcjRFRzFEVTdGNHRxb1JSRWJ0c2E0bnhKIiwiZ3R5IjoiY2xpZW50LWNyZWRlbnRpYWxzIn0.UbLHVksMLT7SmZCXWYK0juAjAemunadsfqL73A9EkZn8N7levinmIm3XJ_8ZtkSLeE6Mx6RMTJrOTwZyZxtHSmenkNDhC3T4sh4eawlLN-yhAK929TUWOVJsWCQ1eIURL1Hh15GMpPDUeFLv5KTvUgWJuthCpekScI6Bx73fffjV3IJ4YPPIfdi6k9efIkcK3vSRLQndzBjuFZEQ-E40BHR6N3S5eOZ5LUQimRQwwis3nWibR5prDoOYNC4ayZNuoTe1xm9YC5gQ5-AdMPqMvpUEaUSEi3SHxXLd2sbqYOevpEZbyXWTI91dqVxgWsq5jmY9H_FaW1C3U7ZPYbWGUg",
"expires_in": 14400,
"token_type": "Bearer"
} APIsOnce an access token is generated client can use the following APIs to create dids, schema, credentials, and presentation. The client will able to verify those generated credentials also.
/api/v1/config/domainThis api is for creating a custom domain. A custom domain allows displaying credential or presentation requests to be rendered under the domain of preference. URL POST https://${tenant_subdomain}/studioserver/api/v1/config/domain Request Headers:Authorization: ${access_token},
Accept: application/json Request Body {
"name":"hypermine",
"logoUrl": "https://www.google.com/url?sa=i&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FReal_image&psig=AOvVaw2J6tuR1GLlikZhXgtJ9IwI&ust=1669979864015000&source=images&cd=vfe&ved=0CA8QjRxqFwoTCMDqj_al2PsCFQAAAAAdAAAAABAE",
"domain":"hypermine.in",
"homepage":"http://test.com"
} Response Body{
"name": "hypermine",
"logoUrl": "https://www.google.com/url?sa=i&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FReal_image&psig=AOvVaw2J6tuR1GLlikZhXgtJ9IwI&ust=1669979864015000&source=images&cd=vfe&ved=0CA8QjRxqFwoTCMDqj_al2PsCFQAAAAAdAAAAABAE",
"domain": "hypermine.in",
"homepage": "http://test.com",
"verificationToken": "8d15686a-cf07-40e6-8ec1-578911daffc7",
"isVerified": false
} /api/v1/didsCreate didThis api is to create did for particular client or org.
Fetch did listThis api is to create did for particular client or org.
Fetch did listThis api is to create did for particular client or org.
Update didThis api is to update did document. We can update did document controller
/api/v1/schemaCreate SchemaThis api is for creating schema.
Fetch schemaThis api is for fetching schema list
api/v1/credentialCreate credentialThis api is used for issuing verifiable credentials based on the particular schema.
Fetch credential listThis api is for fetching list of credential.
Update credential statusThis api is to update credential status. One can either suspend credential or completely revoke it.
Verify credentialThis api is used to verify particular credential.
/api/v1/presentationCreate presentation templateThis api is used to create a presentation template for the particular issued credential.
Fetch presentation template listThis api is used to fetch presentation template list.
Fetch particular presentation templateThis api is used to fetch presentation template by id.
Update presentation template
Delete presentation template
Create Presentation RequestThis api is to create presentation request for short period of time.
Verify PresentationThis api verify particular presentation.
|
No description provided.
The text was updated successfully, but these errors were encountered: