{"info":{"_postman_id":"71d14704-2504-4c8d-8bda-ce1c5979cabf","name":"LEGO price alert api v1","description":"<html><head></head><body><p>Documentation for basic requests of lego price alert API</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"32605188","collectionId":"71d14704-2504-4c8d-8bda-ce1c5979cabf","publishedId":"2sA2r3amLE","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-02-12T18:22:44.000Z"},"item":[{"name":"get price by id","event":[{"listen":"test","script":{"id":"1921828d-c701-4f86-ab0c-70c8d7c40f93","exec":[""],"type":"text/javascript"}}],"id":"dd2436de-1718-49ed-9736-0b7ce52977df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/v1/legoset/price/:id","description":"<p>This endpoint retrieves the price of a lego set with the specified ID.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li><code>id</code> (path parameter): The ID of the lego set for which the price is to be retrieved.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful request, the server responds with a status code of 200 and a JSON object containing the <code>id</code> of the lego set and its corresponding <code>price</code>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": \"\",\n    \"price\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["v1","legoset","price",":id"],"host":["http://localhost:8080"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"dd2436de-1718-49ed-9736-0b7ce52977df"},{"name":"get name by id","id":"f54b9e9f-25a4-469e-aa94-ef7c15e53fb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/v1/legoset/name/:id","description":"<p>This endpoint retrieves the name of a lego set with the specified ID.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li><code>id</code> (path parameter): The ID of the lego set for which the price is to be retrieved.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful request, the server responds with a status code of 200 and a JSON object containing the <code>id</code> of the lego set and its corresponding <code>name</code>.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": \"\",\n    \"name\": \"\"\n}\n\n</code></pre>\n","urlObject":{"path":["v1","legoset","name",":id"],"host":["http://localhost:8080"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"f54b9e9f-25a4-469e-aa94-ef7c15e53fb2"},{"name":"patch price by id","id":"33b58a55-767a-4ce7-9406-266c8497468b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/v1/legoset/price/:id","description":"<p>This endpoint allows you to update the price of a specific LEGO set identified by its ID.</p>\n<h3 id=\"request-parameters\">Request Parameters</h3>\n<ul>\n<li><code>id</code> (path parameter): The ID of the lego set for which the price is to be retrieved.</li>\n</ul>\n<h3 id=\"request\">Request</h3>\n<ul>\n<li>Body:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"price\": 0\n}\n\n</code></pre>\n<h3 id=\"response\">Response</h3>\n<p>Upon a successful update, the endpoint will return a status code of 200 and a JSON response with the updated LEGO set ID and the new price.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"id\": \"\",\n    \"price\": 0\n}\n\n</code></pre>\n","urlObject":{"path":["v1","legoset","price",":id"],"host":["http://localhost:8080"],"query":[],"variable":[{"type":"any","value":"1","key":"id"}]}},"response":[],"_postman_id":"33b58a55-767a-4ce7-9406-266c8497468b"}],"event":[{"listen":"prerequest","script":{"id":"12eafbf2-2f02-4b0e-a8f4-72a1b42b6f75","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"e444d41a-fd65-41d5-b299-6b8fbaeb814c","type":"text/javascript","exec":[""]}}],"variable":[{"key":"local_test","value":"http://localhost:8080"},{"key":"id","value":"1"},{"key":"price","value":"29.99","disabled":true}]}