Skip to content

iarjunsk/light-4j-mongo-db-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published