{"info":{"_postman_id":"3a969961-4a25-40ec-b3b4-2e553de22476","name":"Star Wars API","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>STAR WARS API is a simple HTTP REST API for getting all star wars movies, getting all characters in a star wars movie and also allowing anonymous comments to movies from all over the web. This is an implementation on the <a href=\"https://swapi.dev\">swapi.dev</a>.</p>\n<h1 id=\"overview\">Overview</h1>\n<p><strong>What can you do with this API:</strong></p>\n<ul>\n<li>Get all star wars movies with their opening crawls and anonymous comment count.</li>\n<li>Get all star wars movie characters by the episode_id<ul>\n<li>This allows you to filter by gender [male, female or other]</li>\n<li>It also allows sorting by [name, height, gender]</li>\n<li>You can also order the sort in  descending/ ascending [desc or asc] order</li>\n</ul>\n</li>\n<li>Post an anonymous comment for a  particular star wars movie by the movie_id.</li>\n<li>Get all comments by their movie_id</li>\n</ul>\n<p><strong>NOTE:</strong> API is still in the beta stage.</p>\n<p><strong>Authentication:</strong></p>\n<p>STAR WARS API is a completely open API. No authentication is required.</p>\n<h1 id=\"endpoints\">Endpoints</h1>\n<p>STAR WARS API has 3 major endpoints:</p>\n<ul>\n<li><p><strong><a href=\"#get-all-star-wars-movie\">GET ALL STAR WARS MOVIE  /api/v1/movies</a>:</strong> - This endpoint returns all star wars movies. It also includes an opening crawl for each movie and the anonymous comment count.</p>\n</li>\n<li><p>COMMENT ROUTE</p>\n<ul>\n<li><p><strong><a href=\"#comment-on-movie\">POST AN ANONYMOUS COMMENT FOR A STAR WARS MOVIE  /api/v1/movies/:episode_id/comment</a>:</strong> - This endpoint allows a user to comment anonymously on any star wars movie in the series, by the episode_id.</p>\n</li>\n<li><p>**[GET ALL ANONYMOUS COMMENT(s) FOR A STAR WARS MOVIE</p>\n</li>\n</ul>\n</li>\n</ul>\n<p> /api/v1/movies/:episode_id/comment](#get-comment-by-movie-episode-id):** - This endpoint returns all comments for a star wars movie. The comment is fetched by the movie's episode_id.</p>\n<ul>\n<li><strong><a href=\"#get-all-characters-by-movie-id\">GET ALL CHARACTERS OF A SPECIFIC STAR WARS MOVIE BY THE MOVIE ID \n /api/v1/movies/:episode_id/characters</a>:</strong> - This endpoint returns all characters in specific star wars movies. The characters are fetched by the movie's episode_id.<ul>\n<li>This endpoint allows filter by gender(male, female, other). <code>/api/v1/movies/:episode_id/characters?gender=male</code></li>\n<li>It also allows sorting by name, height or gender in either ascending or descending order. This is added as a query param to the character route. <code>/api/v1/movies/:episode_id/characters?sort_by=name&amp;order_by=asc</code></li>\n</ul>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Endpoints","slug":"endpoints"}],"owner":"9053858","collectionId":"3a969961-4a25-40ec-b3b4-2e553de22476","publishedId":"UVCCdNoa","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-11-18T02:32:23.000Z"},"item":[{"name":"GET ALL STAR WARS MOVIE /api/v1/movies","id":"820c20f5-15e7-4513-929d-4dc644b5b5e8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://star-war-api.glitch.me/api/v1/movies","description":"<h1 id=\"get-all-star-wars-movie\">GET ALL STAR WARS MOVIE</h1>\n<p>This endpoint returns all star wars movies from <a href=\"https://swapi.dev\">swapi.dev</a>. It also includes an opening crawl for each movie and the anonymous comment count.</p>\n<h2 id=\"response-object\">Response object</h2>\n<ul>\n<li><p><strong><code>status</code></strong> - <code>string</code> - If the request was successful or not. Options: <em>success</em>, <em>fail</em></p>\n</li>\n<li><p><strong><code>message</code></strong> - <code>string</code> - A message specifying if the request was successful or not. <em>movies fetched successfully</em> in case of a successful request and a proper error message for any error encountered.</p>\n</li>\n<li><p><strong><code>data</code></strong> - <code>array</code> - the result of the request</p>\n<ul>\n<li><strong><code>episode_id</code></strong> - <code>number</code> - The id of the movie.</li>\n<li><strong><code>title</code></strong> - <code>string</code> - The title of the movie.</li>\n<li><strong><code>opening_crawl</code></strong> - <code>string</code> - The opening crawl of the movie.</li>\n<li><strong><code>release_date</code></strong> - <code>string</code> - The release date of the movie.</li>\n<li><strong><code>comment_count</code></strong> - <code>string</code> - The number of anonymous comments for the movie.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","movies"],"host":["star-war-api","glitch","me"],"query":[],"variable":[]}},"response":[{"id":"317ce4e2-7800-4475-9f8e-929437a3a981","name":"GET ALL STAR WARS MOVIE","originalRequest":{"method":"GET","header":[],"url":"https://star-war-api.glitch.me/api/v1/movies"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 02:20:31 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3992"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"etag","value":"W/\"f98-0ZW9KQhWWD5G+dq9f7JR0IISZnA\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"movies fetched successfully\",\n    \"data\": [\n        {\n            \"episode_id\": 4,\n            \"title\": \"A New Hope\",\n            \"opening_crawl\": \"It is a period of civil war.\\r\\nRebel spaceships, striking\\r\\nfrom a hidden base, have won\\r\\ntheir first victory against\\r\\nthe evil Galactic Empire.\\r\\n\\r\\nDuring the battle, Rebel\\r\\nspies managed to steal secret\\r\\nplans to the Empire's\\r\\nultimate weapon, the DEATH\\r\\nSTAR, an armored space\\r\\nstation with enough power\\r\\nto destroy an entire planet.\\r\\n\\r\\nPursued by the Empire's\\r\\nsinister agents, Princess\\r\\nLeia races home aboard her\\r\\nstarship, custodian of the\\r\\nstolen plans that can save her\\r\\npeople and restore\\r\\nfreedom to the galaxy....\",\n            \"release_date\": \"1977-05-25\",\n            \"comment_count\": \"4\"\n        },\n        {\n            \"episode_id\": 5,\n            \"title\": \"The Empire Strikes Back\",\n            \"opening_crawl\": \"It is a dark time for the\\r\\nRebellion. Although the Death\\r\\nStar has been destroyed,\\r\\nImperial troops have driven the\\r\\nRebel forces from their hidden\\r\\nbase and pursued them across\\r\\nthe galaxy.\\r\\n\\r\\nEvading the dreaded Imperial\\r\\nStarfleet, a group of freedom\\r\\nfighters led by Luke Skywalker\\r\\nhas established a new secret\\r\\nbase on the remote ice world\\r\\nof Hoth.\\r\\n\\r\\nThe evil lord Darth Vader,\\r\\nobsessed with finding young\\r\\nSkywalker, has dispatched\\r\\nthousands of remote probes into\\r\\nthe far reaches of space....\",\n            \"release_date\": \"1980-05-17\",\n            \"comment_count\": \"0\"\n        },\n        {\n            \"episode_id\": 6,\n            \"title\": \"Return of the Jedi\",\n            \"opening_crawl\": \"Luke Skywalker has returned to\\r\\nhis home planet of Tatooine in\\r\\nan attempt to rescue his\\r\\nfriend Han Solo from the\\r\\nclutches of the vile gangster\\r\\nJabba the Hutt.\\r\\n\\r\\nLittle does Luke know that the\\r\\nGALACTIC EMPIRE has secretly\\r\\nbegun construction on a new\\r\\narmored space station even\\r\\nmore powerful than the first\\r\\ndreaded Death Star.\\r\\n\\r\\nWhen completed, this ultimate\\r\\nweapon will spell certain doom\\r\\nfor the small band of rebels\\r\\nstruggling to restore freedom\\r\\nto the galaxy...\",\n            \"release_date\": \"1983-05-25\",\n            \"comment_count\": \"2\"\n        },\n        {\n            \"episode_id\": 1,\n            \"title\": \"The Phantom Menace\",\n            \"opening_crawl\": \"Turmoil has engulfed the\\r\\nGalactic Republic. The taxation\\r\\nof trade routes to outlying star\\r\\nsystems is in dispute.\\r\\n\\r\\nHoping to resolve the matter\\r\\nwith a blockade of deadly\\r\\nbattleships, the greedy Trade\\r\\nFederation has stopped all\\r\\nshipping to the small planet\\r\\nof Naboo.\\r\\n\\r\\nWhile the Congress of the\\r\\nRepublic endlessly debates\\r\\nthis alarming chain of events,\\r\\nthe Supreme Chancellor has\\r\\nsecretly dispatched two Jedi\\r\\nKnights, the guardians of\\r\\npeace and justice in the\\r\\ngalaxy, to settle the conflict....\",\n            \"release_date\": \"1999-05-19\",\n            \"comment_count\": \"1\"\n        },\n        {\n            \"episode_id\": 2,\n            \"title\": \"Attack of the Clones\",\n            \"opening_crawl\": \"There is unrest in the Galactic\\r\\nSenate. Several thousand solar\\r\\nsystems have declared their\\r\\nintentions to leave the Republic.\\r\\n\\r\\nThis separatist movement,\\r\\nunder the leadership of the\\r\\nmysterious Count Dooku, has\\r\\nmade it difficult for the limited\\r\\nnumber of Jedi Knights to maintain \\r\\npeace and order in the galaxy.\\r\\n\\r\\nSenator Amidala, the former\\r\\nQueen of Naboo, is returning\\r\\nto the Galactic Senate to vote\\r\\non the critical issue of creating\\r\\nan ARMY OF THE REPUBLIC\\r\\nto assist the overwhelmed\\r\\nJedi....\",\n            \"release_date\": \"2002-05-16\",\n            \"comment_count\": \"5\"\n        },\n        {\n            \"episode_id\": 3,\n            \"title\": \"Revenge of the Sith\",\n            \"opening_crawl\": \"War! The Republic is crumbling\\r\\nunder attacks by the ruthless\\r\\nSith Lord, Count Dooku.\\r\\nThere are heroes on both sides.\\r\\nEvil is everywhere.\\r\\n\\r\\nIn a stunning move, the\\r\\nfiendish droid leader, General\\r\\nGrievous, has swept into the\\r\\nRepublic capital and kidnapped\\r\\nChancellor Palpatine, leader of\\r\\nthe Galactic Senate.\\r\\n\\r\\nAs the Separatist Droid Army\\r\\nattempts to flee the besieged\\r\\ncapital with their valuable\\r\\nhostage, two Jedi Knights lead a\\r\\ndesperate mission to rescue the\\r\\ncaptive Chancellor....\",\n            \"release_date\": \"2005-05-19\",\n            \"comment_count\": \"2\"\n        }\n    ]\n}"}],"_postman_id":"820c20f5-15e7-4513-929d-4dc644b5b5e8"},{"name":"COMMENT ON A MOVIE api/v1/movies/:movie_id/comment","id":"091112af-06c2-40e3-a47f-3d60469132dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"comment\": \"Lovely Movie\"\n}","options":{"raw":{"language":"json"}}},"url":"https://star-war-api.glitch.me/api/v1/movies/2/comment","description":"<h1 id=\"comment-on-movie\">COMMENT ON MOVIE</h1>\n<p>This endpoint accepts an anonymous comment for a specific movie.</p>\n<h2 id=\"request-parameter\">Request parameter</h2>\n<ul>\n<li><strong><code>id</code></strong> - <code>number</code> - the episode_id of the movie to comment on.</li>\n</ul>\n<h2 id=\"request-body\">Request body</h2>\n<ul>\n<li><strong><code>comment</code></strong> - <code>string</code> - the comment to be posted, must not be greater than 500 characters</li>\n</ul>\n<h2 id=\"response-object\">Response object</h2>\n<ul>\n<li><p><strong><code>status</code></strong> - <code>string</code> - If the request was successful or not. Options: <em>success</em>, <em>fail</em></p>\n</li>\n<li><p><strong><code>message</code></strong> - <code>string</code> - A message specifying if the request was successful or not. <em>comment created successfully</em> in case of a successful request and a proper error message for any error encountered.</p>\n</li>\n<li><p><strong><code>data</code></strong> - <code>object</code> - The newly created comment.</p>\n<ul>\n<li><strong><code>id </code></strong> - <code>number</code> - The id of the comment.</li>\n<li><strong><code>movie_id </code></strong> - <code>number</code> - The id of the movie.</li>\n<li><strong><code>comment </code></strong> - <code>string</code> - The comment.</li>\n<li><strong><code>user_ip </code></strong> - <code>string</code> - The public IP address of the commenter.</li>\n<li><strong><code>created_at</code></strong> - <code>array</code> - The date the comment was given.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","movies","2","comment"],"host":["star-war-api","glitch","me"],"query":[],"variable":[]}},"response":[{"id":"4912171a-d3ed-4ccb-ae6e-b8c66ac41efc","name":"Correct Request and Response","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"comment\": \"Great movie.\"\n}","options":{"raw":{"language":"json"}}},"url":"https://star-war-api.glitch.me/api/v1/movies/2/comment"},"status":"OK","code":201,"_postman_previewlanguage":"json","header":null,"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"comment created successfully\",\n    \"data\": {\n        \"id\": 2,\n        \"movie_id\": 6,\n        \"comment\": \"great movie.\",\n        \"user_ip\": \"54.86.50.139\",\n        \"created_at\": \"2021-11-18T01:57:07.531Z\",\n        \"updated_at\": \"2021-11-18T01:57:07.531Z\"\n    }\n}"},{"id":"f6587a70-fbaf-4f35-8924-75cc2be15610","name":"Without comment in the body","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"comment\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"https://star-war-api.glitch.me/api/v1/movies/2/comment"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 02:03:23 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"111"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"etag","value":"W/\"6f-cH5H++4TmbOyFYi9S2uIYA6Eqf4\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"errors\": [\n        {\n            \"value\": \"\",\n            \"msg\": \"please input your comment\",\n            \"param\": \"comment\",\n            \"location\": \"body\"\n        }\n    ]\n}"},{"id":"de6ada89-5a8a-409b-8a9a-26c7a94903c8","name":"comment character greater than 500","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"comment\": \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer ipsum eros, ornare quis velit id, posuere fermentum ex. Nulla id elit sed diam pharetra vestibulum. Pellentesque a bibendum felis. Proin finibus vehicula lacinia. Nulla commodo augue id nulla placerat pulvinar. Phasellus imperdiet ullamcorper euismod. Duis in felis sagittis, blandit est ut, lobortis urna. Morbi pharetra pellentesque mi, at luctus purus mattis in. Morbi consequat dignissim lectus, dignissim congue turpis tincidunt eu. Vestibulum tincidunt consectetur magna, quis aliquam quam aliquam ut. Sed eget diam ut eros sollicitudin suscipit sed quis nisl. Curabitur diam risus, fermentum id nibh eu, sagittis convallis nisl. Morbi sit amet laoreet nisl. Sed dapibus mollis libero, nec sodales nibh.\"\n}","options":{"raw":{"language":"json"}}},"url":"https://star-war-api.glitch.me/api/v1/movies/2/comment"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 02:08:35 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"903"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"etag","value":"W/\"387-V5P+ebkSg2qoRFfFedxZ+HgjC0g\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"errors\": [\n        {\n            \"value\": \"lorem ipsum dolor sit amet, consectetur adipiscing elit. integer ipsum eros, ornare quis velit id, posuere fermentum ex. nulla id elit sed diam pharetra vestibulum. pellentesque a bibendum felis. proin finibus vehicula lacinia. nulla commodo augue id nulla placerat pulvinar. phasellus imperdiet ullamcorper euismod. duis in felis sagittis, blandit est ut, lobortis urna. morbi pharetra pellentesque mi, at luctus purus mattis in. morbi consequat dignissim lectus, dignissim congue turpis tincidunt eu. vestibulum tincidunt consectetur magna, quis aliquam quam aliquam ut. sed eget diam ut eros sollicitudin suscipit sed quis nisl. curabitur diam risus, fermentum id nibh eu, sagittis convallis nisl. morbi sit amet laoreet nisl. sed dapibus mollis libero, nec sodales nibh.\",\n            \"msg\": \"comment must be a maximum of 500 characters\",\n            \"param\": \"comment\",\n            \"location\": \"body\"\n        }\n    ]\n}"},{"id":"dec58601-c083-4235-8ab3-4a1a6ee82b13","name":"With Incorrect movie ID","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"comment\": \"Best movie\"\n}","options":{"raw":{"language":"json"}}},"url":"https://star-war-api.glitch.me/api/v1/movies/7/comment"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 02:04:33 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"116"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"etag","value":"W/\"74-hnbQq3HqtxmR7qnKRuRp+QIjImo\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"fail\",\n    \"errors\": [\n        {\n            \"value\": \"7\",\n            \"msg\": \"movie id must be between 1 and 6\",\n            \"param\": \"id\",\n            \"location\": \"params\"\n        }\n    ]\n}"}],"_postman_id":"091112af-06c2-40e3-a47f-3d60469132dc"},{"name":"GET COMMENT BY MOVIE ID  api/v1/movies/:movie_id/comment","id":"eeef53a3-8ddd-43e1-9969-256e66dd0eef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://star-war-api.glitch.me/api/v1/movies/6/comment","description":"<h1 id=\"get-comment-by-movie-episode-id\">GET COMMENT BY MOVIE EPISODE ID</h1>\n<p>This endpoint returns all comments for a specific movie by the movie_id.\nComments are retrieved in reverse chronological order.</p>\n<h2 id=\"request-parameter\">Request parameter</h2>\n<ul>\n<li><strong><code>id</code></strong> - <code>number</code> - the episode_id of the movie to fetch its comments.</li>\n</ul>\n<h2 id=\"response-object\">Response object</h2>\n<ul>\n<li><p><strong><code>status</code></strong> - <code>string</code> - If the request was successful or not. Options: <em>success</em>, <em>fail</em></p>\n</li>\n<li><p><strong><code>message</code></strong> - <code>string</code> - A message specifying if the request was successful or not. <em>comment fetched successfully</em> in case of a successful request and a proper error message for any error encountered.</p>\n</li>\n<li><p><strong><code>data</code></strong> - <code>array</code> - the result of the request.</p>\n<ul>\n<li><strong><code>id </code></strong> - <code>number</code> - The id of the comment.</li>\n<li><strong><code>movie_id </code></strong> - <code>number</code> - The id of the movie.</li>\n<li><strong><code>comment </code></strong> - <code>string</code> - The comment.</li>\n<li><strong><code>user_ip </code></strong> - <code>string</code> - The public IP address of the commenter.</li>\n<li><strong><code>created_at</code></strong> - <code>array</code> - The date the comment was given.</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","movies","6","comment"],"host":["star-war-api","glitch","me"],"query":[],"variable":[]}},"response":[{"id":"9a97f201-6e59-4d8f-9822-b434d0554909","name":"GET COMMENT BY MOVIE ID","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":"https://star-war-api.glitch.me/api/v1/movies/6/comment"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 02:23:00 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"380"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"etag","value":"W/\"17c-f1eevw0sLXe08Nx1oeESYofMsvw\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"comments fetched successfully\",\n    \"data\": [\n        {\n            \"id\": 2,\n            \"movie_id\": 6,\n            \"comment\": \"great movie.\",\n            \"user_ip\": \"54.86.50.139\",\n            \"created_at\": \"2021-11-18T01:57:07.531Z\",\n            \"updated_at\": \"2021-11-18T01:57:07.531Z\"\n        },\n        {\n            \"id\": 1,\n            \"movie_id\": 6,\n            \"comment\": \"i love star wars.\",\n            \"user_ip\": \"54.86.50.139\",\n            \"created_at\": \"2021-11-17T18:00:03.912Z\",\n            \"updated_at\": \"2021-11-17T18:00:03.912Z\"\n        }\n    ]\n}"}],"_postman_id":"eeef53a3-8ddd-43e1-9969-256e66dd0eef"},{"name":"GET CHARACTERS BY MOVIE ID  api/v1/movies/:movie_id/characters","id":"2e3395d8-0943-46da-9908-109cd77f8707","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://star-war-api.glitch.me/api/v1/movies/2/characters","description":"<h1 id=\"get-all-characters-by-movie-id\">GET ALL CHARACTERS BY MOVIE ID</h1>\n<p>This endpoint returns all characters in a specific movie. The characters are fetched by the movie_id.</p>\n<h2 id=\"request-parameter\">Request parameter</h2>\n<ul>\n<li><strong><code>id</code></strong> - <code>number</code> - the episode_id of the movie to fetch its characters.</li>\n</ul>\n<h2 id=\"query-parameter\">Query parameter</h2>\n<ul>\n<li><strong><code>gender</code></strong> - <code>string</code> - Filter characters by gender. Options: <em>male</em>, <em>female</em>, <em>other</em></li>\n<li><strong><code>sort_by</code></strong> - <code>string</code> - Sort characters in a given order. Options: <em>name</em>, <em>height</em>, <em>gender</em>.</li>\n<li><strong><code>order_by</code></strong> - <code>string</code> - Order characters either in ascending or descending order. Options: <em>asc</em>, <em>desc</em>.</li>\n</ul>\n<h2 id=\"response-object\">Response object</h2>\n<ul>\n<li><p><strong><code>status</code></strong> - <code>string</code> - If the request was successful or not. Options: <em>success</em>, <em>fail</em></p>\n</li>\n<li><p><strong><code>message</code></strong> - <code>string</code> - A message specifying if the request was successful or not. <em>characters fetched successfully</em> in case of a successful request and a proper error message for any error encountered.</p>\n</li>\n<li><p><strong><code>data</code></strong> - <code>object</code> - the result of the request.</p>\n<ul>\n<li><p><strong><code>characters</code></strong> - <code>array</code> - Characters matching the id.</p>\n<ul>\n<li><p><strong><code>name</code></strong> - <code>string</code> - The name of the character.</p>\n</li>\n<li><p><strong><code>height</code></strong> - <code>string</code> - The height of the character in cm.</p>\n</li>\n<li><p><strong><code>gender</code></strong> - <code>string</code> - The gender of the character.</p>\n</li>\n</ul>\n</li>\n<li><p><strong><code>meta</code></strong> - <code>object</code> - Metadata from the characters returned.</p>\n<ul>\n<li><p><strong><code>total_no_of_characters</code></strong> - <code>number</code> - Total number of characters matching request.</p>\n</li>\n<li><p><strong><code>total_height</code></strong> - <code>object</code> - Total height of all characters matching request.</p>\n<ul>\n<li><strong><code>cm</code></strong> - <code>string</code> - Total height of all characters matching request in centimetres.</li>\n<li><strong><code>ft_inch</code></strong> - <code>string</code> - Total height of all characters matching request in feet and inches.</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["api","v1","movies","2","characters"],"host":["star-war-api","glitch","me"],"query":[],"variable":[]}},"response":[{"id":"e53b04b4-4e5a-4ea4-851e-0974cfbaf137","name":"WITHOUT QUERY PARAMS","originalRequest":{"method":"GET","header":[],"url":"https://star-war-api.glitch.me/api/v1/movies/1/characters"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 03:04:45 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1006"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"etag","value":"W/\"3ee-dvxwy9IbWpGX0Iypm63vxGNI6MA\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"characters fetched successfully\",\n    \"data\": {\n        \"characters\": [\n            {\n                \"name\": \"Luke Skywalker\",\n                \"height\": \"172\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"C-3PO\",\n                \"height\": \"167\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"R2-D2\",\n                \"height\": \"96\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"Darth Vader\",\n                \"height\": \"202\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Leia Organa\",\n                \"height\": \"150\",\n                \"gender\": \"female\"\n            },\n            {\n                \"name\": \"Owen Lars\",\n                \"height\": \"178\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Beru Whitesun lars\",\n                \"height\": \"165\",\n                \"gender\": \"female\"\n            },\n            {\n                \"name\": \"R5-D4\",\n                \"height\": \"97\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"Biggs Darklighter\",\n                \"height\": \"183\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Obi-Wan Kenobi\",\n                \"height\": \"182\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Wilhuff Tarkin\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Chewbacca\",\n                \"height\": \"228\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Han Solo\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Greedo\",\n                \"height\": \"173\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Jabba Desilijic Tiure\",\n                \"height\": \"175\",\n                \"gender\": \"hermaphrodite\"\n            },\n            {\n                \"name\": \"Wedge Antilles\",\n                \"height\": \"170\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Jek Tono Porkins\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Raymus Antilles\",\n                \"height\": \"188\",\n                \"gender\": \"male\"\n            }\n        ],\n        \"meta\": {\n            \"total_no_of_characters\": 18,\n            \"total_height\": {\n                \"cm\": \"3066cm\",\n                \"ft_inch\": \"100ft 7.09inches\"\n            }\n        }\n    }\n}"},{"id":"5fe1fa56-67d5-47cd-988b-ae1eaf84a633","name":"FILTER BY GENDER","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://star-war-api.glitch.me/api/v1/movies/1/characters?gender=male","protocol":"https","host":["star-war-api","glitch","me"],"path":["api","v1","movies","1","characters"],"query":[{"key":"gender","value":"male"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 03:27:51 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"809"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"etag","value":"W/\"329-BUnBet8wpXMmxZWfI2nMnIV0KTs\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"characters fetched successfully\",\n    \"data\": {\n        \"characters\": [\n            {\n                \"name\": \"Luke Skywalker\",\n                \"height\": \"172\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Darth Vader\",\n                \"height\": \"202\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Owen Lars\",\n                \"height\": \"178\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Biggs Darklighter\",\n                \"height\": \"183\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Obi-Wan Kenobi\",\n                \"height\": \"182\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Wilhuff Tarkin\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Chewbacca\",\n                \"height\": \"228\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Han Solo\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Greedo\",\n                \"height\": \"173\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Wedge Antilles\",\n                \"height\": \"170\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Jek Tono Porkins\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Raymus Antilles\",\n                \"height\": \"188\",\n                \"gender\": \"male\"\n            }\n        ],\n        \"meta\": {\n            \"total_no_of_characters\": 12,\n            \"total_height\": {\n                \"cm\": \"3066cm\",\n                \"ft_inch\": \"100ft 7.09inches\"\n            }\n        }\n    }\n}"},{"id":"1affbddf-dcb7-4a86-9f18-a8ef726eca9e","name":"SORT BY NAME","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://star-war-api.glitch.me/api/v1/movies/1/characters?sort_by=name","protocol":"https","host":["star-war-api","glitch","me"],"path":["api","v1","movies","1","characters"],"query":[{"key":"sort_by","value":"name"},{"key":"order_by","value":"asc","disabled":true},{"key":"gender","value":"male","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 03:29:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1006"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"etag","value":"W/\"3ee-gTae+VhoEADvd/qF8b+K8bG95vc\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"characters fetched successfully\",\n    \"data\": {\n        \"characters\": [\n            {\n                \"name\": \"Wilhuff Tarkin\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Wedge Antilles\",\n                \"height\": \"170\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Raymus Antilles\",\n                \"height\": \"188\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"R5-D4\",\n                \"height\": \"97\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"R2-D2\",\n                \"height\": \"96\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"Owen Lars\",\n                \"height\": \"178\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Obi-Wan Kenobi\",\n                \"height\": \"182\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Luke Skywalker\",\n                \"height\": \"172\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Leia Organa\",\n                \"height\": \"150\",\n                \"gender\": \"female\"\n            },\n            {\n                \"name\": \"Jek Tono Porkins\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Jabba Desilijic Tiure\",\n                \"height\": \"175\",\n                \"gender\": \"hermaphrodite\"\n            },\n            {\n                \"name\": \"Han Solo\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Greedo\",\n                \"height\": \"173\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Darth Vader\",\n                \"height\": \"202\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Chewbacca\",\n                \"height\": \"228\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"C-3PO\",\n                \"height\": \"167\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"Biggs Darklighter\",\n                \"height\": \"183\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Beru Whitesun lars\",\n                \"height\": \"165\",\n                \"gender\": \"female\"\n            }\n        ],\n        \"meta\": {\n            \"total_no_of_characters\": 18,\n            \"total_height\": {\n                \"cm\": \"3066cm\",\n                \"ft_inch\": \"100ft 7.09inches\"\n            }\n        }\n    }\n}"},{"id":"dc9acb45-aded-46cd-b0ae-a16cfbfa9bce","name":"SORT BY NAME AND ORDER IN ASCENDING ORDER","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://star-war-api.glitch.me/api/v1/movies/2/characters?sort_by=name&order_by=asc","protocol":"https","host":["star-war-api","glitch","me"],"path":["api","v1","movies","2","characters"],"query":[{"key":"gender","value":"male","disabled":true},{"key":"sort_by","value":"name"},{"key":"order_by","value":"asc"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 03:30:55 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1006"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"etag","value":"W/\"3ee-L9fktT/qys54tFEBuQsRqCxYJA4\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"characters fetched successfully\",\n    \"data\": {\n        \"characters\": [\n            {\n                \"name\": \"Boba Fett\",\n                \"height\": \"183\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Bossk\",\n                \"height\": \"190\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"C-3PO\",\n                \"height\": \"167\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"Chewbacca\",\n                \"height\": \"228\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Darth Vader\",\n                \"height\": \"202\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Han Solo\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"IG-88\",\n                \"height\": \"200\",\n                \"gender\": \"none\"\n            },\n            {\n                \"name\": \"Lando Calrissian\",\n                \"height\": \"177\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Leia Organa\",\n                \"height\": \"150\",\n                \"gender\": \"female\"\n            },\n            {\n                \"name\": \"Lobot\",\n                \"height\": \"175\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Luke Skywalker\",\n                \"height\": \"172\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Obi-Wan Kenobi\",\n                \"height\": \"182\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Palpatine\",\n                \"height\": \"170\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"R2-D2\",\n                \"height\": \"96\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"Wedge Antilles\",\n                \"height\": \"170\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Yoda\",\n                \"height\": \"66\",\n                \"gender\": \"male\"\n            }\n        ],\n        \"meta\": {\n            \"total_no_of_characters\": 16,\n            \"total_height\": {\n                \"cm\": \"2708cm\",\n                \"ft_inch\": \"88ft 10.14inches\"\n            }\n        }\n    }\n}"},{"id":"b982eb63-2505-4a11-9207-000878c0382f","name":"SORT BY HEIGHT","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://star-war-api.glitch.me/api/v1/movies/2/characters?sort_by=height","protocol":"https","host":["star-war-api","glitch","me"],"path":["api","v1","movies","2","characters"],"query":[{"key":"gender","value":"male","disabled":true},{"key":"sort_by","value":"height"},{"key":"order_by","value":"asc","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 03:33:52 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1006"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"etag","value":"W/\"3ee-aqqh5jsnHUpiXNnDEEeqOc/sQzc\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"characters fetched successfully\",\n    \"data\": {\n        \"characters\": [\n            {\n                \"name\": \"Chewbacca\",\n                \"height\": \"228\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Darth Vader\",\n                \"height\": \"202\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"IG-88\",\n                \"height\": \"200\",\n                \"gender\": \"none\"\n            },\n            {\n                \"name\": \"Bossk\",\n                \"height\": \"190\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Boba Fett\",\n                \"height\": \"183\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Obi-Wan Kenobi\",\n                \"height\": \"182\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Han Solo\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Lando Calrissian\",\n                \"height\": \"177\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Lobot\",\n                \"height\": \"175\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Luke Skywalker\",\n                \"height\": \"172\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Wedge Antilles\",\n                \"height\": \"170\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Palpatine\",\n                \"height\": \"170\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"C-3PO\",\n                \"height\": \"167\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"Leia Organa\",\n                \"height\": \"150\",\n                \"gender\": \"female\"\n            },\n            {\n                \"name\": \"R2-D2\",\n                \"height\": \"96\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"Yoda\",\n                \"height\": \"66\",\n                \"gender\": \"male\"\n            }\n        ],\n        \"meta\": {\n            \"total_no_of_characters\": 16,\n            \"total_height\": {\n                \"cm\": \"2708cm\",\n                \"ft_inch\": \"88ft 10.14inches\"\n            }\n        }\n    }\n}"},{"id":"f0aa462e-9831-4cd0-96bd-9344c65016e7","name":"SORT BY GENDER","originalRequest":{"method":"GET","header":[],"url":{"raw":"https://star-war-api.glitch.me/api/v1/movies/2/characters?sort_by=gender","protocol":"https","host":["star-war-api","glitch","me"],"path":["api","v1","movies","2","characters"],"query":[{"key":"gender","value":"male","disabled":true},{"key":"order_by","value":"asc","type":"text","disabled":true},{"key":"sort_by","value":"gender"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 18 Nov 2021 03:34:53 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1006"},{"key":"Connection","value":"keep-alive"},{"key":"x-powered-by","value":"Express"},{"key":"etag","value":"W/\"3ee-688052OxlFsFwy2dkptugonqLO8\""}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"characters fetched successfully\",\n    \"data\": {\n        \"characters\": [\n            {\n                \"name\": \"IG-88\",\n                \"height\": \"200\",\n                \"gender\": \"none\"\n            },\n            {\n                \"name\": \"C-3PO\",\n                \"height\": \"167\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"R2-D2\",\n                \"height\": \"96\",\n                \"gender\": \"n/a\"\n            },\n            {\n                \"name\": \"Luke Skywalker\",\n                \"height\": \"172\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Darth Vader\",\n                \"height\": \"202\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Obi-Wan Kenobi\",\n                \"height\": \"182\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Chewbacca\",\n                \"height\": \"228\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Han Solo\",\n                \"height\": \"180\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Wedge Antilles\",\n                \"height\": \"170\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Yoda\",\n                \"height\": \"66\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Palpatine\",\n                \"height\": \"170\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Boba Fett\",\n                \"height\": \"183\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Bossk\",\n                \"height\": \"190\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Lando Calrissian\",\n                \"height\": \"177\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Lobot\",\n                \"height\": \"175\",\n                \"gender\": \"male\"\n            },\n            {\n                \"name\": \"Leia Organa\",\n                \"height\": \"150\",\n                \"gender\": \"female\"\n            }\n        ],\n        \"meta\": {\n            \"total_no_of_characters\": 16,\n            \"total_height\": {\n                \"cm\": \"2708cm\",\n                \"ft_inch\": \"88ft 10.14inches\"\n            }\n        }\n    }\n}"}],"_postman_id":"2e3395d8-0943-46da-9908-109cd77f8707"}]}