Entity Gem
Get specific Entity Gems of specific entity.
The Id of the entity.
dummy-entityidThe Id of the user performing the request.
dummy-useridThe API key for authentication
testThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
GET /api/entities/{entityId}/gem-contracts/{entityGemsContractId}?entityId=dummy-entityid&userId=dummy-userid HTTP/1.1
Host: https:/.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-entityidThe Id of the user performing the request.
dummy-useridThe API key for authentication
testThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
POST /api/entities/{entityId}/gem-contracts/?entityId=dummy-entityid&userId=dummy-userid HTTP/1.1
Host: https:/.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-entityidThe Id of the user performing the request.
dummy-useridThe API key for authentication
testThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
POST /api/entities/{entityId}/gem-contracts/{entityGemsContractId}/update?entityId=dummy-entityid&userId=dummy-userid HTTP/1.1
Host: https:/.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 of an Entity
Soft Delete Entity Gems info of specific entity.
The Id of the entity.
dummy-entityidThe Id of the user performing the request.
dummy-useridThe API key for authentication
testThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
POST /api/entities/{entityId}/gem-contracts/{entityGemsContractId}/delete?entityId=dummy-entityid&userId=dummy-userid HTTP/1.1
Host: https:/.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 of an user
Increase Entity Gems value of a particular user
The Id of the entity.
dummy-entityidThe Id of the user performing the request.
dummy-useridThe API key for authentication
testThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
POST /api/entities/{entityId}/users/{userId}/gemsContracts/{entityGemsContractId}/increase?entityId=dummy-entityid&userId=dummy-userid HTTP/1.1
Host: https:/.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 of an user
Decrease Entity Gems value of a particular user
The Id of the entity.
dummy-entityidThe Id of the user performing the request.
dummy-useridThe API key for authentication
testThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
POST /api/entities/{entityId}/users/{userId}/gemsContracts/{entityGemsContractId}/decrease?entityId=dummy-entityid&userId=dummy-userid HTTP/1.1
Host: https:/.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