POST on /components/
As per the Deliverable 2, we need to handle the subscription of a new component using a POST call on the /components/ endpoint, passing the parameters:
- Query params: None
- Body: a JSON-LD object describing the new component, compliant with our specification proposal
An example of component registration body:
{
"title": "gimlyID"
"uri": "https://components.startinblox.com/gimly",
"label": "GimlyID authentication component",
"description": "Component that allows you users to login using the GimlyID SSI Suite",
"author": "startinblox",
"tag": "sib-gimly",
"version": "0.0.1",
"latest": true
}
This endpoint will be public and will return either a 201 or a 400.
The 201 response body should be a JSON-LD conforming to our vocabulary for component definition, like so:
{
"@id": "https://builder.startinblox.com/components/gimly",
"@type": "sib:component",
"uri": "https://components.startinblox.com/gimly",
"label": "GimlyID authentication component",
"description": "Component that allows you users to login using the GimlyID SSI Suite",
"author": "startinblox",
"tag": "sib-gimly",
"version": "0.0.1",
"latest": true,
"title": "gimlyID"
"@context": "https://cdn.startinblox.com/owl/context.jsonld"
}