Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 871 Bytes

README.md

File metadata and controls

47 lines (37 loc) · 871 Bytes

Swagger Light Java Server

Start server (with jar)

cd target
java -jar goswift-1.0-SNAPSHOT.jar

Start server (with mvn)

mvn package exec:java

Endpoints

  1. HTTP or HTTP endpoint (enable in server.yml)
https://localhost:8443/v1/pets 
http://localhost:8080/v1/pets
  1. Health Check (1.5x) https://localhost:8443/health/com.arjunsk.goswift-1.0-SNAPSHOT

  2. OAS3 (1.5x) https://localhost:8443/spec.yaml

  3. Swagger UI (1.5x) https://localhost:8443/specui.html

  4. Info (1.5x) https://localhost:8443/server/info

Done

  1. MongoDB connectivity established.
  2. Ran with proper logging config.
  3. Implemented all the endpoint.
  4. Proper Status codes.
  5. Postman Collection for testing.

TODO

  1. Error handling.
  2. Dynamic Content Loading using Json Placeholder.

GOOD TO HAVE

  1. Java Docs.
  2. Running in debug mode.
  3. Upgrade to 1.6x.