{"info":{"_postman_id":"c5d49e7a-32bf-416d-8e8d-653e66b74a67","name":"Labenu System","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"}],"owner":"15825773","collectionId":"c5d49e7a-32bf-416d-8e8d-653e66b74a67","publishedId":"Tzsfo6Bn","public":true,"customColor":{"top-bar":"FFFFF","right-sidebar":"313","highlight":"EF5"},"publishDate":"2021-08-02T20:22:09.000Z"},"item":[{"name":"GetStudentsFromClass","id":"45ae970c-a5c0-46f2-bfd4-790b8404cc93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://labenusystem-projeto.herokuapp.com/class/:classId/student","description":"<p>Retorna todos os estudantes de uma turma.</p>\n","urlObject":{"protocol":"https","path":["class",":classId","student"],"host":["labenusystem-projeto","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"1","key":"classId"}]}},"response":[],"_postman_id":"45ae970c-a5c0-46f2-bfd4-790b8404cc93"},{"name":"GetTeachersFromClass","id":"9d6d18f8-8718-437d-9939-88377e83ba28","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://labenusystem-projeto.herokuapp.com/class/:classId/teacher","description":"<p>Retorna todos os professores de uma turma.</p>\n","urlObject":{"protocol":"https","path":["class",":classId","teacher"],"host":["labenusystem-projeto","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"1","key":"classId"}]}},"response":[],"_postman_id":"9d6d18f8-8718-437d-9939-88377e83ba28"},{"name":"GetStudentAgeById","id":"91012b7b-585d-49fb-8aa2-a1b30af8ed16","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://labenusystem-projeto.herokuapp.com/student/age/:studentId","description":"<p>Retorna a idade de um estudante pelo seu <code>id</code>.</p>\n","urlObject":{"protocol":"https","path":["student","age",":studentId"],"host":["labenusystem-projeto","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"1","key":"studentId"}]}},"response":[],"_postman_id":"91012b7b-585d-49fb-8aa2-a1b30af8ed16"},{"name":"GetStudentsByHobby","id":"9aea5c58-1945-4dee-b655-2d0c7718a113","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://labenusystem-projeto.herokuapp.com/student/hobby?description=correr","description":"<p>Retorna todos os estudantes com o mesmo <code>hobby</code>.</p>\n","urlObject":{"protocol":"https","path":["student","hobby"],"host":["labenusystem-projeto","herokuapp","com"],"query":[{"key":"description","value":"correr"}],"variable":[]}},"response":[],"_postman_id":"9aea5c58-1945-4dee-b655-2d0c7718a113"},{"name":"CreateStudent","id":"b44ae490-fc3b-49f6-b7a7-c82356652313","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"aluno1\",\r\n    \"email\": \"aluno22@aluno.com\",\r\n    \"birthDate\": \"01/08/2002\",\r\n    \"hobbies\": [{\r\n        \"description\": \"judo\"\r\n    },\r\n    {\r\n        \"description\": \"natação\"\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenusystem-projeto.herokuapp.com/student","description":"<p>Cria um novo estudante.</p>\n<ul>\n<li><code>name</code>, <code>email</code> e <code>birthDate</code> são campos obrigatórios.</li>\n<li><code>birthDate</code> deve ser inserido no formato DD/MM/YYYY.</li>\n<li><code>hobbies</code> são opcionais e, caso sejam inseridos, devem ser enviados no modelo array de objetos,\ncuja única propriedade é <code>description</code>.</li>\n<li>Todos os campos são obrigatoriamente <code>string type</code>.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["student"],"host":["labenusystem-projeto","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"b44ae490-fc3b-49f6-b7a7-c82356652313"},{"name":"CreateTeacher","id":"22667271-04f5-4d4f-9bd9-fa4d3e522cba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"professor\",\r\n    \"email\": \"professor@professor.com\",\r\n    \"birthDate\": \"20/05/1995\",\r\n    \"specialties\": [{\r\n        \"description\": \"CSS\"\r\n    }]\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenusystem-projeto.herokuapp.com/teacher","description":"<p>Cria um novo professor.</p>\n<ul>\n<li><code>name</code>, <code>email</code> e <code>birthDate</code> são campos obrigatórios.</li>\n<li><code>birthDate</code> deve ser inserido no formato DD/MM/YYYY.</li>\n<li><code>specialties</code> são opcionais e, caso sejam inseridos, devem ser enviados no modelo array de objetos,\ncuja única propriedade é <code>description</code>.</li>\n<li><code>specialties</code> possui restrição aos seguintes valores: \"Backend\", \"CSS\", \"Programação Orientada a Objetos\",\n\"React\", \"Redux\", \"Testes\" ou \"Typescript\".</li>\n<li>Todos os campos são obrigatoriamente <code>string type</code>.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["teacher"],"host":["labenusystem-projeto","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"22667271-04f5-4d4f-9bd9-fa4d3e522cba"},{"name":"CreateClass","id":"942f3857-6f1c-4770-87db-49773761ab8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Nome_Turma\",\r\n    \"startDate\": \"01/01/2021\",\r\n    \"endDate\": \"06/06/2021\",\r\n    \"module\": 2,\r\n    \"period\": \"integral\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenusystem-projeto.herokuapp.com/class","description":"<p>Cria uma nova turma.</p>\n<ul>\n<li><code>name</code>, <code>startDate</code>, <code>endDate</code> e <code>module</code> são campos obrigatórios.</li>\n<li><code>startDate</code> e <code>endDate</code> devem ser inseridos no formato DD/MM/YYYY.</li>\n<li><code>period</code> é um campo opcional, que somente possui dois valores: \"integral\" ou \"noturno\".</li>\n<li>Caso não seja enviado valor para <code>period</code>, a turma criada tomará como padrão o valor <code>integral</code>.</li>\n<li>Para <code>period</code> de valor <code>noturno</code>, o valor de <code>name</code> deve obrigatoriamente terminar em <code>-na-night</code>.</li>\n<li><code>module</code> possui restrição aos seguintes valores: 0, 1, 2, 3, 4, 5, 6 e 7.</li>\n<li><code>module</code> deve ser preenchido como <code>number type</code>. Todos os demais campos são obrigatoriamente <code>string type</code>.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["class"],"host":["labenusystem-projeto","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"942f3857-6f1c-4770-87db-49773761ab8a"},{"name":"CreateStudentInClass","id":"8f2ea8ad-505f-464d-8d0a-eda34c6859bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{   \r\n    \"classId\": 2,\r\n    \"studentId\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenusystem-projeto.herokuapp.com/class/student","description":"<p>Cria a relação estudante a uma turma.</p>\n<ul>\n<li><code>classId</code> e <code>studentId</code> devem ser um número inteiro, não-negativo e não-nulo.</li>\n<li>Somente é possível alocar um estudante em uma única turma.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["class","student"],"host":["labenusystem-projeto","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8f2ea8ad-505f-464d-8d0a-eda34c6859bd"},{"name":"CreateTeacherInClass","id":"c1216a78-f0cb-4565-a7cd-b44ae5c44cd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{   \r\n    \"classId\": 2,\r\n    \"teacherId\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenusystem-projeto.herokuapp.com/class/teacher","description":"<p>Cria relação professor a uma turma.</p>\n<ul>\n<li><code>classId</code> e <code>teacherId</code> devem ser um número inteiro, não-negativo e não-nulo.</li>\n<li>Somente é possível associar um professor a uma única turma.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["class","teacher"],"host":["labenusystem-projeto","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1216a78-f0cb-4565-a7cd-b44ae5c44cd5"},{"name":"UpdateModuleFromClass","id":"2fedbd1f-6513-4213-a753-fa414fd9f854","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"module\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenusystem-projeto.herokuapp.com/class/:classId/module","description":"<p>Atualiza o módulo atual da turma.</p>\n<ul>\n<li><code>module</code> deve ser um número inteiro, dentre os seguintes valores: 0, 1, 2, 3, 4, 5, 6 e 7.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["class",":classId","module"],"host":["labenusystem-projeto","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"1","key":"classId"}]}},"response":[],"_postman_id":"2fedbd1f-6513-4213-a753-fa414fd9f854"},{"name":"RemoveStudentFromClass","id":"502cf645-94f0-45e0-9c56-96e8ca244506","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://labenusystem-projeto.herokuapp.com/class/:classId/student/:studentId","description":"<p>Remove estudante de uma turma.</p>\n<ul>\n<li><code>classId</code> e <code>studentId</code> devem ser um número inteiro, não-negativo e não-nulo.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["class",":classId","student",":studentId"],"host":["labenusystem-projeto","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"2","key":"classId"},{"type":"any","value":"1","key":"studentId"}]}},"response":[],"_postman_id":"502cf645-94f0-45e0-9c56-96e8ca244506"},{"name":"RemoveTeacherFromClass","id":"0c02270f-5815-4d18-94cd-521eb27d6c57","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://labenusystem-projeto.herokuapp.com/class/:classId/teacher/:teacherId","description":"<p>Remove professor de uma turma.</p>\n<ul>\n<li><code>classId</code> e <code>teacherId</code> devem ser um número inteiro, não-negativo e não-nulo.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["class",":classId","teacher",":teacherId"],"host":["labenusystem-projeto","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"2","key":"classId"},{"type":"any","value":"2","key":"teacherId"}]}},"response":[],"_postman_id":"0c02270f-5815-4d18-94cd-521eb27d6c57"}]}