Skill
This endpoint retrieves all the skills.
The Id of the user performing the request.
dummy-useridThe Id of the entity.
dummy-entityidThe API key for authentication
testThe secret key for authentication
test-secretThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
GET /api/skills?userId=dummy-userid&entityId=dummy-entityid HTTP/1.1
Host: https:/.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true,
"data": [
{
"skillId": "skill-23",
"parentSkillId": "skill-100",
"name": "Java",
"description": "bunch of boilerplate"
}
]
}This endpoint allows to add a new skill.
The Id of the user performing the request.
dummy-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenentity-101JavaJava super slowSuccessful response
Client error
Server error
POST /api/skills?userId=dummy-userid HTTP/1.1
Host: https:/.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"entityId": "entity-101",
"name": "Java",
"description": "Java super slow"
}{
"success": true,
"skillId": "skill-101"
}This endpoint retrieves skill details.
The API key for authentication
testThe secret key for authentication
test-secretThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenSuccessful response
Client error
Unauthorized error
Server error
GET /api/skills/{skillId} HTTP/1.1
Host: https:/.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Accept: */*
{
"success": true,
"data": {
"skillId": "skill123",
"parentSkillId": "parentSkill123",
"name": "Programming",
"description": "Description of the programming skill",
"entityId": "entity123",
"isEnabled": true,
"createdAt": "2023-06-27T12:45:00Z"
}
}This endpoint allows to add multiple new skills.
The Id of the user performing the request.
dummy-useridThe API key for authentication
testThe secret key for authentication
test-secretThe token for user authentication.
dummy-tokenentity-101[{"name":"Java","description":"Java super slow"}]Successful response
Client error
Server error
POST /api/skills/multiple?userId=dummy-userid HTTP/1.1
Host: https:/.questprotocol.xyz
apikey: test
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 84
{
"entityId": "entity-101",
"skills": [
{
"name": "Java",
"description": "Java super slow"
}
]
}{
"success": true,
"skillIds": [
"skill-101",
"skill-102"
]
}This endpoint allows to make payment.
The API key for authentication
testThe secret key for authentication
test-secretThe Id of the user performing the request.
dummy-useridThe token for user authentication.
dummy-tokenstripe-payment-method-idSuccessful response
Client error
Server error
POST /api/payment/pay HTTP/1.1
Host: https:/.questprotocol.xyz
apikey: test
userid: dummy-userid
token: dummy-token
Content-Type: application/json
Accept: */*
Content-Length: 195
{
"id": "stripe-payment-method-id",
"product": {
"price": 100
},
"cardData": {
"email": "[email protected]",
"name": "Jon Doe",
"country": "India",
"zip": 12020
},
"info": {
"userId": "u-1202",
"entityId": "e-0000000000"
}
}{
"success": true,
"data": {}
}Last updated