RFC - API Endpoints for a Registry Server #99
Replies: 2 comments
-
There are two types of APIs (one internal to registries which Sunbird RC implementation can use as default) and second set of APIs that are exposed to "verifiers" and "attesters" who are outside parties who will integrate with a registry. For latter use the Google doc created by Rahul Kulkarni to help finalize. For former (internal APIs of Sunbird RC), I suggest you work with @dileepbapat and @tejash-jl. Remember that there are live implementations of Sunbird RC in India and in other countries. So, any core API changes should be backward compatible. |
Beta Was this translation helpful? Give feedback.
-
I've updated the Draft Technical Spec Google Doc incorporating suggestions from the RFC by @gamemaker1 and balancing it with current implementation. Please do take a look at section 6 and comment, especially on items in red where spec may differ from implementation. @pramodkvarma @dileepbapat @tejash-jl @kesavanp123 @gamemaker1 @bharatkashyap |
Beta Was this translation helpful? Give feedback.
-
I would like to propose the following API endpoints for a registry server for consideration. This is an improvement over the Sunbird RC specification as given here.
The proposed specification is located here.
RFC - Registry Server APIs
See the document on entity representations for a detailed explanation on all the JSON objects returned from API requests.
API Endpoints
Create An Entity
Request
POST /api/{entity-kind}
Parameters
content-type
application/json
accept
application/vnd.registry.v1+json
entity-kind
claims
Usage
Response
Retrieve An Entity
Request
GET /api/{entity-kind}/{entity-id}
Parameters
content-type
application/json
accept
application/vnd.registry.v1+json
entity-kind
entity-id
Usage
Response
Update An Entity
Request
PATCH /api/{entity-kind}/{entity-id}
Parameters
content-type
application/json
accept
application/vnd.registry.v1+json
entity-kind
entity-id
claims
Usage
Response
Delete An Entity
Request
DELETE /api/{entity-kind}/{entity-id}
Parameters
content-type
application/json
accept
application/vnd.registry.v1+json
entity-kind
entity-id
Usage
Response
Attest A Claim
Request
POST /api/{entity-kind}/{entity-id}/{entity-claim}/attest
Parameters
content-type
application/json
accept
application/vnd.registry.v1+json
entity-kind
entity-id
entity-claim
attestor
value
Usage
Response
Retrieve An Entity's Schema
Request
GET /api/{entity-kind}
Parameters
content-type
application/json
accept
application/vnd.registry.v1+json
entity-kind
Usage
Response
Search For An Entity
Request
GET /api/{entity-kind}/search
Parameters
content-type
application/json
accept
application/vnd.registry.v1+json
entity-kind
query
Usage
Response
Retrieve Signing Keys
Request
GET /meta/signing-keys/{key-id}
Parameters
content-type
application/json
accept
application/vnd.registry.v1+json
key-id
Usage
Response
Beta Was this translation helpful? Give feedback.
All reactions