Giter Club home page Giter Club logo

ndlims's Introduction

Endpoints:

  • POST /metadata/ocp/set/

Post JSON (from the request data). You must specify a token key and give it a value in your metadata.

If you don't specify a secret in your POST request, this data will be read-only. In order to edit your data, you must specify a secret. (One of the keys in your metadata should be secret, and its value can be any string that you'll remember. Anyone with this secret can edit the entry.

Keys

  • Required
Key Value Description
token String The token that this datum corresponds to in OCP.
  • Optional
Key Value Description
secret String Pick a secret word. You can use it later to edit this datum. If you don't supply a secret, this metadata will be read-only.

Responses:

Code Message Meaning
200 [id] Successful set performed. (id of the upserted object is returned.)
500 Metadata for token [token] is read-only. This data already exists and cannot be edited because no secret was defined.
500 Metadata for token [token] cannot be updated: Bad secret. This data already exists, and the secret you specified in your request didn't match the secret required to edit the datum.
500 Metadata for token [token] could not be inserted. Unknown database error.
  • GET /metadata/ocp/get/:token Get the JSON metadata associated with a token.

'/api/metadata/get/:id' '/api/metadata/delete/:id/' '/api/metadata/unset/:id/:field_name' '/api/metadata/set/:id/:field_name' '/api/metadata/exists/:field_name' '/api/metadata/get' '/api/metadata/set'

Setup

Full setup from scratch, to running this service as a development server (on Ubuntu):

sudo apt-get install nodejs
curl https://install.meteor.com | sh
git clone [email protected]:openconnectome/ndlims.git ndlims
cd ndlims
meteor --port=3030

ndlims's People

Contributors

j6k4m8 avatar wrgr avatar gkiar avatar

Watchers

James Cloos avatar  avatar

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.