Get An Entity

To get an entity created by the owner, we need to make the following HTTP request

GET /api/v1/{entity-type}

Path Parameters

NameTypeDescription

entity-type*

String

The type of entity to retrieve

Query Parameters

Use search query parameter for pagination and filters

NameTypeDescription

search

base64 encoded data string

Sets the query for searching and pagination of the data. example: eyJvZmZzZXQiOjIsImxpbWl0IjoyLCJmaWx0ZXJzIjp7fSwiZW50aXR5VHlwZSI6WyJJbnN1cmFuY2UiXX0= contains { "offset": 2, "limit": 2, "filters": { } }

Headers

NameTypeDescription

authorization*

String

Set to Bearer {access-token} A valid token of the owner is required

viewTemplateId

String

File name of view templates configured

{
	"totalCount": 1,
	"nextPage": "<registry-url>/api/v1/Student?search=<base64 encoded search payload>"
	"prevPage": "<registry-url>/api/v1/Student?search=<base64 encoded search payload>"
	"data": [{
		"phoneNumber": "1234567890",
		"school": "UP Public School",
		"subject": "Math",
		"name": "Pranav Agate",
		"osid": "{id}",
		"osOwner": ["{owner-id}"],
		"_osState/school": "DRAFT"
	}]
}

Last updated

Copyright (c) 2023 EkStep Foundation under MIT License