remy/jsonbin
关于
作为 RESTful 服务的个人 JSON 存储
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文NAME
jsonbin.org - A personal JSON store as a RESTful service
SYNOPSIS
curl https://jsonbin.org/remy/blog
To save data, you'll first need to sign in to get an API key.
DESCRIPTION
jsonbin.org is a personal key/value JSON store as a service. Protected behind authentication and API key requests, data is stored as JSON and can be deep linked. A permissioning model also allows specific paths to your store to become public to share with others.
The aim of the project is to provide a simplified data store for tinkerers.
Important: jsonbin is currently in open beta. If you have questions, please get in touch.
Authentication
By default all user store data is protected behind auth either via browser sign in, or an authorization token. The token is your apikey. For example:
curl -X POST https://jsonbin.org/remy/blog \
-H 'Authorization: token abcd-xyz-123' \
-d '{ url: "https://remysharp.com" }'
Endpoints
A private namespace URL "_" is used for jsonbin specific endpoints:
/_/helpThis page./_/loginAuth with github./_/logoutClear your session./_/meYour full profile./_/me/apikeyYour API key./_/me/apikeyDELETE to revoke your current key./_/me/usernameYour username./_/me/publicYour public paths./_/me/:pathDeep link to profile properties.
The following methods with your authorization header will access your data store against https://jsonbin.org/:username/:
GETreturn given path mapped to a JSON path.POSTstore the payload (supports JSON and files).PATCHmerge the payload with the endpoint.DELETEstore path.
By default all endpoints are private, but you can modify a specific entry point to be public by default by changing the permissions:
- PUT
/:username/:path/_permsmake the:pathpublic. - DELETE
/:username/:path/_permsmake:pathprivate. - GET
/:username/:path/_permscheck permissions of:path.
Public endpoints accept GET requests without the authorization header.
Example usage
You can use jsonbin as a shared clipboard across machines. Creating an alias to upload STDIN via curl could be posted to a public URL:
alias jsonbin="curl -X 'POST' \
-H'authorization: token abcd-xyz-123' \
-F'content=@-' \
https://jsonbin.org/remy/clipboard"
echo "foo" | jsonbin
BUGS
This project lives at github/jsonbin. Please report bugs to github/jsonbin/issues.
AUTHOR
Remy Sharp <[email protected]>
LICENSE
探索相关项目
加载中…