Giter Club home page Giter Club logo

enigma-admin-server's Introduction

enigma-admin-server

API server that manage the statistical experiment data.

Local development

Start develop locally by active following command.

docker-compose up

Test the API by visit the request.http file and edit the JWT token (see how to generate the token for local development below).

@jwt_token = REPLACE_JWT_VALUE_HERE

Generate JWT Token for locally test.

Go to folder jwt_token_signer and fun the following command.

npm install
npm run generate:token

Custom Claim

To defined the custom claim struct for your JWT See /src/handler/mod.rs search for Claim struct and modify it to match up with your JWT data.

enigma-admin-server's People

Contributors

muitsfriday avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

enigma-admin-server's Issues

API endpoint: Delete the experiment by it id.

API Specification

Requirement

  • [] Must check if ID exists
  • [] Must check if user (jwt) has a valid authorization to delete the record.

Endpoint

DELETE http://localhost:8000/experiment/{id}
Authorization: bearer {jwt_token}

Response

{
  "acknowledge": true
}

Error Response

{
  "error": "reason"
}

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.