Skip to content

ydkmlt84/jsonbin_org

 
 

Repository files navigation

NAME

MaintainerrJSONBin - A personal JSON store as a RESTful service

SYNOPSIS

To save data, you'll first need to sign in to get an API key.

DESCRIPTION

MaintainerrJSONBin 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: MaintainerrJSONBin is a fork of another project, and changed for Branding and to be placed in a Docker Container. 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.maintainerr.info/ \
     -H 'Authorization: token abcd-xyz-123' \
     -d '{ url: "https://maintainerr.info" }'

Endpoints

A private namespace URL "_" is used for MaintainerrJSONBin specific endpoints:

The following methods with your authorization header will access your data store against https://jsonbin.maintainerr.info/:username/:

  • GET return given path mapped to a JSON path.
  • POST store the payload (supports JSON and files).
  • PATCH merge the payload with the endpoint.
  • DELETE store 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/_perms make the :path public.
  • DELETE /:username/:path/_perms make :path private.
  • GET /:username/:path/_perms check permissions of :path.

Public endpoints accept GET requests without the authorization header.

Example usage

You can use MaintainerrJSONBin 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.maintainerr.info/maintainerr/clipboard"
echo "foo" | jsonbin

BUGS

This project lives at github/jsonbin_org. Please report bugs to github/jsonbin_org/issues.

AUTHOR

Current Author of THIS Fork -> ydkmlt84 <ydkmlt84@maintainerr.info>

Original Author of JSONBIN -> Remy Sharp <Remy Sharp Github>

About

A personal JSON store as a RESTful service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.8%
  • HTML 7.6%
  • CSS 3.9%
  • Other 0.7%