- Simple web/REST service Spring to search anime description by his title.
- You can send GET request:
http://localhost:8080/anime?title=narutoand POST request:{ "animeName": "cowboy bebop" }
Note
Project in progress!
Basic REST service:
- Create and locally run a simple web/REST service using any open example with the Java stack: Spring (Spring Boot)/maven/gradle/Jersey/ Spring MVC.
- Add a GET endpoint that accepts input parameters as queryParams in the URL according to the variant, and returns any hard-coded result in JSON format according to the variant.
- Another endpoints for work with API.
- Unit tests
- Docker
- Spring Boot
- Spring Web
- RestTemplate
- JSON.org
- PostgreSQL
- Clone the repository:
git clone https://github.com/tkmrqq/JavaLabs.git - Open the project in your preferred Java IDE.
- Build the project using Maven or Gradle.
- Set up the database connection in the application.properties file (Use PostgreSQL).
- Run the application.
docker-compose build
docker-compose up
For further reference, please consider the following sections:
- Official Apache Maven documentation
- Spring Boot Maven Plugin Reference Guide
- Create an OCI image
- Spring Web
- Spring Data JPA
- Validation
The following guides illustrate how to use some features concretely: