{"info":{"_postman_id":"a5f5c6e9-b8fd-47a9-9652-c66ba9b16a3f","name":"LabeSystem8","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"14146800","collectionId":"a5f5c6e9-b8fd-47a9-9652-c66ba9b16a3f","publishedId":"TzCQb737","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-04-05T11:27:56.000Z"},"item":[{"name":"Get Student Class By Id","id":"b638fe5c-a812-49b9-8a70-264d63757fea","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 todos os estudantes de uma turma.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["students",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"8d81b314-98a4-4b51-af6c-a7d45b282c2b","name":"Get Student Class By Id","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3333/students/1"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"className\": \"Turma IPA\",\r\n  \"student\": [\r\n    {\r\n      \"id\": \"1617548937370\",\r\n      \"student_name\": \"Ju\",\r\n      \"email\": \"Juliene@gmail.com\",\r\n      \"hobbies\": \"Patinar.\",\r\n      \"birthdate\": \"07/12/1980\"\r\n    }\r\n  ]\r\n}"}],"_postman_id":"b638fe5c-a812-49b9-8a70-264d63757fea"},{"name":"Get Student By Hobby","id":"cf9a78e0-b7d0-4150-9fcc-45efae4321e6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3333/students/hobbies","description":"<p>Este endpoint retorna os estudantes agrupados por hobbies.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["students","hobbies"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bd3735f0-4969-4746-995b-f0566a87fb0b","name":"Get Student By Hobby","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3333/students/hobbies"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"students\": [\r\n    {\r\n      \"id\": \"1617548937370\",\r\n      \"student_name\": \"Ju\",\r\n      \"email\": \"Juliene@gmail.com\",\r\n      \"hobbies\": \"Patinar.\",\r\n      \"birthdate\": \"07/12/1980\"\r\n    },\r\n    {\r\n      \"id\": \"1617566013084\",\r\n      \"student_name\": \"Daniel\",\r\n      \"email\": \"daniel@gmail.com\",\r\n      \"hobbies\": \"Patinar.\",\r\n      \"birthdate\": \"19/05/1993\"\r\n    }\r\n  ]\r\n}"}],"_postman_id":"cf9a78e0-b7d0-4150-9fcc-45efae4321e6"},{"name":"Get Teacher Class By Id","id":"0c02df93-5c32-4cd1-a65f-fdce4f3328cf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3333/teacher/:id","description":"<p>Este endpoint retorna todos os docentes responsáveis pela turma.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["teacher",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"c3f97549-7aa5-4138-a055-9c4da30b6a1f","name":"Get Teacher Class By Id","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:3333/teacher/:id","protocol":"http","host":["localhost"],"port":"3333","path":["teacher",":id"],"variable":[{"key":"id","value":""}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"className\": \"Turma IPA\",\r\n  \"teachers\": [\r\n    {\r\n      \"id\": \"1617546212494\",\r\n      \"email\": \"joao@gmail.com\",\r\n      \"speciality\": \"Backend\",\r\n      \"birthdate\": \"15/04/1996\"\r\n    }\r\n  ]\r\n}"}],"_postman_id":"0c02df93-5c32-4cd1-a65f-fdce4f3328cf"},{"name":"Student Age By Id","id":"1ced53a7-cf5e-4918-b525-b6969a0ead49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3333/search/age?id=&&tableName=","description":"<p>Este endpoint retorna a idade de um estudante ou professor.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["search","age"],"host":["localhost"],"query":[{"key":"id","value":""},{"key":null,"value":null},{"key":"tableName","value":""}],"variable":[]}},"response":[{"id":"b704c7ba-f160-449c-92ab-d3ec100004d7","name":"Student Age By Id","originalRequest":{"method":"GET","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:3333/search/age?id=&&tableName=","protocol":"http","host":["localhost"],"port":"3333","path":["search","age"],"query":[{"key":"id","value":""},{"key":null,"value":null},{"key":"tableName","value":""}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"Age\": 24\r\n}"}],"_postman_id":"1ced53a7-cf5e-4918-b525-b6969a0ead49"},{"name":"Create Student","id":"df84551d-7aa4-443c-9b47-5245b10d821c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Daniel\",\r\n    \"email\":\"daniel@gmail.com\",\r\n    \"birthdate\":\"1993-05-19\",\r\n    \"hobbies\": \"Patinar.\"\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":"cd559e6f-10a2-4e72-b8dc-7f3a2931709d","name":"Create Student","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Daniel\",\r\n    \"email\":\"daniel@gmail.com\",\r\n    \"birthdate\":\"1993-05-19\",\r\n    \"hobbies\": \"Patinar.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3333/student/create"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": \"Estudante criado com sucesso!\"\r\n}"}],"_postman_id":"df84551d-7aa4-443c-9b47-5245b10d821c"},{"name":"Create Class","id":"680099e5-11ab-4c9d-81f4-bf2fa6d3f102","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Turma Neil-na-night.\",\r\n    \"start_date\":\"2022-03-01\",\r\n    \"end_date\":\"2022-09-01\",\r\n    \"type_class\": \"Noturna\"\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":"0788b159-40f5-4a68-88ed-daf0f72bbc48","name":"Create Class","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Turma Neil-na-night.\",\r\n    \"start_date\":\"2022-03-01\",\r\n    \"end_date\":\"2022-09-01\",\r\n    \"type_class\": \"Noturna\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3333/class/create"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": \"Turma criada com sucesso.\"\r\n}"}],"_postman_id":"680099e5-11ab-4c9d-81f4-bf2fa6d3f102"},{"name":"Create Teacher","id":"4a9d9d92-75ff-4c50-80b4-2c62fb7d5245","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Caio\",\r\n    \"email\":\"Caio@gmail.com\",\r\n    \"birthdate\":\"1950-04-15\",\r\n    \"speciality\": \"React\"\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":"97574d64-f1f7-43f4-8df3-5dbd328e5321","name":"Create Teacher","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"name\":\"Caio\",\r\n    \"email\":\"Caio@gmail.com\",\r\n    \"birthdate\":\"1950-04-15\",\r\n    \"speciality\": \"React\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3333/teacher/create"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": \"Professor criado com sucesso!\"\r\n}"}],"_postman_id":"4a9d9d92-75ff-4c50-80b4-2c62fb7d5245"},{"name":"Student/teacher In a Class","id":"7556aa27-0589-466d-9d2b-5218982a43e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","type":"text","value":"application/json"}],"body":{"mode":"raw","raw":"{\r\n    \"tableName\": \"Teachers\",\r\n    \"peapleClassId\": \"1617546212494\",\r\n    \"peapleNewClassId\": \"1617547014022\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3333/update/class","description":"<p>Este endpoint coloca um estudante ou professor em alguma turma existente.</p>\n","urlObject":{"protocol":"http","port":"3333","path":["update","class"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"76bbe997-63e7-4d51-8c26-b27e0c7d4023","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    \"tableName\": \"Teachers\",\r\n    \"peapleClassId\": \"1617546212494\",\r\n    \"peapleNewClassId\": \"1617547014022\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3333/students/class"},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": \"The Teachers was insert in class successfully.\"\r\n}"}],"_postman_id":"7556aa27-0589-466d-9d2b-5218982a43e3"},{"name":"Class Module Update","id":"f8f1e3dc-c951-45ca-9c13-3d0cb018a30d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","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:3003/class/change-module?id=&&module=","description":"<p>Este endpoint muda a turma de módulo.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["class","change-module"],"host":["localhost"],"query":[{"key":"id","value":""},{"key":null,"value":null},{"key":"module","value":""}],"variable":[]}},"response":[{"id":"2938ac6f-b941-4c66-a755-51d35ca73c2f","name":"Class Module Update","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":""},"url":{"raw":"http://localhost:3003/class/change-module?id=&&module=","protocol":"http","host":["localhost"],"port":"3003","path":["class","change-module"],"query":[{"key":"id","value":""},{"key":null,"value":null},{"key":"module","value":""}]}},"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\": \"Module updated successfully.\"\n}"}],"_postman_id":"f8f1e3dc-c951-45ca-9c13-3d0cb018a30d"},{"name":"Remove Student","id":"84c60cf0-b999-4c4e-b976-9035ab6d8303","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3003/student/remove/:id","description":"<p>Este endpoint remove um estudante de todo o banco de dados.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["student","remove",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"aa7a01d9-b92c-4415-a603-c92350b9d6fd","name":"Remove Student","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:3003/student/remove/:id","protocol":"http","host":["localhost"],"port":"3003","path":["student","remove",":id"],"variable":[{"key":"id","value":""}]}},"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\": \"Student removed successfully.\"\n}"}],"_postman_id":"84c60cf0-b999-4c4e-b976-9035ab6d8303"},{"name":"Remove Student From Class","id":"d060ba7d-78d3-4644-be81-172d11194220","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3003/student/remove-class/:id","description":"<p>Este endpoint remove um estudante de uma turma.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["student","remove-class",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"9e8f6e0e-c73b-4882-864d-347a1cc1e879","name":"Remove Student From Class","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:3003/student/remove-class/:id","protocol":"http","host":["localhost"],"port":"3003","path":["student","remove-class",":id"],"variable":[{"key":"id","value":""}]}},"_postman_previewlanguage":"Text","header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Student removed successfully.\"\r\n}"}],"_postman_id":"d060ba7d-78d3-4644-be81-172d11194220"},{"name":"Remove Teacher From Class","id":"adaaf244-a4c3-4aa7-99a8-951623246a98","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":"http://localhost:3003/teacher/remove-class/:id","description":"<p>Este endpoint remove um docente de uma turma.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["teacher","remove-class",":id"],"host":["localhost"],"query":[],"variable":[{"id":"2f4a1521-19c3-48a6-9752-082193003a18","type":"any","value":"teacherId","key":"id"}]}},"response":[{"id":"106946af-4199-47ee-a6e7-c20d6e5c8486","name":"Remove Teacher From Class","originalRequest":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json","type":"text"}],"url":{"raw":"http://localhost:3003/teacher/remove-class/:id","protocol":"http","host":["localhost"],"port":"3003","path":["teacher","remove-class",":id"],"variable":[{"key":"id","value":"teacherId"}]}},"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Teacher removed successfully.\"\n}"}],"_postman_id":"adaaf244-a4c3-4aa7-99a8-951623246a98"}]}