Competences endpoint
Competence object
Name | Type | Description |
---|---|---|
id | integer |
The competence id |
title | string |
The title of a competence |
description | string |
The description of a competence |
color | string |
Color in hex value |
icon | string |
Link to an icon image |
created_at | datetime |
Timestamp of creation date |
updated_at | datetime |
Timestamp of update date |
Validations
Field | Value |
---|---|
title | Must be present |
description | Must be present |
description | Has a minimum of 3 characters and a maximum of 1000 |
color | Must start with a hashtag |
color | Must be 7 characters long, including hashtag |
color | Can only be numbers and the letters A-G |
Endpoints
URL | Description |
---|---|
GET api/v1/competences/ | Show all competences |
GET api/v1/competences
Het competence endpoint geeft je een object
met daarin een competence
attribute. Dit ziet er als volgd uit:
[
{
"id": 1,
"title": "Design & Experience",
"description": "Et astrum vilis.",
"icon": null,
"color": `#1abc9c`,
"created_at": "2015-11-17T13:00:08.211+01:00",
"updated_at": "2015-11-17T13:00:08.211+01:00"
},
{
"id": 2,
"title": "Implementation & Integration",
"description": "Culpa bellum aqua demoror praesentium talis.",
"icon": null,
"color": `#3498db`,
"created_at": "2015-11-17T13:00:08.225+01:00",
"updated_at": "2015-11-17T13:00:08.225+01:00"
},
{
"id": 3,
"title": "Research & Innovation",
"description": "Infit cena accusantium.",
"icon": null,
"color": `#9b59b6`,
"created_at": "2015-11-17T13:00:08.227+01:00",
"updated_at": "2015-11-17T13:00:08.227+01:00"
}
]
Status code:
Succesvol Request = 200