{"info":{"_postman_id":"edd45c75-8a21-4464-9683-00ee1e21a280","name":"Labenu-System","description":"<html><head></head><body><p>Essa API trata de uma aplicação Backend, desenvolvida para fazer uma representação básica da organização Labenu.</p>\n<p>É possível com as APIs criadas, fazer cadastro de alunos e docentes, criar turmas, alterar alunos e professores entre turmas, visualizar array de docentes e buscar dados de alunos por nome.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"22348177","collectionId":"edd45c75-8a21-4464-9683-00ee1e21a280","publishedId":"2s9XxtyFR2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-07-31T05:30:10.000Z"},"item":[{"name":"Create Class","id":"252a0944-b060-4fa2-9656-0100e77ee7af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": 8,\r\n    \"nome\": \"Einstein\",\r\n    \"data_inicio\": \"2020-09-01\",\r\n    \"data_fim\": \"2021-09-01\",\r\n    \"modulo\": 8,\r\n    \"tipo\": \"noturno\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/class","description":"<p>API responsável pela criação de turmas. No corpo da requisição deve ser passado o id, nome, data_inicio, data_fim, modulo e tipo.</p>\n","urlObject":{"protocol":"https","path":["class"],"host":["labenu-system-backend-ofz0f7s54-rafix923","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"4e19043a-8925-4e73-b080-79045b3bde5e","name":"Create Class","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": 8,\r\n    \"nome\": \"Einstein\",\r\n    \"data_inicio\": \"2020-09-01\",\r\n    \"data_fim\": \"2021-09-01\",\r\n    \"modulo\": 8,\r\n    \"tipo\": \"noturno\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/class"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"57"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 29 Jul 2023 22:25:47 GMT"},{"key":"Etag","value":"W/\"39-IYe4dW8MR/1/dR3ouuDRDSs3QL4\""},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"gru1::iad1::2g2zr-1690669547126-6e0fc9234dd5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Turma Einstein-na-night criada com sucesso!\"\n}"}],"_postman_id":"252a0944-b060-4fa2-9656-0100e77ee7af"},{"name":"Create Student","id":"4bc9e10c-c9de-491f-94c5-f6c9b549dcb8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": 9,\r\n    \"nome\": \"Paloma\",\r\n    \"email\": \"paloma@exemplo.com\",\r\n    \"data_nasc\": \"1980-11-30\",\r\n    \"hobbies\": [\r\n        \"Cantar\",\r\n        \"dançar\"\r\n    ],\r\n    \"turma_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/student","description":"<p>API responsável pelo cadastro do aluno no sistema da organização.</p>\n<p>No corpo da requisição deve ser passado o id, nome, email, data_nasc, hobbies e turma_id.</p>\n","urlObject":{"protocol":"https","path":["student"],"host":["labenu-system-backend-ofz0f7s54-rafix923","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"7f8183ca-d260-47b8-8209-cdbe204b107b","name":"Create Student","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\": 9,\r\n    \"nome\": \"Paloma\",\r\n    \"email\": \"paloma@exemplo.com\",\r\n    \"data_nasc\": \"1980-11-30\",\r\n    \"hobbies\": [\r\n        \"Cantar\",\r\n        \"dançar\"\r\n    ],\r\n    \"turma_id\": 2\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/student"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"47"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 29 Jul 2023 22:29:39 GMT"},{"key":"Etag","value":"W/\"2f-Qx/JxVdoM6pfkM/29EaEr84u3TM\""},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"gru1::iad1::n2pfv-1690669779355-858a46a38c43"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Estudante foi criado com sucesso!\"\n}"}],"_postman_id":"4bc9e10c-c9de-491f-94c5-f6c9b549dcb8"},{"name":"Create Teacher","id":"0036c08f-28a0-4460-b105-b81a9b677521","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\":5,\r\n    \"nome\":\"Bob\",\r\n    \"email\": \"Bob@exemplo.com\",\r\n    \"data_nasc\":\"1982-06-20\",\r\n    \"especialidades\":[\"REACT\", \"CSS\", \"POO\"], \r\n    \"turma_id\":3  \r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/teacher","description":"<p>API responsável pelo cadastro de professores no sistema da organização.</p>\n<p>No corpo da requisição deve ser passado o id, nome, email, data_nasc, especialidades e turma_id.</p>\n","urlObject":{"protocol":"https","path":["teacher"],"host":["labenu-system-backend-ofz0f7s54-rafix923","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"442769e4-fe21-4487-8d46-d881f97b8dd0","name":"Create Teacher","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id\":5,\r\n    \"nome\":\"Bob\",\r\n    \"email\": \"Bob@exemplo.com\",\r\n    \"data_nasc\":\"1982-06-20\",\r\n    \"especialidades\":[\"REACT\", \"CSS\", \"POO\"], \r\n    \"turma_id\":3  \r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/teacher"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"46"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 29 Jul 2023 22:32:30 GMT"},{"key":"Etag","value":"W/\"2e-GT7XtJ40CosGD0TO/tvws+owPk8\""},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"gru1::iad1::4lbdp-1690669950208-46276a2daf78"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Docente Bob, criado com sucesso!\"\n}"}],"_postman_id":"0036c08f-28a0-4460-b105-b81a9b677521"},{"name":"Move Teacher To a Different Class","id":"5fe22502-40e5-4dbd-a2a8-b3e10d94bd05","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"docente_id\":1,\r\n    \"turma_id\":4\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/teacher/update","description":"<p>API responsável por mudar professor de turma passando o id do docente e o id da turma na requisição.</p>\n","urlObject":{"protocol":"https","path":["teacher","update"],"host":["labenu-system-backend-ofz0f7s54-rafix923","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"dd214b8f-b1c0-4c6a-a012-db43a8fc1f54","name":"Move Teacher To a Different Class","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"docente_id\":1,\r\n    \"turma_id\":4\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/teacher/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"61"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 29 Jul 2023 22:33:16 GMT"},{"key":"Etag","value":"W/\"3d-Tzgb5Iqn1WxGSGX2/ZW/oFMzUGY\""},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"gru1::iad1::b6hfn-1690669996095-8e5d3c21f358"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"As informações foram atualizadas com sucesso!\"\n}"}],"_postman_id":"5fe22502-40e5-4dbd-a2a8-b3e10d94bd05"},{"name":"Move Student To a Different Class","id":"a5840c44-cb43-400d-8bce-f5a53fdd4571","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"estudante_id\": 1,\r\n    \"turma_id\": 6\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/student/update","description":"<p>API responsável por mudar estudante de turma passando o id do discente e o id da turma na requisição.</p>\n","urlObject":{"protocol":"https","path":["student","update"],"host":["labenu-system-backend-ofz0f7s54-rafix923","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"1db47a16-9b20-4780-a318-d364fd608050","name":"Move Student To a Different Class","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"estudante_id\": 1,\r\n    \"turma_id\": 6\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/student/update"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"61"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 29 Jul 2023 22:35:16 GMT"},{"key":"Etag","value":"W/\"3d-Tzgb5Iqn1WxGSGX2/ZW/oFMzUGY\""},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"gru1::iad1::khwh4-1690670115933-af92ee711ca9"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"As informações foram atualizadas com sucesso!\"\n}"}],"_postman_id":"a5840c44-cb43-400d-8bce-f5a53fdd4571"},{"name":"Get All Teachers","id":"4aaf8efe-33ac-4e96-9360-407a60780045","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/teacher/all","description":"<p>API responsável por requisitar a lista de professores cadastrados na instituição de ensino.</p>\n","urlObject":{"protocol":"https","path":["teacher","all"],"host":["labenu-system-backend-ofz0f7s54-rafix923","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"06d10206-aeb4-404c-bf0c-9b7c40379e52","name":"Response","originalRequest":{"method":"GET","header":[],"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/teacher/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Age","value":"0"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"439"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 29 Jul 2023 22:20:59 GMT"},{"key":"Etag","value":"W/\"1b7-MTbh4ILDhE6atTxIF1vmxLqEdss\""},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"gru1::iad1::b6hfn-1690669258331-19603d755770"}],"cookie":[],"responseTime":null,"body":"{\n    \"docentes\": [\n        {\n            \"id\": 1,\n            \"nome\": \"Junior Prado\",\n            \"email\": \"junior@exemplo.com\",\n            \"data_nasc\": \"1975-02-03T00:00:00.000Z\",\n            \"turma_id\": 3\n        },\n        {\n            \"id\": 2,\n            \"nome\": \"Tatiana\",\n            \"email\": \"taty@exemplo.com\",\n            \"data_nasc\": \"1992-06-20T00:00:00.000Z\",\n            \"turma_id\": 2\n        },\n        {\n            \"id\": 3,\n            \"nome\": \"Fay\",\n            \"email\": \"fay@exemplo.com\",\n            \"data_nasc\": \"1975-02-03T00:00:00.000Z\",\n            \"turma_id\": 3\n        },\n        {\n            \"id\": 4,\n            \"nome\": \"Rafinha\",\n            \"email\": \"rafinha@exemplo.com\",\n            \"data_nasc\": \"1975-02-03T00:00:00.000Z\",\n            \"turma_id\": 3\n        }\n    ]\n}"}],"_postman_id":"4aaf8efe-33ac-4e96-9360-407a60780045"},{"name":"Get Active Classes","id":"372a5677-9086-4ef9-9a3a-7f40b0dd189c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/class/active","description":"<p>API responsável pela busca de turmas que as aulas já estão em andamento.</p>\n<p>As turmas com 'id' igual a zero, não serão mostradas porque as aulas não começaram.</p>\n","urlObject":{"protocol":"https","path":["class","active"],"host":["labenu-system-backend-ofz0f7s54-rafix923","vercel","app"],"query":[],"variable":[]}},"response":[{"id":"327a9b55-1e36-46cb-bf93-f694c87086f1","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/class/active"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Age","value":"0"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"826"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 29 Jul 2023 22:39:57 GMT"},{"key":"Etag","value":"W/\"33a-1fXOH28D5kZSYW1D1hliZTWnV3Q\""},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"gru1::iad1::42fg2-1690670397301-5f98e5b1a8ca"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"nome\": \"Jemison-na-night\",\n        \"data_inicio\": \"2022-04-20T00:00:00.000Z\",\n        \"data_fim\": \"2023-04-20T00:00:00.000Z\",\n        \"modulo\": 6,\n        \"tipo\": \"noturno\"\n    },\n    {\n        \"id\": 2,\n        \"nome\": \"Newton\",\n        \"data_inicio\": \"2019-09-01T00:00:00.000Z\",\n        \"data_fim\": \"2020-09-01T00:00:00.000Z\",\n        \"modulo\": 5,\n        \"tipo\": \"integral\"\n    },\n    {\n        \"id\": 3,\n        \"nome\": \"Lamar\",\n        \"data_inicio\": \"2020-09-01T00:00:00.000Z\",\n        \"data_fim\": \"2021-09-01T00:00:00.000Z\",\n        \"modulo\": 4,\n        \"tipo\": \"integral\"\n    },\n    {\n        \"id\": 5,\n        \"nome\": \"Hawking-na-night\",\n        \"data_inicio\": \"2022-04-20T00:00:00.000Z\",\n        \"data_fim\": \"2023-04-20T00:00:00.000Z\",\n        \"modulo\": 2,\n        \"tipo\": \"noturno\"\n    },\n    {\n        \"id\": 6,\n        \"nome\": \"Barros\",\n        \"data_inicio\": \"2023-03-01T00:00:00.000Z\",\n        \"data_fim\": \"2024-03-01T00:00:00.000Z\",\n        \"modulo\": 9,\n        \"tipo\": \"integral\"\n    },\n    {\n        \"id\": 8,\n        \"nome\": \"Einstein-na-night\",\n        \"data_inicio\": \"2020-09-01T00:00:00.000Z\",\n        \"data_fim\": \"2021-09-01T00:00:00.000Z\",\n        \"modulo\": 1,\n        \"tipo\": \"noturno\"\n    }\n]"}],"_postman_id":"372a5677-9086-4ef9-9a3a-7f40b0dd189c"},{"name":"Get Student By Name","id":"3b684029-0c4b-485d-862d-ac2608e3a71b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/student?nome=Rafael","description":"<p>API responsável por buscar os dados do estudante passando o nome como parâmetro.</p>\n","urlObject":{"protocol":"https","path":["student"],"host":["labenu-system-backend-ofz0f7s54-rafix923","vercel","app"],"query":[{"key":"nome","value":"Rafael"}],"variable":[]}},"response":[{"id":"7bbd319b-be89-47c1-a234-228d541378ab","name":"Get Student By Name","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://labenu-system-backend-ofz0f7s54-rafix923.vercel.app/student?nome=Rafael","protocol":"https","host":["labenu-system-backend-ofz0f7s54-rafix923","vercel","app"],"path":["student"],"query":[{"key":"nome","value":"Rafael"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Age","value":"0"},{"key":"Cache-Control","value":"public, max-age=0, must-revalidate"},{"key":"Connection","value":"keep-alive"},{"key":"Content-Length","value":"107"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Date","value":"Sat, 29 Jul 2023 22:44:03 GMT"},{"key":"Etag","value":"W/\"6b-JXFLck1lZPu+hdtIPQm6J9MT2/4\""},{"key":"Server","value":"Vercel"},{"key":"Strict-Transport-Security","value":"max-age=63072000; includeSubDomains; preload"},{"key":"X-Powered-By","value":"Express"},{"key":"X-Robots-Tag","value":"noindex"},{"key":"X-Vercel-Cache","value":"MISS"},{"key":"X-Vercel-Id","value":"gru1::iad1::9p87f-1690670643318-59f3a7088448"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 1,\n        \"nome\": \"Rafael\",\n        \"email\": \"rafael@exemplo.com\",\n        \"data_nasc\": \"1983-03-25T00:00:00.000Z\",\n        \"turma_id\": 6\n    }\n]"}],"_postman_id":"3b684029-0c4b-485d-862d-ac2608e3a71b"}]}