Interface OpenApiSpecRepository
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<OpenApiSpec,,UUID> org.springframework.data.jpa.repository.JpaRepository<OpenApiSpec,,UUID> org.springframework.data.repository.ListCrudRepository<OpenApiSpec,,UUID> org.springframework.data.repository.ListPagingAndSortingRepository<OpenApiSpec,,UUID> org.springframework.data.repository.PagingAndSortingRepository<OpenApiSpec,,UUID> org.springframework.data.repository.query.QueryByExampleExecutor<OpenApiSpec>,org.springframework.data.repository.Repository<OpenApiSpec,UUID>
@Repository
public interface OpenApiSpecRepository
extends org.springframework.data.jpa.repository.JpaRepository<OpenApiSpec,UUID>
-
Method Summary
Modifier and TypeMethodDescriptionfindByProvider(SystemComponent provider) getApiDocVersion(SystemComponent provider) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, saveMethods inherited from interface org.springframework.data.jpa.repository.JpaRepository
deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, flush, getById, getOne, getReferenceById, saveAllAndFlush, saveAndFlushMethods inherited from interface org.springframework.data.repository.ListCrudRepository
findAll, findAllById, saveAllMethods inherited from interface org.springframework.data.repository.ListPagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAllMethods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor
count, exists, findAll, findBy, findOne
-
Method Details
-
findByProvider
-
getApiDocVersions
@Query("select s.definingSystem.name as system, s.provider.name as component, s.version as version from OpenApiSpec s") List<ApiDocVersion> getApiDocVersions() -
getApiDocVersion
@Query("select serverUrl as serverUrl, version as version, createdAt as createdAt, modifiedAt as modifiedAt from OpenApiSpec where provider = :provider") Optional<ApiDocDto> getApiDocVersion(SystemComponent provider)
-