Last updated
Was this helpful?
Last updated
Was this helpful?
This section details about the REST services for ID Schema.
This API is used to create an ID Schema.
POST https://{base_url}/v1/masterdata/idschema
This API is used to update an ID Schema which is in draft status.
PUT https://{base_url}/v1/masterdata/idschema?id={id_value}
This API is used to delete an ID Schema which is in draft status.
DELETE https://{base_url}/v1/masterdata/idschema?id={id_value}
NA
NA
This API is used to fetch all the available ID Schema.
GET https://{base_url}/v1/masterdata/idschema/all?orderBy={desc or asc}&pageNumber={page number}&pageSize={page size}&sortBy={field to sort}
NA
NA
This API is used to fetch the latest published ID Schema if version is not passed in request url or less it an be used to fetch a specific id schema by passing the schema version.
GET https://dev.mosip.net/v1/masterdata/idschema/latest?schemaVersion={version_number}
NA
NA
This API is used to publish a draft ID Schema.
PUT https://{base_url}/v1/masterdata/idschema/publish
Response format
JSON
Requires Authentication
Yes
id
yes
ID of the API
mosip.idschema.create
version
yes
version of the API
v1
metadata
no
any meta information for the API
requesttime
yes
timestamp of the request
2019-12-11T06:12:25.288Z
request
yes
request body attributes
request.description
yes
description for the ID schema
MOSIP Sample identity
request.effectiveFrom
yes
timestamp from when this will be effective from
2020-06-11T06:12:25.288Z
request.schema
yes
UI specification attributes to generate the schema
request.schemaVersion
yes
schema version for the UI specification
request.title
yes
title or name of the schema
MOSIP Identity Schema 1.1
Response format
JSON
Requires Authentication
Yes
Response format
JSON
Requires Authentication
Yes
Response format
JSON
Requires Authentication
Yes
Response format
JSON
Requires Authentication
Yes
id
yes
ID of the API
mosip.idschema.create
version
yes
version of the API
v1
metadata
no
any meta information for the API
requesttime
yes
timestamp of the request
2019-12-11T06:12:25.288Z
request
yes
request body attributes
request.description
yes
description for the ID schema
MOSIP Sample identity
request.effectiveFrom
yes
timestamp from when this will be effective from
2020-06-11T06:12:25.288Z
request.schema
yes
UI specification attributes to generate the schema
request.schemaVersion
yes
schema version for the UI specification
request.title
yes
title or name of the schema
MOSIP Identity Schema 1.1
Response format
JSON
Requires Authentication
Yes
id
yes
ID of the API
mosip.idschema.create
version
yes
version of the API
v1
metadata
no
any meta information for the API
requesttime
yes
timestamp of the request
2019-12-11T06:12:25.288Z
request
yes
request body attributes
request.description
yes
description for the ID schema
MOSIP Sample identity
request.effectiveFrom
yes
timestamp from when this will be effective from
2020-06-11T06:12:25.288Z
request.schema
yes
UI specification attributes to generate the schema
request.schemaVersion
yes
schema version for the UI specification
request.title
yes
title or name of the schema
MOSIP Identity Schema 1.1