{"_id":"55e1f0157d91840d00824a07","user":"55df3f52ddfb40170061cf96","version":{"_id":"55df3f6486ae7f0d00db4ca5","__v":7,"project":"55df3f6386ae7f0d00db4ca2","createdAt":"2015-08-27T16:48:36.339Z","releaseDate":"2015-08-27T16:48:36.339Z","categories":["55df3f6486ae7f0d00db4ca6","55e1376cd052580d0038c9b9","55e1391926f51b0d009b1778","55e1d40a7d91840d008249ea","55e1d6e27d91840d008249eb","55e20132d052580d0038ca67","55fe3726473f380d000b268a"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"__v":2,"githubsync":"","project":"55df3f6386ae7f0d00db4ca2","category":{"_id":"55e1d40a7d91840d008249ea","__v":8,"pages":["55e1e1787d91840d008249f1","55e1e4dd7d91840d008249f4","55e1e7a9d052580d0038ca56","55e1f0157d91840d00824a07","55e1fa62aa9345170063c0d1","55e1fd11aa9345170063c0d3","55fe330d5c67200d00fa2f2e","55fe357c5c67200d00fa2f30"],"project":"55df3f6386ae7f0d00db4ca2","version":"55df3f6486ae7f0d00db4ca5","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-29T15:47:22.301Z","from_sync":false,"order":2,"slug":"usage","title":"Usage"},"editedParams":true,"editedParams2":true,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-29T17:47:01.523Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[{"name":"","code":"http://localhost:3939/buckets/rai/261671.jpeg","language":"scala"}]},"method":"get","results":{"codes":[{"status":200,"language":"text","code":"Your File","name":""},{"code":"{\n    \"error\": \"version 1 not found\"\n}","name":"","status":400,"language":"json"}]},"settings":"","auth":"required","params":[{"_id":"55e1f0397d91840d00824a0a","ref":"","in":"path","required":false,"desc":"Bucket contain the file you want","default":"","type":"string","name":"bucket"},{"_id":"55e1f0397d91840d00824a09","ref":"","in":"path","required":false,"desc":"Filename of the file you want","default":"","type":"string","name":"filename"},{"_id":"55e1f927d052580d0038ca65","ref":"","in":"query","required":false,"desc":"Version of the file you want to get","default":"","type":"string","name":"v"}],"url":"/buckets/:bucket/:filename"},"isReference":false,"order":3,"body":"[block:callout]\n{\n  \"type\": \"success\",\n  \"title\": \"User Role Required\",\n  \"body\": \"file:get\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Information\",\n  \"body\": \"Please replace `:bucket` and `:filename` in the url\"\n}\n[/block]","excerpt":"","slug":"bucketfilename","type":"endpoint","title":"/buckets/:bucket/:filename"}

get/buckets/:bucket/:filename


Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

bucket:
string
Bucket contain the file you want
filename:
string
Filename of the file you want

Query Params

v:
string
Version of the file you want to get

Examples


Result Format


Documentation

[block:callout] { "type": "success", "title": "User Role Required", "body": "file:get" } [/block] [block:callout] { "type": "info", "title": "Information", "body": "Please replace `:bucket` and `:filename` in the url" } [/block]