{"info":{"_postman_id":"69f39747-da60-495b-917a-edeaec3fbf3e","name":"platformatic collection example","description":"<html><head></head><body><p>An Example Platformatic API collection</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"28174803","collectionId":"69f39747-da60-495b-917a-edeaec3fbf3e","publishedId":"2s93zCagN4","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-07-03T19:31:32.000Z"},"item":[{"name":"movies Request","id":"58405dd0-f6b1-4827-a127-722dc148d871","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:3042/movies","description":"<h3 id=\"get-movies\">Get Movies</h3>\n<p>Retrieves a list of popular movies.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Method: GET</li>\n<li>Endpoint: <a href=\"http://127.0.0.1:3042/movies/\">http://127.0.0.1:3042/movies/</a></li>\n<li>Headers:<ul>\n<li>Content-Type: application/json</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status Code: 200 OK</li>\n<li>Body: A JSON array containing a list of popular movies.</li>\n<li>Example Response Body:</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>json[\n  {\n    \"id\": 1,\n    \"title\": \"The Avengers\"\n  },\n  {\n    \"id\": 2,\n    \"title\": \"Pirates of the Caribbean: The Curse of the Black Pearl\"\n  },\n  ...\n]\n\n</code></pre>","urlObject":{"host":["http://127.0.0.1:3042/movies"],"query":[],"variable":[]}},"response":[],"_postman_id":"58405dd0-f6b1-4827-a127-722dc148d871"},{"name":"Add movie","id":"d227e643-55ec-477c-a2d5-584763b45bc2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\"id\":9,\"title\":\"Coming to America\"}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:3042/movies/movies","description":"<h3 id=\"post-movies\">Post Movies</h3>\n<p>Creates a new movie.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Method: POST</li>\n<li>Endpoint: <code>http://127.0.0.1:3042/movies/</code></li>\n<li>Headers:<ul>\n<li>Content-Type: application/json</li>\n</ul>\n</li>\n<li>Body: A JSON object representing the movie to be created.<br />  <code>{ \"id\": 9, \"title\": \"Coming to America\" }</code></li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li>Status Code: 200 Created</li>\n<li>Body: A JSON object representing the newly created movie.</li>\n</ul>\n<p><code>{ \"id\": 9, \"title\": \"Coming to America\" }</code></p>\n<p>Please note that the example request and response bodies are provided as a guide, and you should modify them according to the specific movie details you want to create or receive in the response.</p>\n","urlObject":{"path":["movies"],"host":["http://127.0.0.1:3042/movies"],"query":[],"variable":[]}},"response":[],"_postman_id":"d227e643-55ec-477c-a2d5-584763b45bc2"},{"name":"Delete movie","id":"1557adba-528c-4dfe-a4be-1062d84d2552","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:3042/movies/movies/8","description":"<h3 id=\"delete-movie\">Delete Movie</h3>\n<p>Deletes a movie by its ID.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li>Method: DELETE</li>\n<li>Endpoint: <code>http://127.0.0.1:3042/movies/{movie_id}</code></li>\n<li>Headers:<ul>\n<li>Content-Type: application/json</li>\n</ul>\n</li>\n</ul>\n<p>Please note that you should replace <code>{movie_id}</code> in the endpoint with the actual ID of the movie you want to delete. Ensure that the ID is a valid identifier of an existing movie in the system.</p>\n","urlObject":{"path":["movies","8"],"host":["http://127.0.0.1:3042/movies"],"query":[],"variable":[]}},"response":[],"_postman_id":"1557adba-528c-4dfe-a4be-1062d84d2552"}],"event":[{"listen":"prerequest","script":{"id":"5f4852f3-b79c-4c1d-87b6-3b9647ae5130","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"143e2b9e-1c77-40d2-9baf-add411c2b2a2","type":"text/javascript","exec":[""]}}],"variable":[{"key":"base_url","value":"http://127.0.0.1:3042/movies","type":"string"}]}