Entity Gem
Get specific Entity Gems of specific entity.
The Id of the entity.
dummy-entityid
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The token for user authentication.
dummy-token
GET /api/entities/{entityId}/gem-contracts/{entityGemsContractId} HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": {
"entityId": "entity123",
"name": "Gem Name",
"desc": "Gem description",
"source": "OFFCHAIN",
"logo": "logo",
"initialDefaultValue": 100,
"isDeleted": false,
"createdAt": "2023-06-27T12:45:00Z",
"modifiedAt": "2023-06-27T12:45:00Z"
}
}
Add Entity Gems of specific entity.
The Id of the entity.
dummy-entityid
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/gem-contracts/ HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"name": "text",
"source": "text",
"desc": "text",
"logo": "text",
"initialDefaultValue": "text"
}
{
"success": true,
"data": {
"entityId": "entity123",
"name": "Gem Name",
"desc": "Gem description",
"source": "OFFCHAIN",
"logo": "logo",
"initialDefaultValue": 100,
"isDeleted": false,
"createdAt": "2023-06-27T12:45:00Z",
"modifiedAt": "2023-06-27T12:45:00Z"
}
}
Update Entity Gems Info of specific entity.
The Id of the entity.
dummy-entityid
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/gem-contracts/{entityGemsContractId}/update HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"name": "text",
"source": "text",
"desc": "text",
"logo": "text",
"initialDefaultValue": "text"
}
{
"success": true,
"data": {
"entityId": "entity123",
"name": "Gem Name",
"desc": "Gem description",
"source": "OFFCHAIN",
"logo": "logo",
"initialDefaultValue": 100,
"isDeleted": false,
"createdAt": "2023-06-27T12:45:00Z",
"modifiedAt": "2023-06-27T12:45:00Z"
}
}
Soft Delete Entity Gems info of specific entity.
The Id of the entity.
dummy-entityid
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/gem-contracts/{entityGemsContractId}/delete HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Accept: */*
{
"success": true,
"data": {
"entityId": "entity123",
"name": "Gem Name",
"desc": "Gem description",
"source": "OFFCHAIN",
"logo": "logo",
"initialDefaultValue": 100,
"isDeleted": false,
"createdAt": "2023-06-27T12:45:00Z",
"modifiedAt": "2023-06-27T12:45:00Z"
}
}
Increase Entity Gems value of a particular user
The Id of the entity.
dummy-entityid
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/users/{userId}/gemsContracts/{entityGemsContractId}/increase HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"value": "text"
}
{
"success": true,
"data": {
"entityId": "entity123",
"userId": "user1",
"gemsContractId": {
"entityId": "entity123",
"name": "Gem Name",
"desc": "Gem description",
"source": "OFFCHAIN",
"logo": "logo",
"initialDefaultValue": 100,
"isDeleted": false,
"createdAt": "2023-06-27T12:45:00Z",
"modifiedAt": "2023-06-27T12:45:00Z"
},
"value": 10
}
}
Decrease Entity Gems value of a particular user
The Id of the entity.
dummy-entityid
The Id of the user performing the request.
dummy-userid
The API key for authentication
test
The token for user authentication.
dummy-token
POST /api/entities/{entityId}/users/{userId}/gemsContracts/{entityGemsContractId}/decrease HTTP/1.1
Host: api.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"value": "text"
}
{
"success": true,
"data": {
"entityId": "entity123",
"userId": "user1",
"gemsContractId": {
"entityId": "entity123",
"name": "Gem Name",
"desc": "Gem description",
"source": "OFFCHAIN",
"logo": "logo",
"initialDefaultValue": 100,
"isDeleted": false,
"createdAt": "2023-06-27T12:45:00Z",
"modifiedAt": "2023-06-27T12:45:00Z"
},
"value": 10
}
}
Last updated