Sure! Here's the provided text converted to Markdown format:
Universe is a collection of planetary bodies.
Assignment Details
- Create a PlanetaryBody model with the following fields:
- name (string)
- mass (float)
- radius (float)
- numberOfMoons (int)
- Create a REST API endpoint for the Planetary Body model that allows for the following operations:
- POST /planets - Create a new planet
- Data Validations:
- name cannot be empty
- mass cannot be negative
- radius cannot be negative
- numberOfMoons cannot be negative
- Return bad request on validation error
- Return 201 response code with the product id as the response on success
- Data Validations:
- POST /planets - Create a new planet
- Enable Swagger for API documentation
- Write a Dockerfile to containerize your microservice.
- Provide the Helm charts to deploy the container in Kubernetes.
- Write a README that can be used to evaluate your submission.
- Push the code to a private GitHub repo and add the username <> as collaborator for evaluating your code.
Technology Stack:
- Java 11+
- Spring Boot
- Postgres
- Docker
- Kubernetes