Code Monkey home page Code Monkey logo

dynamicws's Introduction

dynamicws

Dynamic web services, Making development of REST is fun and easy for production for Enterprise system

Runtime change the request/response of webservice with new code

##Building from source The dynamicws is dynamic jar projects uses a Gradle-based build system. In the instructions below, ./gradlew is invoked from the root of the source tree and serves as a cross-platform, self-contained bootstrap mechanism for the build. The only prerequisites are Git and JDK 1.8.

check out sources

git clone [email protected]:nileshdarade/dynamicws.git

cd dynamicws

compile and test, build all jars

gradle library

run jar

cd build/libs

java -jar dynamicws.jar&

Go to home directory

cd ../../../

compile and test, build all jars

gradle jar

copy jar from build/libs to directory dynamicws/build/libs directory

Now you can execute

###Following two api's 1.http://localhost:4567/library

2.http://localhost:4567/library?jarName=book1.1.jar&className=com.nilesh.dynamicws.BookImpl_1_1

For new code create new jar and add follow same proccess, I create book1.1.jar, book1.2.jar and book1.3.jar fore reference

3.http://localhost:4567/library?jarName=book1.2.jar&className=com.nilesh.dynamicws.BookImpl_1_2 4.http://localhost:4567/library?jarName=book1.3.jar&className=com.nilesh.dynamicws.BookImpl_1_3

Process to create new jar cd to book1.1 project change the name of the module in settings.gradle file change the class name BookImpl_1_1 to BookImpl_1_2 and so on... update the method for different response. build the jar and copy and paste parallel to dynamicws.jar and your new REST api is ready!

##License The dynamicws build plugin is released under The MIT License (MIT) MIT License. Distributions Compliance with this license is assured by including the https://github.com/nileshdarade/dynamicws/blob/master/LICENSE file in the dynamicws archive, which this plugin does automatically.

dynamicws's People

Contributors

nileshdarade avatar

Stargazers

Sandeep avatar  avatar

Watchers

James Cloos avatar Sandeep 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.