Code Monkey home page Code Monkey logo

http-oriontranslator's Introduction

ORION MIDDLEWARE BASE

Translates/simplifies ORION API through GET queries for specific scenario/context defined.

  • API routes:

    • GETs:
    • '/api' : Orion version info
    • '/api/cbodies' : All cbodies/scenarios info
    • '/api/cbodies/:scenario_id' : Specific cbodie/s info
    • '/api/cbodies/:scenario_id/:sensortype' : Specific cbodie/s and sensor/s type info
    • '/api/cbodies/:scenario_id/:sensortype/:pintype' : Specific cbodie/s, sensor/s and pin/s type info
    • '/api/cbodies/:scenario_id/:sensortype/:pintype/:pin' : Specific cbodie/s, sensor/s, pin/s type/s and specific pin/s info
  • Param values:

    • :scenario_id
      • all (same as GET /api/cbodies)
      • specific value (i.e.: 2)
      • set of values (i.e: 1:3:2 <-- element 1, 3 and 2)
    • :sensortype
      • all
      • specific value (i.e.: digital)
      • set of values (i.e: analog:digital <-- same as all)
    • :pintype
      • all
      • specific value (i.e.: OUT)
      • set of values (i.e: OUT:IN <-- same as all)
    • :pin
      • all
      • specific value (i.e.: 3)
      • set of values (i.e: 1:2 <-- element 1 and 2)

INSTALLATION

npm install

Note: It is required to modify variable "orionBaseURL" at server.js in order to point to your Orion working instance.

RUN

npm start

Note: By default the server listens on port 8080, so go browsing to http://localhost:8080/api

http-oriontranslator's People

Contributors

dependabot[bot] avatar gerardcl avatar

Watchers

 avatar  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.