{"info":{"_postman_id":"8a288e51-e695-4f2c-9d19-6f450aa9d7d3","name":"SRE Bootcamp - Student RESTful API","description":"<html><head></head><body><h1 id=\"get-started-here\">🚀 Get started here</h1>\n<p>This is the postma collection to test the student API in the first exercise of the SRE bootcamp.</p>\n<p>Have fun exploring what is here!🥂</p>\n<p>NB:</p>\n<p>Kindly modify the <code>base_url</code> under variables if necessary</p>\n<h2 id=\"🔖-available-functionalities\">🔖 Available Functionalities</h2>\n<ul>\n<li>Add a new student.</li>\n<li>Get all students.</li>\n<li>Get a student with an ID.</li>\n<li>Update existing student information.</li>\n<li>Delete a student record</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"🚀 Get started here","slug":"get-started-here"}],"owner":"26444770","collectionId":"8a288e51-e695-4f2c-9d19-6f450aa9d7d3","publishedId":"2sA2xiWrmY","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-03-12T00:29:57.000Z"},"item":[{"name":"Health Check","event":[{"listen":"test","script":{"id":"c74b94b3-845b-4bee-96f2-c1e4b66eb982","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"840c2800-7400-4b3d-8c98-dd6b7c6fa325","request":{"method":"GET","header":[],"url":"localhost:8080/api/v1/health","description":"<p>This is a GET request and it is used to \"get\" data from an endpoint. There is no request body for a GET request, but you can use query parameters to help specify the resource you want data on (e.g., in this request, we have <code>id=1</code>).</p>\n<p>A successful GET response will have a <code>200 OK</code> status, and should include some kind of response body - for example, HTML web content or JSON data.</p>\n","urlObject":{"path":["health"],"host":["localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[{"id":"a241ad37-db07-4ac5-9bfd-80158fddb2a6","name":"Health Check","originalRequest":{"method":"GET","header":[],"url":"localhost:8080/api/v1/health"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 11 Mar 2024 23:36:17 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Student service is up!\"\n}"}],"_postman_id":"840c2800-7400-4b3d-8c98-dd6b7c6fa325"},{"name":"Get All Students","event":[{"listen":"test","script":{"id":"c74b94b3-845b-4bee-96f2-c1e4b66eb982","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript"}}],"id":"33110962-8713-4819-8ae6-0c24ee62737c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8080/api/v1/students","description":"<p>This is a GET request and it is used to \"get\" data from an endpoint. There is no request body for a GET request, but you can use query parameters to help specify the resource you want data on (e.g., in this request, we have <code>id=1</code>).</p>\n<p>A successful GET response will have a <code>200 OK</code> status, and should include some kind of response body - for example, HTML web content or JSON data.</p>\n","urlObject":{"path":["students"],"host":["localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[{"id":"809cbacb-64ff-4837-a96f-439afff78dc8","name":"Get All Students","originalRequest":{"method":"GET","header":[],"url":"localhost:8080/api/v1/students"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 11 Mar 2024 23:36:04 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Students retrieved successfully\",\n    \"data\": [\n        {\n            \"id\": 2,\n            \"firstName\": \"Kofi\",\n            \"lastName\": \"Mensa\",\n            \"dateOfBirth\": \"1990-05-05T00:00:00\"\n        },\n        {\n            \"id\": 3,\n            \"firstName\": \"Kofi\",\n            \"lastName\": \"Markin\",\n            \"dateOfBirth\": \"1990-05-05T00:00:00\"\n        }\n    ]\n}"}],"_postman_id":"33110962-8713-4819-8ae6-0c24ee62737c"},{"name":"Add New Student","event":[{"listen":"test","script":{"id":"955b237d-d81c-40dd-bf8c-039b3be35355","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript"}}],"id":"147532ca-465e-4ed3-8b14-dd9610902997","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Kofi\",\n    \"lastName\": \"Markin\",\n    \"dateOfBirth\": \"1990-05-05\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/v1/students","description":"<p>This is a POST request, submitting data to an API via the request body. This request submits JSON data, and the data is reflected in the response.</p>\n<p>A successful POST request typically returns a <code>200 OK</code> or <code>201 Created</code> response code.</p>\n","urlObject":{"path":["students"],"host":["localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[{"id":"5caecb3c-5cd1-4f08-94c4-b3761e6f55da","name":"Add New Student","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Kofi\",\n    \"lastName\": \"Markin\",\n    \"dateOfBirth\": \"1990-05-05\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/v1/students"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 11 Mar 2024 23:35:43 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Student added successfully\",\n    \"data\": {\n        \"id\": 3,\n        \"firstName\": \"Kofi\",\n        \"lastName\": \"Markin\",\n        \"dateOfBirth\": \"1990-05-05T00:00:00\"\n    }\n}"}],"_postman_id":"147532ca-465e-4ed3-8b14-dd9610902997"},{"name":"Update Student Info","event":[{"listen":"test","script":{"id":"590bb521-c743-412b-a55e-f4fce8b98777","exec":["pm.test(\"Successful PUT request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201, 204]);","});",""],"type":"text/javascript"}}],"id":"b0cc86d0-d6b9-4b34-9265-be3c12d6462c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Kofi\",\n    \"lastName\": \"Mensa\",\n    \"dateOfBirth\": \"1990-05-05\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/v1/students/2","description":"<p>This is a PUT request and it is used to overwrite an existing piece of data. For instance, after you create an entity with a POST request, you may want to modify that later. You can do that using a PUT request. You typically identify the entity being updated by including an identifier in the URL (eg. <code>id=1</code>).</p>\n<p>A successful PUT request typically returns a <code>200 OK</code>, <code>201 Created</code>, or <code>204 No Content</code> response code.</p>\n","urlObject":{"path":["students","2"],"host":["localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[{"id":"3d5d3f23-c580-421f-be45-8d5ad39b2d5c","name":"Update Student","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"Kofi\",\n    \"lastName\": \"Mensa\",\n    \"dateOfBirth\": \"1990-05-05\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/v1/students/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 11 Mar 2024 23:35:27 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Student information updated\",\n    \"data\": {\n        \"id\": 2,\n        \"firstName\": \"Kofi\",\n        \"lastName\": \"Mensa\",\n        \"dateOfBirth\": \"1990-05-05T00:00:00\"\n    }\n}"}],"_postman_id":"b0cc86d0-d6b9-4b34-9265-be3c12d6462c"},{"name":"Delete Student","event":[{"listen":"test","script":{"id":"13422a2f-ffab-4b18-911c-2670b17d05d6","exec":["pm.test(\"Successful DELETE request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 202, 204]);","});",""],"type":"text/javascript"}}],"id":"d10f2b86-24e8-47f7-94d2-23b05fab6e40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/v1/students/1","description":"<p>This is a DELETE request, and it is used to delete data that was previously created via a POST request. You typically identify the entity being updated by including an identifier in the URL (eg. <code>id=1</code>).</p>\n<p>A successful DELETE request typically returns a <code>200 OK</code>, <code>202 Accepted</code>, or <code>204 No Content</code> response code.</p>\n","urlObject":{"path":["students","1"],"host":["localhost:8080/api/v1"],"query":[],"variable":[]}},"response":[{"id":"e960dc4f-1b15-4283-9308-fd884026bf38","name":"Delete Student","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"localhost:8080/api/v1/students/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Mon, 11 Mar 2024 23:35:03 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Student deleted successfully\"\n}"}],"_postman_id":"d10f2b86-24e8-47f7-94d2-23b05fab6e40"}],"event":[{"listen":"prerequest","script":{"id":"bbb28168-d87d-4564-b8ca-a50b14a34458","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"f5a8b5d5-feec-4251-89f6-c1d167ccdb1f","type":"text/javascript","exec":[""]}}],"variable":[{"key":"id","value":"1"},{"key":"base_url","value":"localhost:8080/api/v1"}]}