Skip to content

coders-kitchen/MoskitoAndCDI-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoskitoAndCDI-Example

This is an short example of how to integrate Moskito within CDI.

Building

On *nix execute gradlew clean war

On Windows execute gradlew.bat clean war

Deploying

Start your application server and deploy the war.

Usage

Upload a document

For calculating the statistics for a document simply call `curl -PUT "http:////rest/document" -T -v"

This will return an id for your document.

For example on your local machine you can use this

curl -PUT "http://localhost:8080/MoskitoAndCDIExample/rest/document" -T build.gradle -v

Getting the complete statistics

For retrieving the whole statistics use this URL http://<HOST>/<context-root>/rest/document/<ID>

Getting the stastistics for one word

For getting the statistic for a single word use this URL http://<HOST>/<context-root>/rest/document/<ID>/<WORD>

About

This is an short example of how to use MosKito in a CDI contect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors