{"info":{"_postman_id":"f23fb472-cb48-48bb-87bd-b16c37faf318","name":"TodoApiCSharp","description":"<html><head></head><body><p>Cadastro e edição de notas (anotações)</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10265749","collectionId":"f23fb472-cb48-48bb-87bd-b16c37faf318","publishedId":"2sAXxMgtiC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-10-06T18:56:08.000Z"},"item":[{"name":"get todo","id":"4c1e9487-2a62-4b03-a0e1-00bb646cd275","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:80/api/TodoApp/all","description":"<p><strong>Endpoint:</strong> Recupera todos os itens de tarefas do TodoApp.</p>\n<p><strong>Requisição:</strong><br />Não há parâmetros de requisição para este endpoint.</p>\n<p><strong>Resposta:</strong></p>\n<p><strong>Status:</strong> 200<br /><strong>Content-Type:</strong> application/json</p>\n<p>O corpo da resposta conterá um array de itens de tarefas, onde cada item inclui um campo \"Id\" e \"Descrição\".</p>\n","urlObject":{"protocol":"http","port":"80","path":["api","TodoApp","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4c1e9487-2a62-4b03-a0e1-00bb646cd275"},{"name":"todo getbyid","id":"cff3e549-a796-4d33-839a-01bc76f99d40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:80/api/TodoApp/note/9","description":"<h4 id=\"get-apitodoappnote9\"><strong>GET /api/TodoApp/note/9</strong></h4>\n<p>Este endpoint recupera uma nota específica com o ID 9 do TodoApp.</p>\n<h4 id=\"requisição-request\"><strong>Requisição (Request):</strong></h4>\n<p>Nenhum corpo de requisição é necessário para este endpoint.</p>\n<h4 id=\"resposta-response\">Resposta (Response)</h4>\n<ul>\n<li><p>Status: 200 OK</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n</ul>\n<h5 id=\"response-body\">Response Body</h5>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"Id\": 0,\n    \"Description\": \"\"\n}\n\n</code></pre>\n<p>The response returns a JSON object representing the note with its ID and description.</p>\n","urlObject":{"protocol":"http","port":"80","path":["api","TodoApp","note","9"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cff3e549-a796-4d33-839a-01bc76f99d40"},{"name":"post todo","event":[{"listen":"test","script":{"id":"394b91c6-4a04-44d4-b2ff-6977be41f3e5","exec":["pm.test(\"Response status code is 500\", function () {","    pm.expect(pm.response.code).to.equal(500);","});","","","pm.test(\"Response content type is text/plain\", function () {","    pm.expect(pm.response.headers.get(\"Content-Type\")).to.include(\"text/plain\");","});","","","pm.test(\"Response contains the expected error message\", function () {","    const expectedErrorMessage = \"Erro ao adicionar a nota: Cannot insert the value NULL into column 'CreatedAt', table 'master.dbo.Notes'; column does not allow nulls. INSERT fails. The statement has been terminated.\";","    pm.expect(pm.response.text()).to.include(expectedErrorMessage);","});","","","pm.test(\"Response time is less than 200ms\", function () {","  pm.expect(pm.response.responseTime).to.be.below(200);","});",""],"type":"text/javascript","packages":{}}}],"id":"9b44d762-a57d-41a0-90f4-a1c10ebd6904","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n \"description\": \"Estudar para o exame de AWS practitioner\"\n}\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:80/api/TodoApp/AddNote","description":"<p><strong>Adicionar Nota</strong><br />Este endpoint permite que você adicione uma nova nota ao Todo App.</p>\n<p><strong>Corpo da Requisição (Request):</strong><br />description (string, obrigatório): A descrição da nota a ser adicionada.</p>\n<p><strong>Resposta (Response):</strong><br />A resposta está em formato JSON e inclui os seguintes campos:</p>\n<p>message (string): Uma mensagem indicando o resultado da operação.</p>\n<h4 id=\"response-json-schema\">Response JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"message\": {\n            \"type\": \"string\"\n        }\n    }\n}\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"80","path":["api","TodoApp","AddNote"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b44d762-a57d-41a0-90f4-a1c10ebd6904"},{"name":"todo update","id":"6f17fe49-37e4-4ed0-b180-91d1a3ddfb11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n \"description\": \"Estudar para o exame da Azure\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:80/api/TodoApp/7","description":"<h4 id=\"atualizar-item-de-tarefa\"><strong>Atualizar Item de Tarefa</strong></h4>\n<p>Este endpoint é usado para atualizar uma nota específico.</p>\n<h4 id=\"corpo-da-requisição\"><strong>Corpo da Requisição:</strong></h4>\n<p>description (string, obrigatório): A descrição atualizada da nota.</p>\n<h4 id=\"resposta-response\"><strong>Resposta (Response):</strong></h4>\n<p>A resposta para esta solicitação está no formato de um esquema JSON.</p>\n","urlObject":{"protocol":"http","port":"80","path":["api","TodoApp","7"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6f17fe49-37e4-4ed0-b180-91d1a3ddfb11"},{"name":"todo delete","id":"1a61f536-675d-4eea-b210-88d775a998d5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:80/api/TodoApp/9","description":"<p>Este endpoint é usado para excluir um item específico da nota com o ID 9 da API TodoApp.</p>\n<h3 id=\"requisição-request\">Requisição (Request)</h3>\n<ul>\n<li><p>Method: DELETE</p>\n</li>\n<li><p>Endpoint: <code>http://localhost:80/api/TodoApp/9</code></p>\n</li>\n</ul>\n<h3 id=\"resposta-response\">Resposta (Response)</h3>\n<ul>\n<li><p>Status: 200</p>\n</li>\n<li><p>Content-Type: text/xml</p>\n</li>\n<li><p>Body: null</p>\n</li>\n</ul>\n","urlObject":{"protocol":"http","port":"80","path":["api","TodoApp","9"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a61f536-675d-4eea-b210-88d775a998d5"}]}