Skip to content

Commit

Permalink
Implement REST API for Rick and Morty Characters
Browse files Browse the repository at this point in the history
- Added CharacterController with two endpoints:
  - GET /api/characters/random: Retrieves a random character from the database.
  - GET /api/characters/search: Searches for characters by name.

- Introduced CharacterService for business logic and data management.
- Integrated CharacterRepository for database access.
- Implemented data fetching from the external Rick and Morty API during application startup.
- Configured MySQL as the main database and H2 for testing.
- Added Swagger documentation for API endpoints.
  • Loading branch information
ShastkivRuslan committed Oct 23, 2024
1 parent f16ef97 commit b63bc88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring.datasource.url=jdbc:mysql://localhost:3306/bookstore
spring.datasource.username=root
spring.datasource.password=Mypass1121.
spring.datasource.password=pass
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

spring.jpa.hibernate.ddl-auto=validate
Expand Down

0 comments on commit b63bc88

Please sign in to comment.