Class CatResource
java.lang.Object
com.blazebit.persistence.examples.microprofile.graphql.resource.CatResource
@GraphQLApi
@Path("cats")
public class CatResource
extends Object
- Since:
- 1.6.2
- Author:
- Christian Beikov
-
Constructor Summary
Constructors Constructor Description CatResource() -
Method Summary
Modifier and Type Method Description javax.ws.rs.core.ResponseaddCat(CatUpdateView view)javax.ws.rs.core.ResponseclearCats()GraphQLRelayConnection<CatWithOwnerView>findAll(Integer first, Integer last, Integer offset, String before, String after)List<CatSimpleView>getCats()CatSimpleViewupdateCat(CatUpdateView catUpdateView)
-
Constructor Details
-
CatResource
public CatResource()
-
-
Method Details
-
updateCat
@PUT @Path("{id}") @Consumes("application/json") @Produces("application/json") public CatSimpleView updateCat(CatUpdateView catUpdateView) -
addCat
-
getCats
-
findAll
@Query public GraphQLRelayConnection<CatWithOwnerView> findAll(@Name("first") Integer first, @Name("last") Integer last, @Name("offset") Integer offset, @Name("before") String before, @Name("after") String after) -
clearCats
@DELETE public javax.ws.rs.core.Response clearCats()
-