Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ package {{package}};

import {{package}}.*;
import {{modelPackage}}.*;
{{#vendorExtensions.x-enable-mcp-server}}
import io.quarkiverse.mcp.server.Tool;
import io.quarkiverse.mcp.server.ToolArg;
import jakarta.enterprise.context.ApplicationScoped;
import lombok.AllArgsConstructor;
{{/vendorExtensions.x-enable-mcp-server}}

{{#operations}}{{#operation}}{{#isMultipart}}import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput;
{{/isMultipart}}{{/operation}}{{/operations}}

Expand All @@ -28,5 +35,49 @@ public interface {{classname}}Service {
Response {{nickname}}({{#isMultipart}}MultipartFormDataInput input,{{/isMultipart}}{{#allParams}}{{>serviceQueryParams}}{{>servicePathParams}}{{>serviceHeaderParams}}{{>serviceBodyParams}}{{^isMultipart}}{{>serviceFormParams}},{{/isMultipart}}{{#isMultipart}}{{^isFormParam}},{{/isFormParam}}{{/isMultipart}}{{/allParams}}SecurityContext securityContext)
throws NotFoundException;
{{/operation}}

{{#vendorExtensions.x-enable-mcp-server}}
default Response {{nickname}}(
{{#isMultipart}}MultipartFormDataInput input,{{/isMultipart}}
{{#allParams}}
{{>serviceQueryParams}}{{>servicePathParams}}{{>serviceHeaderParams}}{{>serviceBodyParams}}{{^isMultipart}}{{>serviceFormParams}}{{^last}}, {{/last}}{{/isMultipart}}{{#isMultipart}}{{^isFormParam}}{{^last}}, {{/last}}{{/isFormParam}}{{/isMultipart}}
{{/allParams}}
String context
) throws NotFoundException {
return {{nickname}}(
{{#isMultipart}}input,{{/isMultipart}}
{{#allParams}}{{paramName}},{{/allParams}}
(SecurityContext)null
);
}
{{/vendorExtensions.x-enable-mcp-server}}

}
{{#vendorExtensions.x-enable-mcp-server}}
@ApplicationScoped
@AllArgsConstructor
class Mcp{{classname}}Service {
{{classname}}Service service;

{{#operation}}
{{#vendorExtensions.x-enable-mcp-operation}}
@Tool(description = "{{summary}}")
public Response {{nickname}}(
{{#isMultipart}}MultipartFormDataInput input,{{/isMultipart}}
{{#allParams}}
@ToolArg(description = "{{description}}", required = false)
{{>serviceQueryParams}}{{>servicePathParams}}{{>serviceHeaderParams}}{{>serviceBodyParams}}{{^isMultipart}}{{>serviceFormParams}}{{^last}}, {{/last}}{{/isMultipart}}{{#isMultipart}}{{^isFormParam}}{{^last}}, {{/last}}{{/isFormParam}}{{/isMultipart}}
{{/allParams}}
String context
) throws NotFoundException {
return service.{{nickname}}(
{{#isMultipart}}input,{{/isMultipart}}
{{#allParams}}{{paramName}},{{/allParams}}
(SecurityContext)null
);
}
{{/vendorExtensions.x-enable-mcp-operation}}
{{/operation}}
}
{{/vendorExtensions.x-enable-mcp-server}}
{{/operations}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.openapitools.api.*;
import org.openapitools.model.*;

import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput;


Expand All @@ -19,7 +20,7 @@
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.17.0-SNAPSHOT")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public interface PetApiService {
Response addPet(Pet body,SecurityContext securityContext)
throws NotFoundException;
Expand All @@ -37,4 +38,6 @@ Response updatePetWithForm(Long petId,String name,String status,SecurityContext
throws NotFoundException;
Response uploadFile(MultipartFormDataInput input,Long petId,SecurityContext securityContext)
throws NotFoundException;


}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.openapitools.model.*;



import java.util.Map;
import org.openapitools.model.Order;

Expand All @@ -17,7 +18,7 @@
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.17.0-SNAPSHOT")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public interface StoreApiService {
Response deleteOrder(String orderId,SecurityContext securityContext)
throws NotFoundException;
Expand All @@ -27,4 +28,6 @@ Response getOrderById(Long orderId,SecurityContext securityContext)
throws NotFoundException;
Response placeOrder(Order body,SecurityContext securityContext)
throws NotFoundException;


}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.openapitools.model.*;



import java.util.Date;
import org.openapitools.model.User;

Expand All @@ -17,7 +18,7 @@
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.17.0-SNAPSHOT")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public interface UserApiService {
Response createUser(User body,SecurityContext securityContext)
throws NotFoundException;
Expand All @@ -35,4 +36,6 @@ Response logoutUser(SecurityContext securityContext)
throws NotFoundException;
Response updateUser(String username,User body,SecurityContext securityContext)
throws NotFoundException;


}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.openapitools.api.*;
import org.openapitools.model.*;

import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput;


Expand All @@ -19,7 +20,7 @@
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.17.0-SNAPSHOT")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public interface PetApiService {
Response addPet(Pet body,SecurityContext securityContext)
throws NotFoundException;
Expand All @@ -37,4 +38,6 @@ Response updatePetWithForm(Long petId,String name,String status,SecurityContext
throws NotFoundException;
Response uploadFile(MultipartFormDataInput input,Long petId,SecurityContext securityContext)
throws NotFoundException;


}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.openapitools.model.*;



import java.util.Map;
import org.openapitools.model.Order;

Expand All @@ -17,7 +18,7 @@
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.17.0-SNAPSHOT")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public interface StoreApiService {
Response deleteOrder(String orderId,SecurityContext securityContext)
throws NotFoundException;
Expand All @@ -27,4 +28,6 @@ Response getOrderById(Long orderId,SecurityContext securityContext)
throws NotFoundException;
Response placeOrder(Order body,SecurityContext securityContext)
throws NotFoundException;


}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.openapitools.model.*;



import java.time.OffsetDateTime;
import org.openapitools.model.User;

Expand All @@ -17,7 +18,7 @@
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.17.0-SNAPSHOT")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public interface UserApiService {
Response createUser(User body,SecurityContext securityContext)
throws NotFoundException;
Expand All @@ -35,4 +36,6 @@ Response logoutUser(SecurityContext securityContext)
throws NotFoundException;
Response updateUser(String username,User body,SecurityContext securityContext)
throws NotFoundException;


}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.openapitools.api.*;
import org.openapitools.model.*;

import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput;


Expand All @@ -19,7 +20,7 @@
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.17.0-SNAPSHOT")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public interface PetApiService {
Response addPet(Pet body,SecurityContext securityContext)
throws NotFoundException;
Expand All @@ -37,4 +38,6 @@ Response updatePetWithForm(Long petId,String name,String status,SecurityContext
throws NotFoundException;
Response uploadFile(MultipartFormDataInput input,Long petId,SecurityContext securityContext)
throws NotFoundException;


}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.openapitools.model.*;



import java.util.Map;
import org.openapitools.model.Order;

Expand All @@ -17,7 +18,7 @@
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.17.0-SNAPSHOT")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public interface StoreApiService {
Response deleteOrder(String orderId,SecurityContext securityContext)
throws NotFoundException;
Expand All @@ -27,4 +28,6 @@ Response getOrderById(Long orderId,SecurityContext securityContext)
throws NotFoundException;
Response placeOrder(Order body,SecurityContext securityContext)
throws NotFoundException;


}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.openapitools.model.*;



import org.joda.time.DateTime;
import org.openapitools.model.User;

Expand All @@ -17,7 +18,7 @@
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.17.0-SNAPSHOT")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaResteasyServerCodegen", comments = "Generator version: 7.18.0-SNAPSHOT")
public interface UserApiService {
Response createUser(User body,SecurityContext securityContext)
throws NotFoundException;
Expand All @@ -35,4 +36,6 @@ Response logoutUser(SecurityContext securityContext)
throws NotFoundException;
Response updateUser(String username,User body,SecurityContext securityContext)
throws NotFoundException;


}