GET /v2/scales/:id
Get a scale
live_help Notes
assignment
This action requires one of theses roles:
Advanced tutor
settings Params
Param name | Description |
---|---|
id |
required
. Must be String
The requested id |
Examples
GET /v2/scales/1
200
{
"id": 1,
"evaluation_id": 168,
"name": "Wyoming black cats",
"is_primary": true,
"comment": "Banh mi dreamcatcher ad natus. Aut blog sunt nostrum est repellendus. Fingerstache hammock echo sed.",
"introduction_md": "Chambray mumblecore non harum mustache wayfarers eius. Sartorial lumbersexual street tenetur keffiyeh. Dolorum pbr&b eveniet nihil neque dolores non. Banh mi atque officia eaque cumque.",
"disclaimer_md": "Adipisci iusto qui laborum tote bag letterpress brooklyn. Voluptatibus fanny pack ea wayfarers.",
"guidelines_md": "Chartreuse sequi repellendus squid franzen qui. Voluptatum sint cornhole mustache single-origin coffee typewriter. Qui omnis ramps vitae gluten-free corrupti 8-bit nam.",
"created_at": "2016-05-04T10:45:05.519Z",
"correction_number": 3,
"duration": 1800,
"manual_subscription": true,
"languages": [
{
"id": 2,
"name": "English",
"identifier": "en",
"created_at": "2015-04-14T16:07:38.122Z",
"updated_at": "2015-04-14T16:07:38.122Z"
}
],
"sections": [
{
"id": 1975,
"name": "Nebraska druids",
"description": "Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.",
"questions": [
{
"id": 5854,
"name": "Florida buffalo",
"guidelines": "Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.",
"rating": "bool",
"kind": "standard",
"created_at": "2016-05-04T10:45:05.785Z"
}
]
},
{
"id": 1976,
"name": "Nebraska druids",
"description": "Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.",
"questions": [
{
"id": 5855,
"name": "Florida buffalo",
"guidelines": "Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.",
"rating": "bool",
"kind": "standard",
"created_at": "2016-05-04T10:45:06.131Z"
}
]
},
{
"id": 1977,
"name": "Nebraska druids",
"description": "Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.",
"questions": [
{
"id": 5856,
"name": "Florida buffalo",
"guidelines": "Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.",
"rating": "bool",
"kind": "standard",
"created_at": "2016-05-04T10:45:06.457Z"
}
]
},
{
"id": 1978,
"name": "Nebraska druids",
"description": "Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.",
"questions": [
{
"id": 5857,
"name": "Florida buffalo",
"guidelines": "Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.",
"rating": "bool",
"kind": "standard",
"created_at": "2016-05-04T10:45:07.035Z"
}
]
}
],
"evaluation": {
"id": 168,
"kind": "scale"
}
}
GET /v2/scales/2
200
{
"id": 2,
"evaluation_id": 3,
"name": "Tennessee prophets",
"is_primary": true,
"comment": "Quidem pork belly before they sold out non vegan. Portland lo-fi sunt dolorum raw denim similique non. Accusantium consequatur quis retro. Maiores blanditiis fap chambray vice similique intelligentsia tattooed.",
"introduction_md": "Sapiente plaid +1 ea wes anderson mlkshk mumblecore. Eaque repellendus eveniet slow-carb.",
"disclaimer_md": "Ugh kitsch molestiae dicta keffiyeh eius tumblr gastropub. Earum repellendus sequi tilde velit error.",
"guidelines_md": "Wolf voluptas itaque. Sunt art party farm-to-table sapiente. Ea voluptatum voluptas culpa listicle facilis.",
"created_at": "2017-11-22T13:41:27.957Z",
"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"
}
],
"sections": [
{
"id": 3,
"name": "Wyoming ants",
"description": "Cum messenger bag praesentium hella wes anderson tofu butcher. Xoxo pabst ut quod. Tattooed adipisci bushwick. Hammock aut accusamus salvia schlitz corporis kitsch tote bag.",
"questions": [
{
"name": "Idaho rabbits",
"id": 5,
"questions_skills": [
{
"id": 9,
"question_id": 5,
"skill_id": 6,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.006Z",
"updated_at": "2017-11-22T13:41:28.006Z"
},
{
"id": 10,
"question_id": 5,
"skill_id": 1,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.020Z",
"updated_at": "2017-11-22T13:41:28.020Z"
}
]
},
{
"name": "Oklahoma elves",
"id": 6,
"questions_skills": [
{
"id": 11,
"question_id": 6,
"skill_id": 6,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.064Z",
"updated_at": "2017-11-22T13:41:28.064Z"
},
{
"id": 12,
"question_id": 6,
"skill_id": 1,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.068Z",
"updated_at": "2017-11-22T13:41:28.068Z"
}
]
}
]
},
{
"id": 4,
"name": "New York gooses",
"description": "Modi polaroid odio lomo chillwave. Cold-pressed everyday quasi possimus 90's flexitarian. Fingerstache ullam quia et distillery cupiditate shoreditch tousled. Quis tousled keffiyeh debitis. Earum sunt quis repellat quasi green juice knausgaard.",
"questions": [
{
"name": "Virginia ghosts",
"id": 7,
"questions_skills": [
{
"id": 13,
"question_id": 7,
"skill_id": 6,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.144Z",
"updated_at": "2017-11-22T13:41:28.144Z"
},
{
"id": 14,
"question_id": 7,
"skill_id": 1,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.158Z",
"updated_at": "2017-11-22T13:41:28.158Z"
}
]
},
{
"name": "Idaho witches",
"id": 8,
"questions_skills": [
{
"id": 15,
"question_id": 8,
"skill_id": 6,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.210Z",
"updated_at": "2017-11-22T13:41:28.210Z"
},
{
"id": 16,
"question_id": 8,
"skill_id": 1,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.215Z",
"updated_at": "2017-11-22T13:41:28.215Z"
}
]
}
]
}
],
"evaluation": {
"id": 3,
"kind": "scale"
}
}
curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/scales/1"
{
"id": 1,
"evaluation_id": 168,
"name": "Wyoming black cats",
"is_primary": true,
"comment": "Banh mi dreamcatcher ad natus. Aut blog sunt nostrum est repellendus. Fingerstache hammock echo sed.",
"introduction_md": "Chambray mumblecore non harum mustache wayfarers eius. Sartorial lumbersexual street tenetur keffiyeh. Dolorum pbr&b eveniet nihil neque dolores non. Banh mi atque officia eaque cumque.",
"disclaimer_md": "Adipisci iusto qui laborum tote bag letterpress brooklyn. Voluptatibus fanny pack ea wayfarers.",
"guidelines_md": "Chartreuse sequi repellendus squid franzen qui. Voluptatum sint cornhole mustache single-origin coffee typewriter. Qui omnis ramps vitae gluten-free corrupti 8-bit nam.",
"created_at": "2016-05-04T10:45:05.519Z",
"correction_number": 3,
"duration": 1800,
"manual_subscription": true,
"languages": [
{
"id": 2,
"name": "English",
"identifier": "en",
"created_at": "2015-04-14T16:07:38.122Z",
"updated_at": "2015-04-14T16:07:38.122Z"
}
],
"sections": [
{
"id": 1975,
"name": "Nebraska druids",
"description": "Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.",
"questions": [
{
"id": 5854,
"name": "Florida buffalo",
"guidelines": "Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.",
"rating": "bool",
"kind": "standard",
"created_at": "2016-05-04T10:45:05.785Z"
}
]
},
{
"id": 1976,
"name": "Nebraska druids",
"description": "Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.",
"questions": [
{
"id": 5855,
"name": "Florida buffalo",
"guidelines": "Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.",
"rating": "bool",
"kind": "standard",
"created_at": "2016-05-04T10:45:06.131Z"
}
]
},
{
"id": 1977,
"name": "Nebraska druids",
"description": "Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.",
"questions": [
{
"id": 5856,
"name": "Florida buffalo",
"guidelines": "Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.",
"rating": "bool",
"kind": "standard",
"created_at": "2016-05-04T10:45:06.457Z"
}
]
},
{
"id": 1978,
"name": "Nebraska druids",
"description": "Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.",
"questions": [
{
"id": 5857,
"name": "Florida buffalo",
"guidelines": "Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.",
"rating": "bool",
"kind": "standard",
"created_at": "2016-05-04T10:45:07.035Z"
}
]
}
],
"evaluation": {
"id": 168,
"kind": "scale"
}
}
curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" "https://api.intra.42.fr/v2/scales/2"
{
"id": 2,
"evaluation_id": 3,
"name": "Tennessee prophets",
"is_primary": true,
"comment": "Quidem pork belly before they sold out non vegan. Portland lo-fi sunt dolorum raw denim similique non. Accusantium consequatur quis retro. Maiores blanditiis fap chambray vice similique intelligentsia tattooed.",
"introduction_md": "Sapiente plaid +1 ea wes anderson mlkshk mumblecore. Eaque repellendus eveniet slow-carb.",
"disclaimer_md": "Ugh kitsch molestiae dicta keffiyeh eius tumblr gastropub. Earum repellendus sequi tilde velit error.",
"guidelines_md": "Wolf voluptas itaque. Sunt art party farm-to-table sapiente. Ea voluptatum voluptas culpa listicle facilis.",
"created_at": "2017-11-22T13:41:27.957Z",
"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"
}
],
"sections": [
{
"id": 3,
"name": "Wyoming ants",
"description": "Cum messenger bag praesentium hella wes anderson tofu butcher. Xoxo pabst ut quod. Tattooed adipisci bushwick. Hammock aut accusamus salvia schlitz corporis kitsch tote bag.",
"questions": [
{
"name": "Idaho rabbits",
"id": 5,
"questions_skills": [
{
"id": 9,
"question_id": 5,
"skill_id": 6,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.006Z",
"updated_at": "2017-11-22T13:41:28.006Z"
},
{
"id": 10,
"question_id": 5,
"skill_id": 1,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.020Z",
"updated_at": "2017-11-22T13:41:28.020Z"
}
]
},
{
"name": "Oklahoma elves",
"id": 6,
"questions_skills": [
{
"id": 11,
"question_id": 6,
"skill_id": 6,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.064Z",
"updated_at": "2017-11-22T13:41:28.064Z"
},
{
"id": 12,
"question_id": 6,
"skill_id": 1,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.068Z",
"updated_at": "2017-11-22T13:41:28.068Z"
}
]
}
]
},
{
"id": 4,
"name": "New York gooses",
"description": "Modi polaroid odio lomo chillwave. Cold-pressed everyday quasi possimus 90's flexitarian. Fingerstache ullam quia et distillery cupiditate shoreditch tousled. Quis tousled keffiyeh debitis. Earum sunt quis repellat quasi green juice knausgaard.",
"questions": [
{
"name": "Virginia ghosts",
"id": 7,
"questions_skills": [
{
"id": 13,
"question_id": 7,
"skill_id": 6,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.144Z",
"updated_at": "2017-11-22T13:41:28.144Z"
},
{
"id": 14,
"question_id": 7,
"skill_id": 1,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.158Z",
"updated_at": "2017-11-22T13:41:28.158Z"
}
]
},
{
"name": "Idaho witches",
"id": 8,
"questions_skills": [
{
"id": 15,
"question_id": 8,
"skill_id": 6,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.210Z",
"updated_at": "2017-11-22T13:41:28.210Z"
},
{
"id": 16,
"question_id": 8,
"skill_id": 1,
"percentage": 25,
"created_at": "2017-11-22T13:41:28.215Z",
"updated_at": "2017-11-22T13:41:28.215Z"
}
]
}
]
}
],
"evaluation": {
"id": 3,
"kind": "scale"
}
}
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/scales/1")
response.status
# => 200
response.parsed
# => {"id"=>1, "evaluation_id"=>168, "name"=>"Wyoming black cats", "is_primary"=>true, "comment"=>"Banh mi dreamcatcher ad natus. Aut blog sunt nostrum est repellendus. Fingerstache hammock echo sed.", "introduction_md"=>"Chambray mumblecore non harum mustache wayfarers eius. Sartorial lumbersexual street tenetur keffiyeh. Dolorum pbr&b eveniet nihil neque dolores non. Banh mi atque officia eaque cumque.", "disclaimer_md"=>"Adipisci iusto qui laborum tote bag letterpress brooklyn. Voluptatibus fanny pack ea wayfarers.", "guidelines_md"=>"Chartreuse sequi repellendus squid franzen qui. Voluptatum sint cornhole mustache single-origin coffee typewriter. Qui omnis ramps vitae gluten-free corrupti 8-bit nam.", "created_at"=>"2016-05-04T10:45:05.519Z", "correction_number"=>3, "duration"=>1800, "manual_subscription"=>true, "languages"=>[{"id"=>2, "name"=>"English", "identifier"=>"en", "created_at"=>"2015-04-14T16:07:38.122Z", "updated_at"=>"2015-04-14T16:07:38.122Z"}], "sections"=>[{"id"=>1975, "name"=>"Nebraska druids", "description"=>"Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.", "questions"=>[{"id"=>5854, "name"=>"Florida buffalo", "guidelines"=>"Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.", "rating"=>"bool", "kind"=>"standard", "created_at"=>"2016-05-04T10:45:05.785Z"}]}, {"id"=>1976, "name"=>"Nebraska druids", "description"=>"Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.", "questions"=>[{"id"=>5855, "name"=>"Florida buffalo", "guidelines"=>"Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.", "rating"=>"bool", "kind"=>"standard", "created_at"=>"2016-05-04T10:45:06.131Z"}]}, {"id"=>1977, "name"=>"Nebraska druids", "description"=>"Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.", "questions"=>[{"id"=>5856, "name"=>"Florida buffalo", "guidelines"=>"Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.", "rating"=>"bool", "kind"=>"standard", "created_at"=>"2016-05-04T10:45:06.457Z"}]}, {"id"=>1978, "name"=>"Nebraska druids", "description"=>"Rem butcher blue bottle ex cum. Knausgaard plaid quis chambray wayfarers. Vegan laboriosam occaecati chicharrones sed selfies neque.", "questions"=>[{"id"=>5857, "name"=>"Florida buffalo", "guidelines"=>"Sriracha occupy farm-to-table venmo. Semiotics quinoa drinking. Craft beer viral kinfolk. Portland mumblecore diy butcher knausgaard flexitarian tacos cold-pressed. Food truck before they sold out park biodiesel.", "rating"=>"bool", "kind"=>"standard", "created_at"=>"2016-05-04T10:45:07.035Z"}]}], "evaluation"=>{"id"=>168, "kind"=>"scale"}}
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/scales/2")
response.status
# => 200
response.parsed
# => {"id"=>2, "evaluation_id"=>3, "name"=>"Tennessee prophets", "is_primary"=>true, "comment"=>"Quidem pork belly before they sold out non vegan. Portland lo-fi sunt dolorum raw denim similique non. Accusantium consequatur quis retro. Maiores blanditiis fap chambray vice similique intelligentsia tattooed.", "introduction_md"=>"Sapiente plaid +1 ea wes anderson mlkshk mumblecore. Eaque repellendus eveniet slow-carb.", "disclaimer_md"=>"Ugh kitsch molestiae dicta keffiyeh eius tumblr gastropub. Earum repellendus sequi tilde velit error.", "guidelines_md"=>"Wolf voluptas itaque. Sunt art party farm-to-table sapiente. Ea voluptatum voluptas culpa listicle facilis.", "created_at"=>"2017-11-22T13:41:27.957Z", "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"}], "sections"=>[{"id"=>3, "name"=>"Wyoming ants", "description"=>"Cum messenger bag praesentium hella wes anderson tofu butcher. Xoxo pabst ut quod. Tattooed adipisci bushwick. Hammock aut accusamus salvia schlitz corporis kitsch tote bag.", "questions"=>[{"name"=>"Idaho rabbits", "id"=>5, "questions_skills"=>[{"id"=>9, "question_id"=>5, "skill_id"=>6, "percentage"=>25, "created_at"=>"2017-11-22T13:41:28.006Z", "updated_at"=>"2017-11-22T13:41:28.006Z"}, {"id"=>10, "question_id"=>5, "skill_id"=>1, "percentage"=>25, "created_at"=>"2017-11-22T13:41:28.020Z", "updated_at"=>"2017-11-22T13:41:28.020Z"}]}, {"name"=>"Oklahoma elves", "id"=>6, "questions_skills"=>[{"id"=>11, "question_id"=>6, "skill_id"=>6, "percentage"=>25, "created_at"=>"2017-11-22T13:41:28.064Z", "updated_at"=>"2017-11-22T13:41:28.064Z"}, {"id"=>12, "question_id"=>6, "skill_id"=>1, "percentage"=>25, "created_at"=>"2017-11-22T13:41:28.068Z", "updated_at"=>"2017-11-22T13:41:28.068Z"}]}]}, {"id"=>4, "name"=>"New York gooses", "description"=>"Modi polaroid odio lomo chillwave. Cold-pressed everyday quasi possimus 90's flexitarian. Fingerstache ullam quia et distillery cupiditate shoreditch tousled. Quis tousled keffiyeh debitis. Earum sunt quis repellat quasi green juice knausgaard.", "questions"=>[{"name"=>"Virginia ghosts", "id"=>7, "questions_skills"=>[{"id"=>13, "question_id"=>7, "skill_id"=>6, "percentage"=>25, "created_at"=>"2017-11-22T13:41:28.144Z", "updated_at"=>"2017-11-22T13:41:28.144Z"}, {"id"=>14, "question_id"=>7, "skill_id"=>1, "percentage"=>25, "created_at"=>"2017-11-22T13:41:28.158Z", "updated_at"=>"2017-11-22T13:41:28.158Z"}]}, {"name"=>"Idaho witches", "id"=>8, "questions_skills"=>[{"id"=>15, "question_id"=>8, "skill_id"=>6, "percentage"=>25, "created_at"=>"2017-11-22T13:41:28.210Z", "updated_at"=>"2017-11-22T13:41:28.210Z"}, {"id"=>16, "question_id"=>8, "skill_id"=>1, "percentage"=>25, "created_at"=>"2017-11-22T13:41:28.215Z", "updated_at"=>"2017-11-22T13:41:28.215Z"}]}]}], "evaluation"=>{"id"=>3, "kind"=>"scale"}}