{"info":{"_postman_id":"862ce1ec-b5ab-4560-bf7c-e2b15943982c","name":"LabeSystem6","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14145831","collectionId":"862ce1ec-b5ab-4560-bf7c-e2b15943982c","publishedId":"TzCMeTwk","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-03-31T21:18:36.000Z"},"item":[{"name":"Get Student Class By Id","id":"a0cffc9e-31bf-48a6-94c5-573cdfa24464","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3333/students/class/:id","description":"<p>Este endpoint retorna todos os estudantes de uma turma.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["students","class",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"classId","key":"id"}]}},"response":[{"id":"f9c13742-508c-440b-879a-de92a624c41b","name":"Get StudentClassById","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3333/students/class"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Nenhum estudante está na turma!\"\r\n}"}],"_postman_id":"a0cffc9e-31bf-48a6-94c5-573cdfa24464"},{"name":"Get Student By Hobby","id":"de5416a2-544e-4060-9d31-e5487d84f6da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3333/students?hobby=pescar","urlObject":{"protocol":"http","port":"3333","path":["students"],"host":["localhost"],"query":[{"key":"hobby","value":"pescar"}],"variable":[]}},"response":[{"id":"3a582bd7-1e64-4e00-950c-30cf4d57c830","name":"Get Student By Hobby","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3333/students"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Não existe nenhum estudante relacionado a este hobby!\"\r\n}"}],"_postman_id":"de5416a2-544e-4060-9d31-e5487d84f6da"},{"name":"Get Teacher Class By Id","id":"c70fd3d6-c2fa-452e-92fd-d012369d5f21","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3333/teacher/class/:id","description":"<p>Este endpoint retorna todos os docentes responsáveis pela turma.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["teacher","class",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"classId","key":"id"}]}},"response":[{"id":"b9bcaa5e-a963-4330-b623-83e806ca2ff5","name":"Get Teacher Class By Id","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:3333/teacher/class/:id","protocol":"http","host":["localhost"],"port":"3333","path":["teacher","class",":id"],"variable":[{"key":"id","value":"classId"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": [\r\n    {\r\n      \"Teacher\": \"Chijo\",\r\n      \"Speciality\": \"React\",\r\n      \"Class\": \"Paiva-na-night\"\r\n    }\r\n  ]\r\n}"}],"_postman_id":"c70fd3d6-c2fa-452e-92fd-d012369d5f21"},{"name":"Student Age By Id","id":"a7177e6c-fa0f-41e3-8d8d-f919a9b13994","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3333/students/:id","description":"<p>Este endpoint retorna o estudante e a idade.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["students",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"studentId","key":"id"}]}},"response":[{"id":"7cadecee-45c1-49a5-9709-1954183b68e4","name":"Student Age By Id","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:3333/students/:id","protocol":"http","host":["localhost"],"port":"3333","path":["students",":id"],"variable":[{"key":"id","value":"studentId"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": {\r\n    \"name\": \"Vitor\",\r\n    \"Age\": 24\r\n  }\r\n}"}],"_postman_id":"a7177e6c-fa0f-41e3-8d8d-f919a9b13994"},{"name":"Create Student","id":"1cf01835-bb08-47f6-8da7-cd6a20a029d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"José\",\r\n  \"email\": \"jose@gmail.com\",\r\n  \"birthdate\": \"24/02/1999\",\r\n  \"hobby\": \"Jogar\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3333/student/create","description":"<p>Este endpoint cria um estudante.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["student","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"671bb53a-d7a8-4e69-be19-c42ce127124f","name":"Create Student","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"José\",\r\n  \"email\": \"jose@gmail.com\",\r\n  \"birthdate\": \"24/02/1999\",\r\n  \"hobby\": \"Jogar\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3333/student/create"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": \"Estudante José adicionado a turma!\"\r\n}"}],"_postman_id":"1cf01835-bb08-47f6-8da7-cd6a20a029d3"},{"name":"Create Class","id":"d7103ba7-bc7d-436b-8d5f-f5c16269cfc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"name\":\"Epps\",\r\n\t\"start_date\":\"16/11/2020\",\r\n\t\"end_date\": \"30/05/2021\",\r\n\t\"module\": \"1\",\r\n\t\"type\": \"Integral\"\r\n}"},"url":"http://localhost:3333/class/create","description":"<p>Este endpoint nos permite criar uma turma.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["class","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"989a19fc-f5ed-4d91-8d4b-73a1c24f4540","name":"Create Class","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"name\":\"Epps\",\r\n\t\"start_date\":\"16/11/2020\",\r\n\t\"end_date\": \"30/05/2021\",\r\n\t\"module\": \"1\",\r\n\t\"type\": \"Integral\"\r\n}"},"url":"http://localhost:3333/class/create"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": \"Turma criada com sucesso.\"\r\n}"}],"_postman_id":"d7103ba7-bc7d-436b-8d5f-f5c16269cfc8"},{"name":"Create Teacher","id":"a76f1b51-014d-410b-a99f-fb418548cb87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"name\":\"Mateus\",\r\n\t\"email\": \"mateus@lbn.com\",\r\n\t\"birthdate\":\"25/04/1994\",\r\n\t\"speciality\":\"Backend\"\r\n}"},"url":"http://localhost:3333/teacher/create","description":"<p>Este endpoint nos permite a criação de um docente.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["teacher","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9aa04020-8e6f-4ca2-aab1-36fbda87ade3","name":"Create Teacher","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"name\":\"Mateus\",\r\n\t\"email\": \"mateus@lbn.com\",\r\n\t\"birthdate\":\"25/04/1994\",\r\n\t\"speciality\":\"Backend\"\r\n}"},"url":"http://localhost:3333/teacher/create"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": \"Docente criado com sucesso.\"\r\n}"}],"_postman_id":"a76f1b51-014d-410b-a99f-fb418548cb87"},{"name":"Student In a Class","id":"69a94873-e8c8-439b-b83c-344c0eb96dd8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"\r\n{\r\n    \"class_id\":\"1617144512594\",\r\n    \"student_id\":\"1617146322934\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3333/students/class","description":"<p>Este endpoint coloca um estudante em alguma turma existente.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["students","class"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"926d8633-cf77-4dfc-a9a7-f49ccc6e85ee","name":"Student In a Class","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"\r\n{\r\n    \"class_id\":\"1617144512594\",\r\n    \"student_id\":\"1617146322934\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3333/students/class"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": \"O aluno foi inserido na turma\"\r\n}"}],"_postman_id":"69a94873-e8c8-439b-b83c-344c0eb96dd8"},{"name":"Class Module Update","id":"82ff4292-5874-451b-85b9-29cb30d31d29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"id\":\"1617136623687\",\r\n\t\"module\":\"3\"\r\n}"},"url":"http://localhost:3333/class/update","description":"<p>Este endpoint muda a turma de módulo.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["class","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"befbe2a0-457b-45fd-98e9-476600c772d0","name":"Class Module Update","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"id\":\"1617136623687\",\r\n\t\"module\":\"3\"\r\n}"},"url":"http://localhost:3333/class/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"58"},{"key":"ETag","value":"W/\"3a-+Qlf93B07xS/ffsns/dTGNHznd4\""},{"key":"Date","value":"Wed, 31 Mar 2021 20:59:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O módulo da turma foi alterado com sucesso!\"\n}"}],"_postman_id":"82ff4292-5874-451b-85b9-29cb30d31d29"},{"name":"Teacher In A Class","id":"514db7d5-0e36-4f46-94bd-0a43a600d81d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"class_id\":\"1617218981457\",\r\n\t\"teacher_id\": \"1617219288706\"\r\n}"},"url":"http://localhost:3333/teacher/class","description":"<p>Este endpoint coloca o docente em alguma turma já existente.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["teacher","class"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bb50ea86-999a-4f38-a337-4bab508331ec","name":"Teacher In A Class","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n\t\"class_id\":\"1617218981457\",\r\n\t\"teacher_id\": \"1617219288706\"\r\n}"},"url":"http://localhost:3333/teacher/class"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": \"O professor foi inserido na turma\"\r\n}"}],"_postman_id":"514db7d5-0e36-4f46-94bd-0a43a600d81d"},{"name":"Remove Student","id":"6e64d697-d258-4bbe-8306-169549c13d35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3333/students/remove-student/:id","description":"<p>Este endpoint remove um estudante de todo o banco de dados.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["students","remove-student",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"studentId","key":"id"}]}},"response":[{"id":"5fc37c64-3c3a-484a-95bf-ffcf67fc4016","name":"Remove Student","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:3333/students/remove-student/:id","protocol":"http","host":["localhost"],"port":"3333","path":["students","remove-student",":id"],"variable":[{"key":"id","value":"1617146365781"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"46"},{"key":"ETag","value":"W/\"2e-QgnebalW+IAG4zGHBvON7Ju4RDw\""},{"key":"Date","value":"Wed, 31 Mar 2021 20:51:19 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"O aluno foi removido do sistema.\"\n}"}],"_postman_id":"6e64d697-d258-4bbe-8306-169549c13d35"},{"name":"Remove Student From Class","id":"94ef78d2-fbff-4d45-934d-b566a3791e41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3333/students/remove-class/:id","description":"<p>Este endpoint remove um estudante de uma turma.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["students","remove-class",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"studentId","key":"id"}]}},"response":[{"id":"1cb6ad23-8e2c-4c1e-84f2-2b8e68a8fb0d","name":"Remove Student From Class","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:3333/students/remove-class/:id","protocol":"http","host":["localhost"],"port":"3333","path":["students","remove-class",":id"],"variable":[{"key":"id","value":"1617144533594"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"O aluno foi removido da turma\"\r\n}"}],"_postman_id":"94ef78d2-fbff-4d45-934d-b566a3791e41"},{"name":"Remove Teacher From Class","id":"8011e793-0cd6-4b48-865c-19b90afcc45d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3333/teacher/class/remove/:id","description":"<p>Este endpoint remove um docente de uma turma.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["teacher","class","remove",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"teacherId","key":"id"}]}},"response":[{"id":"efda34ea-8536-4a12-a7ad-14045a992d62","name":"Remove Teacher From Class","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:3333/teacher/class/remove/:id","protocol":"http","host":["localhost"],"port":"3333","path":["teacher","class","remove",":id"],"variable":[{"key":"id","value":"teacherId"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": \"O professor for removido da turma.\"\r\n}"}],"_postman_id":"8011e793-0cd6-4b48-865c-19b90afcc45d"}]}