Skill
This endpoint retrieves all the skills.
The Id of the user performing the request.
dummy-userid
The Id of the entity.
dummy-entityid
The API key for authentication
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
GET /api/skills HTTP/1.1
Host: api.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-userid
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
entity-101
Java
Java super slow
POST /api/skills HTTP/1.1
Host: api.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
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
GET /api/skills/{skillId} HTTP/1.1
Host: api.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-userid
The API key for authentication
test
The secret key for authentication
test-secret
The token for user authentication.
dummy-token
entity-101
[{"name":"Java","description":"Java super slow"}]
POST /api/skills/multiple HTTP/1.1
Host: api.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
test
The secret key for authentication
test-secret
The Id of the user performing the request.
dummy-userid
The token for user authentication.
dummy-token
stripe-payment-method-id
POST /api/payment/pay HTTP/1.1
Host: api.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