{"_id":"57bf37fe7dc8ad0e00a0df87","user":"566efeab7ffa002300c3cd06","project":"556cd8aec14029190092d292","category":{"_id":"556cd8afc14029190092d296","pages":["556cd8b0c14029190092d298","55fc80353c21291900e7e0b0","55fc86873c21291900e7e0bd","55fc87be4ee5911900d357a9","55fdacf3b652110d00758b68","55fdae0f51dbf70d00c61bb8","55fdaf4156d6990d00a6cac5","560efa0743ea130d00a3621a","56169ba4a6767c0d00166a46","56aa75e24350eb17009147b5"],"__v":10,"project":"556cd8aec14029190092d292","version":"556cd8aec14029190092d295","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-06-01T22:11:59.312Z","from_sync":false,"order":1,"slug":"about-the-api","title":"About The API"},"parentDoc":null,"version":{"_id":"556cd8aec14029190092d295","__v":14,"project":"556cd8aec14029190092d292","createdAt":"2015-06-01T22:11:58.756Z","releaseDate":"2015-06-01T22:11:58.756Z","categories":["556cd8afc14029190092d296","55ca5a55241e790d004f47ea","55dc9fdb4f535537007da1b2","55dc9fdfc755b63700dc843c","55fdb08c4bebdf17004130d4","560ef4c2a36c610d00e7013e","5613db296a092921004c30c2","56156581dc8aea0d002475e8","56169d1ee98f5517005627a8","5622fde7de7dc01700c6dd5f","56cf75f3336aa60b0086a495","5818f3c02093901b00bcf91a","582f7ff88ea0800f0035639a","583f30c110448a2500dd990f"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":1,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-08-25T18:25:02.367Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":1,"body":"We look at several headers to change the response of the api. Here are some of the common ones you may use:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Header\",\n    \"h-1\": \"Required\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"Content-Type\",\n    \"0-1\": \"yes\",\n    \"0-2\": \"Tells the server what kind of data you are sending it.\",\n    \"1-0\": \"Accept\",\n    \"1-1\": \"yes\",\n    \"1-2\": \"Tells the server what kind of data you will accept back.\",\n    \"4-0\": \"X-Display-Currency\",\n    \"4-1\": \"no\",\n    \"4-2\": \"The currency to show all price values.\",\n    \"5-0\": \"X-Shipping-Region\",\n    \"h-3\": \"Default Value\",\n    \"0-3\": \"None, application/hal+json is the recommended value\",\n    \"1-3\": \"None, application/hal+json is the recommended value here\",\n    \"4-3\": \"USD. \\n\\nValid values can be found at /api/currencies/display\",\n    \"5-2\": \"Show only listings that ship to this region\",\n    \"5-1\": \"no\",\n    \"5-3\": \"None, will show everything.\\n\\nValid valid values can be found at /api/shipping/regions .\",\n    \"2-0\": \"Accept-Version\",\n    \"2-1\": \"yes\",\n    \"2-2\": \"The version of the API that you are requesting.\",\n    \"2-3\": \"1.0 .\\n\\n3.0 is recommended as it is the current version of the API.\",\n    \"3-0\": \"Accept-Language\",\n    \"3-1\": \"no\",\n    \"3-2\": \"Locale value that tells the server which language you expect content to be returned in.\",\n    \"3-3\": \"en\"\n  },\n  \"cols\": 4,\n  \"rows\": 6\n}\n[/block]","excerpt":"","slug":"http-headers","type":"basic","title":"HTTP Headers"}
We look at several headers to change the response of the api. Here are some of the common ones you may use: [block:parameters] { "data": { "h-0": "Header", "h-1": "Required", "h-2": "Description", "0-0": "Content-Type", "0-1": "yes", "0-2": "Tells the server what kind of data you are sending it.", "1-0": "Accept", "1-1": "yes", "1-2": "Tells the server what kind of data you will accept back.", "4-0": "X-Display-Currency", "4-1": "no", "4-2": "The currency to show all price values.", "5-0": "X-Shipping-Region", "h-3": "Default Value", "0-3": "None, application/hal+json is the recommended value", "1-3": "None, application/hal+json is the recommended value here", "4-3": "USD. \n\nValid values can be found at /api/currencies/display", "5-2": "Show only listings that ship to this region", "5-1": "no", "5-3": "None, will show everything.\n\nValid valid values can be found at /api/shipping/regions .", "2-0": "Accept-Version", "2-1": "yes", "2-2": "The version of the API that you are requesting.", "2-3": "1.0 .\n\n3.0 is recommended as it is the current version of the API.", "3-0": "Accept-Language", "3-1": "no", "3-2": "Locale value that tells the server which language you expect content to be returned in.", "3-3": "en" }, "cols": 4, "rows": 6 } [/block]