GithubHelp home page GithubHelp logo

lilyinstarlight / store Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 44 KB

store is a web service for storing data that will automatically get deleted on its set expiry date

License: MIT License

Python 87.37% HTML 12.63%

store's Introduction

store

store is a web service for storing data that will automatically get deleted on its set expiry date.

API

Endpoints

Endpoint Description Methods
/api/**/ Requests ending in a / are namespace endpoints. Namespaces efficiently store sets of data by key/alias.
GET A get request returns a JSON list of keys/aliases in that namespace.
POST A post request creates an entry and returns the JSON object and a new Location header.
/api/**/* Requests ending in an key/alias are entry endpoints. Entries are key/alias indexed JSON objects containing metadata of stored information.
GET A get request returns a JSON object of that entry.
PUT A put request either creates an entry at the specified alias if it does not exist or updates the expiry date of the existing object and returns the JSON object.
DELETE A delete request deletes the entry and its associated data.
/store/**/* Requests represent the actual data in the store.
GET A get request returns the stored data with its metadata encoded in headers.
PUT A put request updates the data in the resource. Note: The size and type given must match those in the /api/ entry.

Payload

{"filename": "example.txt", "size": 144, "type": "text/plain", "expire": 2147483647, "locked": true}

Response

{"alias": "abcd", "date": "1474826615", "filename": "example.txt", "size": "144", "type": "text/plain", "expire": 2147483647, "locked": true}

store's People

Contributors

lilyinstarlight avatar

Watchers

 avatar  avatar

store's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.