Git Product home page Git Product logo

apply-server's People

Contributors

dependabot[bot] avatar ghenzler avatar kwin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

apply-server's Issues

Include complete ReST API documentation

The description in the readme should include all requests (incl. method, path, parameters and optionally body) with their according response format (status codes, response body).

Handle script exit codes more consistently

Currently only for 0 and 1 an IllegalStateException from applyserver itself is thrown, for higher exit codes standard handling of commons exec kicks in. The handling should always be the same.

Allow to stream response for long-running scripts and return script result (exit code) via last line

For long running scripts it would be nice to see what is happening on server side. Obviously, when streaming content already, the response code can not be changed anymore in case of error (it will always be 200) - therefore the idea is to allow for a flag

  -sr, --stream-response    Instead of sending the response back in one 
               chunk after script execution, it will stream back the response as 
               the script is running. The http response code will always be 200 
               for this mode, the script's exit code will be returned as last line 
               of the response. 

Additionally it should also be possible to control the behaviour from calling client:

curl ... -H "Stream-Response: true"

The http header shall take higher precedence over the server start setting

Add badges to Readme

At least the license badge and Maven central badge should be included. Once #15 is solved also the Sonarcloud.io badges.

For the case payload is optional, the format has to be optional

Currently, if -o is used to be able to trigger scripts with -c, it always asks for the format parameter even if that format does not make sense because no payload is sent:

Filename needs to be given as path of request or request parameter 'format' has to be used (actual: '/test')

Example Script for Apache HTTPD

It would be helpful if the readme would contain one script for checking and restarting Apache HTTPD after a new config has been extracted.
I guess the steps are simply

  1. apachectl configtest
  2. apachectl graceful

But it would be interesting how to properly deal with errors (i.e. configtest not successful).

Support for https

Currently only http is supported. It should be possible to give an option --https to run the server with https protocol. Additional options will be necessary to specify certificates etc

Support symlinks

For both zips and tar it is possible to include symlinks. Those should be expanded as included in archive and filtering must not be active for those entries.

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.