From d5c41b20d34cae10747272c52b324ceefeb769e9 Mon Sep 17 00:00:00 2001 From: jonathan zollinger Date: Mon, 9 Mar 2026 14:50:54 -0600 Subject: [PATCH 1/2] refactor: simplify annotations --- .../org/justserve/client/GraphQLClient.java | 35 +++++++------------ 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/core/src/main/java/org/justserve/client/GraphQLClient.java b/core/src/main/java/org/justserve/client/GraphQLClient.java index d96cad8..2f268d4 100644 --- a/core/src/main/java/org/justserve/client/GraphQLClient.java +++ b/core/src/main/java/org/justserve/client/GraphQLClient.java @@ -11,51 +11,40 @@ @Produces("application/json") @Consumes("application/graphql-response+json; charset=utf-8") @Retryable -@Client("justserve") +@Client(id = "justserve", path = "/graphql") public interface GraphQLClient { - @Post("/graphql") - @Consumes("application/graphql-response+json") + @Post GraphQLResponse executeAddProjectAttachment(@Body GraphQLAddProjectAttachmentRequest request); - @Post("/graphql") - @Consumes("application/graphql-response+json") + @Post GraphQLResponse executeAddProjectOrganization(@Body GraphQLAddProjectOrganizationRequest request); - @Post("/graphql") - @Consumes("application/graphql-response+json") + @Post GraphQLResponse executeCombinedMutationUpdateProjectAddProjectTag(@Body GraphQLCombinedMutationUpdateProjectAddProjectTagRequest request); - @Post("/graphql") - @Consumes("application/graphql-response+json") + @Post GraphQLResponse executeCreateEvent(@Body GraphQLCreateEventRequest request); - @Post("/graphql") - @Consumes("application/graphql-response+json") + @Post GraphQLResponse executeCreateProject(@Body GraphQLCreateProjectRequest request); - @Post("/graphql") - @Consumes("application/graphql-response+json") + @Post GraphQLResponse executePublishProject(@Body GraphQLPublishProjectRequest request); - @Post("/graphql") - @Consumes("application/graphql-response+json") + @Post GraphQLResponse executeSearchOrganization(@Body GraphQLSearchOrganizationRequest request); - @Post("/graphql") - @Consumes("application/graphql-response+json") + @Post GraphQLResponse executeSetProjectLocation(@Body GraphQLSetProjectLocationRequest request); - @Post("/graphql") - @Consumes("application/graphql-response+json") + @Post GraphQLResponse executeUpdateProjectAttachment(@Body GraphQLUpdateProjectAttachmentRequest request); - @Post("/graphql") - @Consumes("application/graphql-response+json") + @Post GraphQLResponse executeUpdateProjectListing(@Body GraphQLUpdateProjectListingRequest request); - @Post("/graphql") - @Consumes("application/graphql-response+json") + @Post GraphQLResponse executeUpdateProject(@Body GraphQLUpdateProjectRequest request); default GraphQLResponse addProjectAttachment(GraphQLAddProjectAttachmentVariables variables) { From 6e0b639bda568fdd65b0db8db9aaaed042d3d81e Mon Sep 17 00:00:00 2001 From: jonathan zollinger Date: Mon, 9 Mar 2026 15:31:10 -0600 Subject: [PATCH 2/2] refactor(test): make test auth client more clear --- core/src/test/resources/application-test.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/test/resources/application-test.yaml b/core/src/test/resources/application-test.yaml index a923d6d..0a25b6f 100644 --- a/core/src/test/resources/application-test.yaml +++ b/core/src/test/resources/application-test.yaml @@ -3,6 +3,8 @@ micronaut: services: justserve: url: https://stage.justserve.org +justserve: + token: ${:i-need-to-be-defined} logger: levels: io.micronaut.http.client: DEBUG