- Run
mvn clean install
to build your application - Start application with
java -jar target/pngweb-1.0-SNAPSHOT.jar server config.yml
- To check that your application is running enter url
http://localhost:8080
The application is to demonstrate generation of prime numbers.
To start generation of primes up to a certain value send a POST to one of 3 implementations
$ curl -X POST http://localhost:8080/primes/basic/1000000
$ curl -X POST http://localhost:8080/primes/optimised/1000000
$ curl -X POST http://localhost:8080/primes/eratosthenes/1000000
To retrieve results send a GET to /primes The application will return status 202 if it is still processing.
$ curl http://localhost:8080/primes
To see your applications health enter url http://localhost:8081/healthcheck
To see your applications metrics enter url http://localhost:8081/metrics
update