A lightweight Spring Cloud OpenFeign client for integrating with the Clematis Storage API service.
- Type-safe Feign client with DTOs
- Unit and integration tests (MockWebServer)
- Dockerized runtime support
- Reusable Spring Boot 3 library (Java 21+)
- Support for Spring Boot 2 (Java 17+)
- CI/CD via GitHub Actions
Add as dependency (replace coordinates if you publish elsewhere):
implementation 'org.clematis.storage:storage-api-client:1.0.3.0'or
implementation 'org.clematis.storage:storage-api-client-spring2:1.0.3.0'In your application.yml:
storage:
api:
url: https://api.yourdomain.comThen inject and use:
@Service
@RequiredArgsConstructor
public class FileService {
private final StorageApiClient storageApiClient;
public List<FileMetadata> getFiles() {
return storageApiClient.getAllFiles();
}
}./gradlew test