Data Module
Consists of all APIs to measure dApp metrics
Get all app metrics for an entity
List all the metrics available for an entity
GET
https://api.questprotocol.xyz/api/entities/{entityID}/metrics
Path Parameters
Name | Type | Description |
---|---|---|
entityID* | String |
Query Parameters
Name | Type | Description |
---|---|---|
address* | String | |
signature* | String |
Can only be performed by the admin/owner of the Entity.
Get all app metrics for a user in an entity
GET
https://api.questprotocol.xyz/api/entities/{entityID}/users/{userAddress}/metrics
Path Parameters
Name | Type | Description |
---|---|---|
entityID* | String | |
userAddress* | String |
Query Parameters
Name | Type | Description |
---|---|---|
address* | String | |
signature* | String |
Can only be performed by the admin/owner of the Entity.
Increment a app metric for a user in entity
Increments a app metric for a user in entity, can only be done by Entity Admins/Owners.
POST
https://api.questprotocol.xyz/api/entities/{entityID}/users/{userAddress}/metrics/{metric}
Path Parameters
Name | Type | Description |
---|---|---|
entityID* | String | |
userAddress* | String | |
metric* | String |
Query Parameters
Name | Type | Description |
---|---|---|
address* | String | |
signature* | String |
Request Body
Name | Type | Description |
---|---|---|
count* | String |
Can only be performed by the admin/owner of the Entity.
Increment multiple app metrics for a user in entity
Increment multiple app metrics for a user in entity, can only be done by Entity Admins/Owners.
POST
https://api.questprotocol.xyz/api/entities/{entityID}/users/{userAddress}/metrics
Path Parameters
Name | Type | Description |
---|---|---|
entityID* | String | |
userAddress* | String |
Query Parameters
Name | Type | Description |
---|---|---|
address* | String | |
signature* | String |
Request Body
Name | Type | Description |
---|---|---|
metrics* | Array | |
counts* | Array |
Can be only performed by the admin of the Entity.
Updates App metric information for an Entity. Can be only performed by the admin of the Entity.
POST
https://api.questprotocol.xyz/api/entities/{entityID}/metrics/{metricID}/update
Path Parameters
Name | Type | Description |
---|---|---|
entityID* | String | |
metricID* | String |
Query Parameters
Name | Type | Description |
---|---|---|
signature* | String | |
address | String |
Request Body
Name | Type | Description |
---|---|---|
name* | String | |
description* | String | |
type* | String |
Can only be performed by the admin/owner of the Entity.
Last updated