GET on /components/
GET on /components/
As per the Deliverable 2, we need to be able to get the descriptions of existing components using a GET call on the /components/ endpoint, passing the parameters:
- Query params:
query
optional parameter being the URL-encoded version of the desired query allowing to filter components by properties
Example of query: GET /components/?query=title%3Dsuper%26description%3Dexample
An example of the response body;
{
"@id": "https://builder.startinblox.com/components/",
"@type": "ldp:Container",
"ldp:contains": [
{
"@id": "https://builder.startinblox.com/components/gimly",
"@type": "sib:component",
"uri": "https://components.startinblox.com/gimly.js",
"label": "GimlyID authentication component",
"description": "Component that allows you users to login using the GimlyID SSI Suite",
"author": "startinblox",
"tag": "sib-gimly",
"title": "gimlyID"
"version": "0.0.1",
"latest": true,
},
{
"@id": "https://builder.startinblox.com/components/perun",
"@type": "sib:component",
"uri": "https://components.startinblox.com/perun.js",
"label": "Perun tipping component",
"description": "Super component that allows you to tip users using the Perun feature",
"author": "startinblox",
"tag": "sib-perun",
"title": "perun"
"version": "0.0.1",
"latest": true,
}
],
"@context": "https://cdn.startinblox.com/owl/context.jsonld"
}