GET /v2/project_sessions_skills/:id
Get a project sessions skill
GET /v2/project_sessions/:project_session_id/project_sessions_skills/:id
Get a project sessions skill of the given Id, associated with the given Project session
settings Params
Param name | Description |
---|---|
id |
required
. Must be String
The requested id |
project_session_id |
optional
. Must be String
The project_session id |
Examples
GET /v2/project_sessions_skills/1
200
{
"id": 1,
"project_session_id": 1979,
"skill_id": 2,
"value": 15,
"created_at": "2019-07-03T12:21:11.956Z",
"updated_at": "2019-07-03T12:21:11.956Z"
}
curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/project_sessions_skills/1"
{
"id": 1,
"project_session_id": 1979,
"skill_id": 2,
"value": 15,
"created_at": "2019-07-03T12:21:11.956Z",
"updated_at": "2019-07-03T12:21:11.956Z"
}
require "oauth2"
UID = "Your application uid"
SECRET = "Your application secret"
client = OAuth2::Client.new(UID, SECRET, site: "https://api.intra.42.fr")
token = client.client_credentials.get_token
response = token.get("/v2/project_sessions_skills/1")
response.status
# => 200
response.parsed
# => {"id"=>1, "project_session_id"=>1979, "skill_id"=>2, "value"=>15, "created_at"=>"2019-07-03T12:21:11.956Z", "updated_at"=>"2019-07-03T12:21:11.956Z"}