Code Monkey home page Code Monkey logo

12hback's Introduction

alt text

Back end for SN 12h/Marató

Simple lightweight backend to allow clients to push key/value pairs in a secure way.

Open Endpoints

Open endpoints require no Authentication.

  • Login: POST /api/user/

Create a new user. Expects an encoded JSON MIME type data field with a username and password field. Password is stored encoded.

Endpoints that require Authentication

Closed endpoints require a valid username/password to be included in the header of the request.

UserKeyValue related

Each endpoint manipulates or displays information related to the UserKeyValues. The user provided in the authentication header is used to fetch the relevant data:

  • Get Key Values: GET /api/keyvalues

Requires the usual authentication headers and provides a JSON object with the relevant key/value pairs.

  • Get Key Value: GET /api/keyvalue/<key_name>

Requires the usual authentication headers and provides the value for the specified key name (if exists).

  • Update Key Value: GET /api/keyvalue/<key_name>

Requires the usual authentication headers generates the relevant key/value pair. If either the key or the key/value entities don'r exist they're generated.

  • Purge data: GET /api/purge

Kills the whole database. Only available for privileged admin users. Rebuilds the base model right after.

12hback's People

Contributors

atapscott avatar

Watchers

James Cloos 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.