Advertisement
Guest User

Untitled

a guest
Jul 30th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. # Info
  2.  
  3. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  4.  
  5. # Building
  6.  
  7. To build run the following command:
  8. ```
  9. $> mvn clean package
  10. ```
  11.  
  12. # Running
  13.  
  14. To run the lorem-ipsum web application execute the following command:
  15. ```
  16. $> java -jar target/lorem-ipsum-1.0-SNAPSHOT-jar-with-dependencies.jar --port={port} --threads={threads}
  17. ```
  18. where `{port}` is the port number for server socket and `{threads}` is number of threads running in parallel on server.
  19.  
  20. Additionally, environment variables need to be defined:
  21.  
  22. * `SECRET` - secret code to this application. The code is used in HTTP basic authentication when connecting to this application.
  23. * `DATABASE_URL` - URL to database instance.
  24.  
  25. # Available services
  26.  
  27. ## Lorem ipsum dolor sit amet
  28.  
  29. ```
  30. GET /lorem
  31. ```
  32.  
  33. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
  34.  
  35. **Authentication**
  36.  
  37. Access to this service is secured by basic access authentication with defined secret.
  38.  
  39. **Result**
  40.  
  41. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
  42.  
  43. **Example**
  44.  
  45. ```
  46. GET /lorem
  47.  
  48. 200 OK
  49.  
  50. {
  51. "ipsum": "dolor",
  52. "sit": "amet",
  53. "consectetur": "adipiscing"
  54. }
  55. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement