Skip to content

svaur/NewsApiExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NewsApiExample

This application is a test for newsapi.com resources for educational purposes. 

To start, you need to run docker-compose, but before you need to generate and insert your API key before running in the Dockerfile. ENV API_KEY=<INSERT_API_KEY>

An application provides an API through Swagger: http://localhost:8080/swagger-ui/index.html. user:user

Used libraries:

  1. spring-cloud-starter-openfeign. One of the most popular API integration libraries. 
  2. spring-boot-starter-security for security features.
  3. postgresql and spring-boot-starter-data-jpa for database integration (save data for security plugin)
  4. spring-boot-starter-cache and spring-boot-starter-data-redis for redis cashe (save data for frequent requests)
  5. springdoc-openapi-ui for swagger
  6. spring-boot-starter-actuator and micrometer-registry-prometheus for prometheus integration (work in progress)