An open API service indexing awesome lists of open source software.

https://github.com/ziozzang/jython-apiserver

simple jython api server to integrate legacy java code.
https://github.com/ziozzang/jython-apiserver

api-rest api-server flask-like java java-8 jython spark-core

Last synced: about 2 months ago
JSON representation

simple jython api server to integrate legacy java code.

Awesome Lists containing this project

README

          

# Jython based simple API server example
Very Simple API server with Jython using spark-core. it looks like flask server, but java. this technics are very useful when you integrate legacy java code with other platform.

This code is very simple using/conversion from JAVA library or code into JSON/POST or GET APIs.

This code can be simple starting point to reuse old java code. ;)

# tested env.
- tested on OpenJDK 8 env.

# test as client
```
curl -X POST -H "Content-Type: application/json" -d '{"text":"some-text"}' http://localhost:8080/strlen
curl http://localhost:8080/strlen?text=some-text
curl http://localhost:8080/strlen/some-text
```

# License
MIT