I'm very new to spring boot, and I have a simple CRUD service that has a RestRepositoryResource:
@RepositoryRestResource
public interface CatalogueOrderRepository extends JpaRepository<CatalogueOrder, Long>,
QuerydslPredicateExecutor<CatalogueOrder> {
}
I'm trying to create a custom endpoint, that can perform a pageable/sortable query for order statuses NOT equal to the provided query parameter. I attempted the following:
@GetMapping("/test")
Page<CatalogueOrder> findByOrderStatusNot(String orderStatus, Pageable page);
When I attempt to hit the endpoint /test, I get a 404 error.
Am I exposing the endpoint wrong? And if so, have I defined the method correctly for what I am trying to achieve?