GET /v2/project_sessions/:project_session_id/scale_teams/:id
Get a scale team of the given Id, associated with the given Project session
GET /v2/scale_teams/:id
Get a scale team
settings Params
Param name | Description |
---|---|
project_session_id |
optional
. Must be String
The project_session id |
id |
required
. Must be String
The requested id |
Examples
GET /v2/scale_teams/1
200
{
"id": 1,
"scale_id": 1,
"comment": null,
"created_at": "2017-11-22T13:42:09.187Z",
"updated_at": "2017-11-22T13:42:09.187Z",
"feedback": null,
"feedback_rating": null,
"final_mark": null,
"flag": {
"id": 1,
"name": "Ok",
"positive": true,
"icon": "check-4",
"created_at": "2017-11-22T13:41:01.837Z",
"updated_at": "2017-11-22T13:41:01.837Z"
},
"begin_at": "2017-11-24T18:00:00.000Z",
"correcteds": "invisible",
"corrector": "invisible",
"truant": {},
"filled_at": null,
"scale": {
"id": 1,
"evaluation_id": 1,
"name": "Utah ducks",
"is_primary": true,
"comment": "Perferendis maiores dreamcatcher. Pickled five dollar toast truffaut quis fashion axe.",
"introduction_md": "Direct trade asperiores aut odit. Eius meh qui nihil reprehenderit. Before they sold out vegan molestias. Brooklyn rerum non architecto mumblecore franzen post-ironic.",
"disclaimer_md": "Ipsa expedita gluten-free. Laboriosam ennui actually literally aut trust fund.",
"guidelines_md": "Tumblr ethical eaque blanditiis eligendi. Dolores facere maiores hashtag pour-over architecto.",
"created_at": "2017-11-22T13:41:27.388Z",
"correction_number": 3,
"duration": 1800,
"manual_subscription": true,
"languages": [
{
"id": 3,
"name": "Romanian",
"identifier": "ro",
"created_at": "2017-11-22T13:40:59.468Z",
"updated_at": "2017-11-22T13:41:26.139Z"
}
]
},
"feedbacks": []
}
curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/scale_teams/1"
{
"id": 1,
"scale_id": 1,
"comment": null,
"created_at": "2017-11-22T13:42:09.187Z",
"updated_at": "2017-11-22T13:42:09.187Z",
"feedback": null,
"feedback_rating": null,
"final_mark": null,
"flag": {
"id": 1,
"name": "Ok",
"positive": true,
"icon": "check-4",
"created_at": "2017-11-22T13:41:01.837Z",
"updated_at": "2017-11-22T13:41:01.837Z"
},
"begin_at": "2017-11-24T18:00:00.000Z",
"correcteds": "invisible",
"corrector": "invisible",
"truant": {},
"filled_at": null,
"scale": {
"id": 1,
"evaluation_id": 1,
"name": "Utah ducks",
"is_primary": true,
"comment": "Perferendis maiores dreamcatcher. Pickled five dollar toast truffaut quis fashion axe.",
"introduction_md": "Direct trade asperiores aut odit. Eius meh qui nihil reprehenderit. Before they sold out vegan molestias. Brooklyn rerum non architecto mumblecore franzen post-ironic.",
"disclaimer_md": "Ipsa expedita gluten-free. Laboriosam ennui actually literally aut trust fund.",
"guidelines_md": "Tumblr ethical eaque blanditiis eligendi. Dolores facere maiores hashtag pour-over architecto.",
"created_at": "2017-11-22T13:41:27.388Z",
"correction_number": 3,
"duration": 1800,
"manual_subscription": true,
"languages": [
{
"id": 3,
"name": "Romanian",
"identifier": "ro",
"created_at": "2017-11-22T13:40:59.468Z",
"updated_at": "2017-11-22T13:41:26.139Z"
}
]
},
"feedbacks": []
}
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/scale_teams/1")
response.status
# => 200
response.parsed
# => {"id"=>1, "scale_id"=>1, "comment"=>nil, "created_at"=>"2017-11-22T13:42:09.187Z", "updated_at"=>"2017-11-22T13:42:09.187Z", "feedback"=>nil, "feedback_rating"=>nil, "final_mark"=>nil, "flag"=>{"id"=>1, "name"=>"Ok", "positive"=>true, "icon"=>"check-4", "created_at"=>"2017-11-22T13:41:01.837Z", "updated_at"=>"2017-11-22T13:41:01.837Z"}, "begin_at"=>"2017-11-24T18:00:00.000Z", "correcteds"=>"invisible", "corrector"=>"invisible", "truant"=>{}, "filled_at"=>nil, "scale"=>{"id"=>1, "evaluation_id"=>1, "name"=>"Utah ducks", "is_primary"=>true, "comment"=>"Perferendis maiores dreamcatcher. Pickled five dollar toast truffaut quis fashion axe.", "introduction_md"=>"Direct trade asperiores aut odit. Eius meh qui nihil reprehenderit. Before they sold out vegan molestias. Brooklyn rerum non architecto mumblecore franzen post-ironic.", "disclaimer_md"=>"Ipsa expedita gluten-free. Laboriosam ennui actually literally aut trust fund.", "guidelines_md"=>"Tumblr ethical eaque blanditiis eligendi. Dolores facere maiores hashtag pour-over architecto.", "created_at"=>"2017-11-22T13:41:27.388Z", "correction_number"=>3, "duration"=>1800, "manual_subscription"=>true, "languages"=>[{"id"=>3, "name"=>"Romanian", "identifier"=>"ro", "created_at"=>"2017-11-22T13:40:59.468Z", "updated_at"=>"2017-11-22T13:41:26.139Z"}]}, "feedbacks"=>[]}