Giter Site home page Giter Site logo

nashorn-rest-api's Introduction

nashorn-rest-api

REST API for Nashorn JavaScript engine

Methods summary:

  1. Execute script
    GET http://localhost:8080/api/execute/{script}
    POST http://localhost:8080/api/execute

    -add script to request body and set Content-Type: text/plain
    -To execute script in async mode add 'async' header with value 'true'.
    -For specify execution timeout add 'timeout' header with integer value in seconds, by default is 5.
    Returns execution context object or errors if any occurred.

  2. List execution contexts
    http://localhost:8080/api/list
    Returns array of execution context objects.

  3. Get execution context
    http://localhost:8080/api/get/{executionId}
    Returns execution context object with specified executionId, or error if context not found.

  4. Delete execution context http://localhost:8080/api/delete/{executionId}
    Returns true if context deleted, false otherwise.

nashorn-rest-api's People

Contributors

alexgeta avatar

Watchers

 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.