{"info":{"_postman_id":"03216821-9c60-fd68-0801-96095aa4fdf9","name":"JSONBlob Core API","description":"<html><head></head><body><p>JSON Blob was created to help parallelize client/server development. Mock JSON responses can be defined using the online editor and then clients can use the JSON Blob API to retrieve and update the mock responses.</p>\n<p>Blobs that are not accessed in 75 DAYS will be removed.</p>\n<h1 id=\"credits\">Credits</h1>\n<p>JSONBlob service is maintained by Tristan Burch (<a href=\"https://github.com/tburch/jsonblob)%5Bhttps://github.com/tburch/jsonblob%5D\">https://github.com/tburch/jsonblob)[https://github.com/tburch/jsonblob]</a></p>\n<p>Credit for the JSON editor and formatter goes to (JSON Editor Online)[<a href=\"https://github.com/josdejong/jsoneditor/%5D\">https://github.com/josdejong/jsoneditor/]</a>.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Credits","slug":"credits"}],"owner":"33232","collectionId":"03216821-9c60-fd68-0801-96095aa4fdf9","publishedId":"4pg","public":true,"customColor":null,"publishDate":"2016-03-17T11:09:46.000Z"},"item":[{"name":"Create a Blob","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test('response must be ok with appropriate location', function () {","    pm.response.to.have.status(201);","    pm.response.to.have.header(\"location\");","});","","// save the created blob location in environment","","if (pm.response.code === 201 && responseHeaders[\"location\"]) {","    postman.setEnvironmentVariable(\"last_created_blob\", responseHeaders[\"location\"].replace(\"https://jsonblob.com/api/jsonBlob/\", \"\"));","    ","    tests[\"Blob Id: \" + postman.getEnvironmentVariable(\"last_created_blob\")] = true;","    tests[\"Blob Location: \" + responseHeaders[\"location\"]] = !!responseHeaders[\"location\"];","    postman.setGlobalVariable(\"last_created_jsonblob\", responseHeaders[\"location\"]);","","}","else {","    tests[\"Blob not created!\"] = false;","}"]}}],"id":"639ed7ae-16b4-c257-ca4b-a99a31c1906b","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\"people\":[\"bill\", \"steve\", \"bob\"]}"},"url":"https://jsonblob.com/api/jsonBlob","description":"<p>Creating a JSON Blob is accomplished by sending a <code>POST</code> request to <code>/api/jsonBlob</code>. The body of the request should contain valid JSON that will used as the JSON Blob. Upon successfully storing the JSON blob, a <code>201</code> response will be returned. The <code>Location</code> header in the response will be set to the URL at which the blob can be accessed with a <code>GET</code> request. The body of the response is the JSON that was stored in the JSON blob.</p>\n<blockquote>\n<p>Replace the JSON in the raw post body with your own JSON and refer to the \"test\" tab after sending the request to easily retrieve the location of your newly created JSON</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","jsonBlob"],"host":["jsonblob","com"],"query":[],"variable":[]}},"response":[{"id":"736a496e-74dc-5fd5-834a-5fc23b1d8bb0","name":"sample-response","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\"people\":[\"bill\", \"steve\", \"bob\"]}"},"url":"https://jsonblob.com/api/jsonBlob","description":"Creating a JSON Blob is accomplished by sending a `POST` request to `/api/jsonBlob`. The body of the request should contain valid JSON that will used as the JSON Blob. Upon successfully storing the JSON blob, a `201` response will be returned. The `Location` header in the response will be set to the URL at which the blob can be accessed with a `GET` request. The body of the response is the JSON that was stored in the JSON blob.\n\n> Replace the JSON in the raw post body with your own JSON and refer to the \"test\" tab after sending the request to easily retrieve the location of your newly created JSON"},"status":"Created","code":201,"_postman_previewlanguage":"javascript","header":[{"name":"access-control-allow-methods","key":"access-control-allow-methods","value":"GET,POST,PUT,DELETE,HEAD,OPTIONS","description":""},{"name":"access-control-allow-origin","key":"access-control-allow-origin","value":"*","description":""},{"name":"access-control-expose-headers","key":"access-control-expose-headers","value":"X-Requested-With,X-jsonblob,X-Hello-Human,Location,Date,Content-Type,Accept,Origin","description":""},{"name":"cf-ray","key":"cf-ray","value":"1bb57d6472501998-HKG","description":""},{"name":"content-type","key":"content-type","value":"application/json","description":""},{"name":"date","key":"date","value":"Thu, 19 Feb 2015 21:17:12 GMT","description":""},{"name":"location","key":"location","value":"https://jsonblob.com/api/jsonBlob/54e652d8e4b03671eae999fe","description":""},{"name":"server","key":"server","value":"cloudflare-nginx","description":""},{"name":"status","key":"status","value":"201 Created","description":""},{"name":"version","key":"version","value":"HTTP/1.1","description":""},{"name":"via","key":"via","value":"1.1 vegur","description":""},{"name":"x-hello-human","key":"x-hello-human","value":"If you feel JSON Blob is useful, please consider supporting it! https://www.gittip.com/tburch/","description":""},{"name":"x-jsonblob","key":"x-jsonblob","value":"54e652d8e4b03671eae999fe","description":""}],"cookie":[],"responseTime":"1310","body":"{\"people\":[\"bill\",\"steve\",\"bob\"]}"},{"id":"174102e7-704e-486b-ad6b-58712c67adf3","name":"Create a Blob","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\"people\":[\"bill\", \"steve\", \"bob\"]}"},"url":"https://jsonblob.com/api/jsonBlob"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Cf-Cache-Status","value":"DYNAMIC"},{"key":"Cf-Ray","value":"7028560e74b582c9-IAD"},{"key":"Content-Length","value":"35"},{"key":"Content-Type","value":"application/json"},{"key":"Expect-Ct","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Location","value":"http://jsonblob.com/api/jsonBlob/968885339934703616"},{"key":"Nel","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=%2BE0v5iXHAT3s%2FPEd52PnQBP1zVw70GfXpTPKnaAIV%2BW0J96ZOvyMJ%2Be0uSoc7ND5Pakp0xW%2FUMuLnlFKP%2BXwxF%2Fm0KGuHs9RbfBJxaQLqGZd3LBouZO2MmZPEm%2F9Pfs%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"Date","value":"Wed, 27 Apr 2022 14:44:26 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"people\": [\n        \"bill\",\n        \"steve\",\n        \"bob\"\n    ]\n}"}],"_postman_id":"639ed7ae-16b4-c257-ca4b-a99a31c1906b"},{"name":"Retrieve a Blob","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code !== 200) {","    tests[\"Blob not found!\"] = false;","}","","else {","    tests[\"Blob retrieved. See response body.\"] = true;","}",""]}}],"id":"7d2d1dff-3986-fe23-104c-87a803338126","request":{"method":"GET","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"formdata","formdata":[{"key":"access_token","value":"def","type":"text"},{"key":"id","value":"U2","type":"text"},{"key":"secret","value":"zeppelin","type":"text"}]},"url":"https://jsonblob.com/api/jsonBlob/{{last_created_jsonblob}}","description":"<p>Retrieving a JSON Blob is accomplished by sending a <code>GET</code> request to <code>/api/jsonBlob/&lt;blobId&gt;</code>, where <code>&lt;blobId&gt;</code> is the last part of the URL path returned from the <code>POST</code> request. Upon successfully retrieving the JSON Blob, a <code>200</code> response will be returned. If no JSON Blob exists for the given <code>&lt;blobId&gt;</code>, a <code>404</code> response will be returned. The body of the response is the JSON that was stored in the JSON Blob.</p>\n<blockquote>\n<p>Use the Blob ID from a <em>\"Create a Blob\"</em> <code>POST</code> request and append it to the URL to retrieve the JSON.\nIf you have recently created a blob using Postman, the variable <code>{{last_created_jsonblob}}</code> already has the blob id.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","jsonBlob","{{last_created_jsonblob}}"],"host":["jsonblob","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"7d2d1dff-3986-fe23-104c-87a803338126"},{"name":"Edit a Blob","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code === 404) {","    tests[\"Blob not found!\"] = false;","}","","else {","    ","}",""]}}],"id":"29b64cc2-ef23-66a9-07b6-829616fcbde5","request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"sample\": \"json\",\n    \"update\": \"success\"\n}"},"url":"https://jsonblob.com/api/jsonBlob/{{last_created_jsonblob}}","description":"<p>Updating a JSON Blob is accomplished by sending a <code>PUT</code> request to <code>/api/jsonBlob/&lt;blobId&gt;</code>. The request body should contain valid JSON that the stored JSON Blob will be replaced with. Upon successfully storing the new JSON Blob, a <code>200</code> response will be returned. If no JSON Blob exists for the given <code>&lt;blobId&gt;</code>, a <code>404</code> response will be returned. The body of the response is the JSON that was stored in the JSON Blob.</p>\n<blockquote>\n<p>Use the Blob ID from a <em>\"Create a Blob\"</em> <code>POST</code> request and append it to the URL to retrieve the JSON.\nChange the raw data with your new JSON before you send the request, otherwise you may accidentally delete original data.\nIf you have recently created a blob using Postman, the variable <code>{{last_created_jsonblob}}</code> already has the blob id.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","jsonBlob","{{last_created_jsonblob}}"],"host":["jsonblob","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"29b64cc2-ef23-66a9-07b6-829616fcbde5"},{"name":"Delete a Blob","event":[{"listen":"test","script":{"type":"text/javascript","exec":["if (responseCode.code === 200) {","    tests[\"Successfully Deleted\"] = true;","}","else {","    tests[\"Blob not found!\"] = false;","}"]}}],"id":"ce2b323d-2d99-c3fb-ebd1-87d5cc751134","request":{"method":"DELETE","header":[{"key":"Content-Type","value":"application/json"},{"key":"Accept","value":"application/json"}],"body":{"mode":"raw","raw":""},"url":"https://jsonblob.com/api/jsonBlob/{{last_created_jsonblob}}","description":"<p>Deleting a JSON Blob is accomplished by sending a <code>DELETE</code> request to <code>/api/jsonBlob/&lt;blobId&gt;</code>. Upon successfully deleting the JSON Blob, a <code>200</code> response will be returned. If no JSON Blob exists for the given <code>&lt;blobId&gt;</code>, a <code>404</code> response will be returned. If deleting blobs is not enabled, a 405 response will be returned.</p>\n<blockquote>\n<p>Use the Blob ID from a <em>\"Create a Blob\"</em> <code>POST</code> request and append it to the URL to retrieve the JSON.\nIf you have recently created a blob using Postman, the variable <code>{{last_created_jsonblob}}</code> already has the blob id.</p>\n</blockquote>\n","urlObject":{"protocol":"https","path":["api","jsonBlob","{{last_created_jsonblob}}"],"host":["jsonblob","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce2b323d-2d99-c3fb-ebd1-87d5cc751134"}]}