Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
53 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,39 @@ | ||
# mason-microservice | ||
# Server | ||
|
||
Run the maven project And point to the following url. | ||
This a sample project build with embedded tomcat and uses mason tag library. | ||
This can be deployed as a standalone jar in the microservices environment. | ||
|
||
http://localhost:8080/rest/v1.0/execute | ||
## Run | ||
``` | ||
mvn compile exec:java -Dexec.mainClass=launch.Main | ||
``` | ||
|
||
or try | ||
## Examples | ||
|
||
http://localhost:8080/rest/v1.0/movie | ||
Run the maven project And point to the following url. The source code for these rest resources | ||
are found in the [src/main/webapp/resources/v1.0/](server/src/main/webapp/resources/v1.0/) | ||
|
||
For the sql to work you must update the db credentials in context.xml. | ||
### Set Output values | ||
|
||
``` | ||
http://localhost:3000/rest/v1.0/sample | ||
``` | ||
### Object Marshalling | ||
|
||
``` | ||
http://localhost:3000/rest/v1.0/execute | ||
``` | ||
### SQL | ||
|
||
``` | ||
http://localhost:3000/rest/v1.0/movie | ||
``` | ||
|
||
For the sql to work you must update the db credentials in context.xml. Note the server loads much | ||
faster if context.xml doesn't contain any datasource. As this library uses Hikari-cp | ||
|
||
### Scripting | ||
|
||
``` | ||
http://localhost:8082/rest/v1.0/logic | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters