Context
Endpoints for managing contexts
This endpoint saves a JSON-LD context file.
Authorizations
Body
context_file_idstringOptionalExample:
The filename of the JSON-LD context file to save.
test.json
Responses
200
Context saved successfully
application/json
400
Bad Request
application/json
401
Unauthorized.
500
Internal Server Error
application/json
post
POST /api/v1/context HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 448
{
"context_file_id": "test.json",
"file": {
"@context": {
"GenericCredential": {
"@id": "https://example.com/indicio#GenericCredential",
"@context": {
"name": "http://schema.org/name",
"familyName": "http://schema.org/familyName",
"givenName": "http://schema.org/givenName",
"identifier": "https://example.com/indicio#identifier",
"date": {
"@id": "http://schema.org/date",
"@type": "http://www.w3.org/2001/XMLSchema#date"
},
"description": "http://schema.org/description"
}
}
}
}
}
{
"message": "Context file was posted"
}
This endpoint retrieves a JSON-LD context file by its ID.
Authorizations
Path parameters
idstringRequired
The ID of the JSON-LD context file to retrieve.
Responses
200
JSON-LD context file retrieved successfully
application/json
Responseobject
404
Context file not found
application/json
500
Internal Server Error
application/json
get
GET /context/{id} HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
{}
Was this helpful?