{"info":{"_postman_id":"79628f0f-5f96-4342-bd20-69400b41feca","name":"Beer Review Server Requests","description":"<html><head></head><body><h1 id=\"get-started-here\">🚀 Get started here</h1>\n<p>This collection guides you through CRUD operations (GET, POST, PUT, DELETE), variables, and tests.</p>\n<h2 id=\"🔖-how-to-use-this-collection\">🔖 <strong>How to use this collection</strong></h2>\n<h4 id=\"step-1-send-requests\"><strong>Step 1: Send requests</strong></h4>\n<p>RESTful APIs allow you to perform CRUD operations using the POST, GET, PUT, and DELETE HTTP methods.</p>\n<p>This collection contains each of these request types. Open each request and click \"Send\" to see what happens.</p>\n<h4 id=\"step-2-view-responses\"><strong>Step 2: View responses</strong></h4>\n<p>Observe the response tab for status code (200 OK), response time, and size.</p>\n<h4 id=\"step-3-send-new-body-data\"><strong>Step 3: Send new Body data</strong></h4>\n<p>Update or add new data in \"Body\" in the POST request. Typically, Body data is also used in PUT and PATCH requests.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>{\n    \"name\": \"Add your name in the body\"\n}\n\n</code></pre><h4 id=\"step-4-update-the-variable\"><strong>Step 4: Update the variable</strong></h4>\n<p>Variables enable you to store and reuse values in Postman. We have created a variable called <code>base_url</code> with the sample request <a href=\"https://postman-api-learner.glitch.me\">https://postman-api-learner.glitch.me</a>. Replace it with your API endpoint to customize this collection.</p>\n<h4 id=\"step-5-add-tests-in-the-tests-tab\"><strong>Step 5: Add tests in the \"Tests\" tab</strong></h4>\n<p>Tests help you confirm that your API is working as expected. You can write test scripts in JavaScript and view the output in the \"Test Results\" tab.</p>\n<img src=\"https://content.pstmn.io/b5f280a7-4b09-48ec-857f-0a7ed99d7ef8/U2NyZWVuc2hvdCAyMDIzLTAzLTI3IGF0IDkuNDcuMjggUE0ucG5n\">\n\n<h2 id=\"💪-pro-tips\">💪 Pro tips</h2>\n<ul>\n<li>Use folders to group related requests and organize the collection.</li>\n<li>Add more scripts in \"Tests\" to verify if the API works as expected and execute flows.</li>\n</ul>\n<h2 id=\"ℹ️-resources\">ℹ️ Resources</h2>\n<p><a href=\"https://learning.postman.com/docs/sending-requests/requests/\">Building requests</a><br><a href=\"https://learning.postman.com/docs/sending-requests/authorization/\">Authorizing requests</a><br><a href=\"https://learning.postman.com/docs/sending-requests/variables/\">Using variables</a><br><a href=\"https://learning.postman.com/docs/sending-requests/managing-environments/\">Managing environments</a><br><a href=\"https://learning.postman.com/docs/writing-scripts/intro-to-scripts/\">Writing scripts</a></p>\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":"33936806","collectionId":"79628f0f-5f96-4342-bd20-69400b41feca","publishedId":"2sAYk7SPWZ","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2025-03-11T03:25:12.000Z"},"item":[{"name":"Post","item":[{"name":"All posts","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"id":"ebeafe83-6f40-403b-ad72-18360135be66"}}],"id":"dff0caa7-4b7e-4ac1-830c-9a820204465f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/trips","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":{"protocol":"http","port":"8000","path":["trips"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dff0caa7-4b7e-4ac1-830c-9a820204465f"},{"name":"Single post","event":[{"listen":"test","script":{"id":"d31e10f2-366f-4bc1-b88e-b78653cb3869","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"8a2765aa-0595-47ef-9570-51f06a1f2048","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/posts/22","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":{"protocol":"http","port":"8000","path":["posts","22"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8a2765aa-0595-47ef-9570-51f06a1f2048"},{"name":"Post","event":[{"listen":"test","script":{"id":"a03f3abf-d580-40c6-9d91-f0087ee57558","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"05f51885-7df5-44ea-9427-bdee687fd33a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"beername\": \"Beer\",\n\t\"brewery\": \"Beerplace\",\n    \"review\": \"p good\",\n    \"rating\": 5,\n    \"beer_type\": 1,\n\t\"user\": 1,\n    \"tags\": \"1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/posts","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":{"protocol":"http","port":"8000","path":["posts"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"05f51885-7df5-44ea-9427-bdee687fd33a"},{"name":"Post","event":[{"listen":"test","script":{"id":"1354d193-e623-4cc8-877d-26cde6844d07","exec":["pm.test(\"Successful PUT request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201, 204]);","});",""],"type":"text/javascript","packages":{}}}],"id":"90e7c8ac-d719-4841-93d0-5edbdbed3be2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"beername\": \"Beer\",\n\t\"brewery\": \"Beerplace\",\n    \"review\": \"p good\",\n    \"rating\": 4,\n    \"beer_type\": 1,\n    \"tags\": [1,2]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/posts/25","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":{"protocol":"http","port":"8000","path":["posts","25"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"90e7c8ac-d719-4841-93d0-5edbdbed3be2"},{"name":"Post","event":[{"listen":"test","script":{"id":"ea712a87-3bff-4cca-915e-b11d18cacdc7","exec":["pm.test(\"Successful DELETE request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 202, 204]);","});",""],"type":"text/javascript","packages":{}}}],"id":"43ff35d0-d8ac-4a8f-8fdc-24983c9d5a4e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/posts/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":{"protocol":"http","port":"8000","path":["posts","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"43ff35d0-d8ac-4a8f-8fdc-24983c9d5a4e"}],"id":"7ea17a96-b6b4-43bc-be25-22075ffb2ccf","_postman_id":"7ea17a96-b6b4-43bc-be25-22075ffb2ccf","description":""},{"name":"Tag","item":[{"name":"All tags","event":[{"listen":"test","script":{"id":"c989e38d-6001-49d7-95b7-ba277a9e05e3","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"75279101-6ba3-4b45-ab2b-c8b52c17401e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/tags","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":{"protocol":"http","port":"8000","path":["tags"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"75279101-6ba3-4b45-ab2b-c8b52c17401e"},{"name":"SingleTag","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"id":"396c37f6-7451-4e7e-b5d7-a0e5cdc201ff"}}],"id":"6d6050e1-05c2-4798-8320-762a498b0f29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/locations/","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":{"protocol":"http","port":"8000","path":["locations",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6d6050e1-05c2-4798-8320-762a498b0f29"},{"name":"tags","event":[{"listen":"test","script":{"id":"c44be9cd-ab75-4e38-a481-a6c826091df5","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"5c5f291a-23c0-43a5-9928-a138cfd80a23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Citrusy\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/tags","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":{"protocol":"http","port":"8000","path":["tags"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5c5f291a-23c0-43a5-9928-a138cfd80a23"},{"name":"tag","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful PUT request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201, 204]);","});",""],"type":"text/javascript","packages":{},"id":"62f140f5-4405-4db4-95db-2c87338c1214"}}],"id":"10b4c060-f09d-4704-951d-e6a2c202006a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"place_name\": \"Paris\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/locations/5","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":{"protocol":"http","port":"8000","path":["locations","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"10b4c060-f09d-4704-951d-e6a2c202006a"},{"name":"tag","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful DELETE request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 202, 204]);","});",""],"type":"text/javascript","packages":{},"id":"65e6ca24-f113-4bb4-b8d1-e29c8d2f7aeb"}}],"id":"82c432d3-dc23-4908-9654-7b181d030417","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/locations/5","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":{"protocol":"http","port":"8000","path":["locations","5"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"82c432d3-dc23-4908-9654-7b181d030417"}],"id":"d2e644cb-97d2-4f9e-bf11-5fef29318e07","_postman_id":"d2e644cb-97d2-4f9e-bf11-5fef29318e07","description":""},{"name":"User","item":[{"name":"All Users","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"id":"bc9cfa1a-b9df-4739-97ed-3298164bdbe0"}}],"id":"1ebd9a85-e65a-499e-8b6f-674df74bc92f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/users","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":{"protocol":"http","port":"8000","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1ebd9a85-e65a-499e-8b6f-674df74bc92f"},{"name":"Single User","event":[{"listen":"test","script":{"exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{},"id":"5f3fd40a-9e11-48f6-b703-f97944c9cb02"}}],"id":"91bebbfa-5bea-46c0-9eb3-0b021f6fccc0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/users/whatevs","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":{"protocol":"http","port":"8000","path":["users","whatevs"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"91bebbfa-5bea-46c0-9eb3-0b021f6fccc0"},{"name":"User","event":[{"listen":"test","script":{"id":"7aec2d6a-5a55-4b3a-a921-ed969a1d28a8","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"e2e1ee73-28d0-4ad5-ac3c-4c912f1774de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"username\": \"Dusty\",\n    \"uid\": \"whatevs\",\n    \"bio\": \"dustybuns 4 life\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/users","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":{"protocol":"http","port":"8000","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2e1ee73-28d0-4ad5-ac3c-4c912f1774de"},{"name":"User","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful DELETE request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 202, 204]);","});",""],"type":"text/javascript","packages":{},"id":"fa4cc5e5-90b3-49c0-ac27-f87ae76ff638"}}],"id":"773883a0-e087-4967-8652-ec4f4f2a6707","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/users/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":{"protocol":"http","port":"8000","path":["users","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"773883a0-e087-4967-8652-ec4f4f2a6707"},{"name":"User","event":[{"listen":"test","script":{"exec":["pm.test(\"Successful PUT request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201, 204]);","});",""],"type":"text/javascript","packages":{},"id":"dee61626-7984-43a9-87c6-a386f412c22c"}}],"id":"d2b20a81-f6d5-47c7-b854-c6897dd4dfce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Dusty\",\n    \"uid\": \"whatevs\",\n    \"bio\": \"Dustybuns 4 life\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/users/","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":{"protocol":"http","port":"8000","path":["users",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2b20a81-f6d5-47c7-b854-c6897dd4dfce"}],"id":"04dd30a5-cd8e-4f8e-8c0e-185110297470","_postman_id":"04dd30a5-cd8e-4f8e-8c0e-185110297470","description":""},{"name":"Beertype","item":[{"name":"All Beertypes","event":[{"listen":"test","script":{"id":"9ca870a5-520b-429b-bd9a-91fdcf1b2aae","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"34d7257a-4099-4b2d-98f7-84eaea144646","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/beertypes","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":{"protocol":"http","port":"8000","path":["beertypes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"34d7257a-4099-4b2d-98f7-84eaea144646"},{"name":"Single Beer Type","event":[{"listen":"test","script":{"id":"a6e12d47-491f-4b22-a1e5-a9e2e0d9c336","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});"],"type":"text/javascript","packages":{}}}],"id":"109dc789-7c30-407a-ad2d-6e3891ce7888","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/beertypes/1","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":{"protocol":"http","port":"8000","path":["beertypes","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"109dc789-7c30-407a-ad2d-6e3891ce7888"},{"name":"Beer types","event":[{"listen":"test","script":{"id":"01776c46-66f3-4951-baa1-755963d922ec","exec":["pm.test(\"Successful POST request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201]);","});",""],"type":"text/javascript","packages":{}}}],"id":"ea310698-36a1-4dfe-83e4-44ea4b50bc3a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"IPA\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/beertypes","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":{"protocol":"http","port":"8000","path":["beertypes"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea310698-36a1-4dfe-83e4-44ea4b50bc3a"},{"name":"Beertypes","event":[{"listen":"test","script":{"id":"927b49f0-c601-467b-95f6-e024cf48a45a","exec":["pm.test(\"Successful PUT request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 201, 204]);","});",""],"type":"text/javascript","packages":{}}}],"id":"573ba115-24dc-40aa-9f82-386fdec37c44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n\t\"place_name\": \"Paris\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/beertypes/1","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":{"protocol":"http","port":"8000","path":["beertypes","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"573ba115-24dc-40aa-9f82-386fdec37c44"},{"name":"Beertypes","event":[{"listen":"test","script":{"id":"61ac5ff7-8bbb-40f4-aba4-e75afa87a469","exec":["pm.test(\"Successful DELETE request\", function () {","    pm.expect(pm.response.code).to.be.oneOf([200, 202, 204]);","});",""],"type":"text/javascript","packages":{}}}],"id":"4de8695b-a86b-4211-ac63-e91b024ffe97","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/beertypes/","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":{"protocol":"http","port":"8000","path":["beertypes",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"4de8695b-a86b-4211-ac63-e91b024ffe97"}],"id":"47beeb8b-f594-4ca6-bf00-e7d9f8b15ff5","_postman_id":"47beeb8b-f594-4ca6-bf00-e7d9f8b15ff5","description":""},{"name":"PostTag","item":[{"name":"Posttags","id":"d9ad2003-47ce-42b6-9308-262f106424b9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8000/posttags","urlObject":{"protocol":"http","port":"8000","path":["posttags"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d9ad2003-47ce-42b6-9308-262f106424b9"},{"name":"Posttags","id":"22f528cd-1b8e-4332-b567-5ed0652383c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"post\": 1,\r\n    \"tag\": 2\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8000/posttags/","urlObject":{"protocol":"http","port":"8000","path":["posttags",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"22f528cd-1b8e-4332-b567-5ed0652383c5"},{"name":"Posttags","id":"eaa58abf-da25-4ebe-af98-d2821a40e93b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8000/posttags/","urlObject":{"protocol":"http","port":"8000","path":["posttags",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"eaa58abf-da25-4ebe-af98-d2821a40e93b"}],"id":"29e57753-2c69-4833-95ab-bc4f49687ba5","_postman_id":"29e57753-2c69-4833-95ab-bc4f49687ba5","description":""}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"1ed622c3-221b-4c3c-8d1d-7b6911c7e3f9"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"9abdcd39-651a-450a-a840-47f1202560c7"}}],"variable":[{"key":"id","value":"1"},{"key":"base_url","value":"https://postman-rest-api-learner.glitch.me/"}]}