Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Info
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
- # Building
- To build run the following command:
- ```
- $> mvn clean package
- ```
- # Running
- To run the lorem-ipsum web application execute the following command:
- ```
- $> java -jar target/lorem-ipsum-1.0-SNAPSHOT-jar-with-dependencies.jar --port={port} --threads={threads}
- ```
- where `{port}` is the port number for server socket and `{threads}` is number of threads running in parallel on server.
- Additionally, environment variables need to be defined:
- * `SECRET` - secret code to this application. The code is used in HTTP basic authentication when connecting to this application.
- * `DATABASE_URL` - URL to database instance.
- # Available services
- ## Lorem ipsum dolor sit amet
- ```
- GET /lorem
- ```
- Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- **Authentication**
- Access to this service is secured by basic access authentication with defined secret.
- **Result**
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
- **Example**
- ```
- GET /lorem
- 200 OK
- {
- "ipsum": "dolor",
- "sit": "amet",
- "consectetur": "adipiscing"
- }
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement