Skip to content

Commit 0c4cc10

Browse files
committed
Merge pull request #1882 from scottrw93/master
Fix for Jaxrs file upload missing param in service class
2 parents 56f8d5f + 52df082 commit 0c4cc10

28 files changed

+218
-27
lines changed

modules/swagger-codegen/src/main/resources/JavaJaxRS/jersey1_18/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class {{classname}} {
5151

5252
public Response {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}},{{/allParams}}@Context SecurityContext securityContext)
5353
throws NotFoundException {
54-
return delegate.{{nickname}}({{#allParams}}{{#isFile}}fileDetail{{/isFile}}{{^isFile}}{{paramName}}{{/isFile}},{{/allParams}}securityContext);
54+
return delegate.{{nickname}}({{#allParams}}{{#isFile}}inputStream, fileDetail{{/isFile}}{{^isFile}}{{paramName}}{{/isFile}},{{/allParams}}securityContext);
5555
}
5656
{{/operation}}
5757
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{#isFormParam}}{{#notFile}}{{{dataType}}} {{paramName}}{{/notFile}}{{#isFile}}FormDataContentDisposition fileDetail{{/isFile}}{{/isFormParam}}
1+
{{#isFormParam}}{{#notFile}}{{{dataType}}} {{paramName}}{{/notFile}}{{#isFile}}InputStream inputStream, FormDataContentDisposition fileDetail{{/isFile}}{{/isFormParam}}

samples/server/petstore/jaxrs/src/gen/java/io/swagger/api/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.swagger.api;
22

3-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
3+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
44
public class ApiException extends Exception{
55
private int code;
66
public ApiException (int code, String msg) {

samples/server/petstore/jaxrs/src/gen/java/io/swagger/api/ApiOriginFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import javax.servlet.*;
66
import javax.servlet.http.HttpServletResponse;
77

8-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
8+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
99
public class ApiOriginFilter implements javax.servlet.Filter {
1010
public void doFilter(ServletRequest request, ServletResponse response,
1111
FilterChain chain) throws IOException, ServletException {

samples/server/petstore/jaxrs/src/gen/java/io/swagger/api/ApiResponseMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import javax.xml.bind.annotation.XmlTransient;
44

55
@javax.xml.bind.annotation.XmlRootElement
6-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
6+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
77
public class ApiResponseMessage {
88
public static final int ERROR = 1;
99
public static final int WARNING = 2;

samples/server/petstore/jaxrs/src/gen/java/io/swagger/api/NotFoundException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package io.swagger.api;
22

3-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
3+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
44
public class NotFoundException extends ApiException {
55
private int code;
66
public NotFoundException (int code, String msg) {

samples/server/petstore/jaxrs/src/gen/java/io/swagger/api/PetApi.java

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
@io.swagger.annotations.Api(description = "the pet API")
31-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
31+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
3232
public class PetApi {
3333
private final PetApiService delegate = PetApiServiceFactory.getPetApi();
3434

@@ -169,13 +169,31 @@ public Response deletePet(@ApiParam(value = "Pet id to delete",required=true) @P
169169
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
170170
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
171171
})
172-
}, tags={ "pet" })
172+
}, tags={ "pet", })
173173
@io.swagger.annotations.ApiResponses(value = {
174174
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
175175

176176
public Response uploadFile(@ApiParam(value = "ID of pet to update",required=true) @PathParam("petId") Long petId,@ApiParam(value = "Additional data to pass to server")@FormParam("additionalMetadata") String additionalMetadata, @FormDataParam("file") InputStream inputStream,
177177
@FormDataParam("file") FormDataContentDisposition fileDetail,@Context SecurityContext securityContext)
178178
throws NotFoundException {
179-
return delegate.uploadFile(petId,additionalMetadata,fileDetail,securityContext);
179+
return delegate.uploadFile(petId,additionalMetadata,inputStream, fileDetail,securityContext);
180+
}
181+
@GET
182+
@Path("/{petId}?testing_byte_array=true")
183+
184+
@Produces({ "application/json", "application/xml" })
185+
@io.swagger.annotations.ApiOperation(value = "Fake endpoint to test byte array return by 'Find pet by ID'", notes = "Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions", response = byte[].class, authorizations = {
186+
@io.swagger.annotations.Authorization(value = "api_key")
187+
}, tags={ "pet" })
188+
@io.swagger.annotations.ApiResponses(value = {
189+
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = byte[].class),
190+
191+
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = byte[].class),
192+
193+
@io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = byte[].class) })
194+
195+
public Response getPetByIdWithByteArray(@ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathParam("petId") Long petId,@Context SecurityContext securityContext)
196+
throws NotFoundException {
197+
return delegate.getPetByIdWithByteArray(petId,securityContext);
180198
}
181199
}

samples/server/petstore/jaxrs/src/gen/java/io/swagger/api/PetApiService.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import javax.ws.rs.core.Response;
2020
import javax.ws.rs.core.SecurityContext;
2121

22-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
22+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
2323
public abstract class PetApiService {
2424

2525
public abstract Response updatePet(Pet body,SecurityContext securityContext)
@@ -43,7 +43,10 @@ public abstract Response updatePetWithForm(String petId,String name,String statu
4343
public abstract Response deletePet(Long petId,String apiKey,SecurityContext securityContext)
4444
throws NotFoundException;
4545

46-
public abstract Response uploadFile(Long petId,String additionalMetadata,FormDataContentDisposition fileDetail,SecurityContext securityContext)
46+
public abstract Response uploadFile(Long petId,String additionalMetadata,InputStream inputStream, FormDataContentDisposition fileDetail,SecurityContext securityContext)
47+
throws NotFoundException;
48+
49+
public abstract Response getPetByIdWithByteArray(Long petId,SecurityContext securityContext)
4750
throws NotFoundException;
4851

4952
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
package io.swagger.api;
2+
3+
import io.swagger.model.*;
4+
import io.swagger.api.PettestingByteArraytrueApiService;
5+
import io.swagger.api.factories.PettestingByteArraytrueApiServiceFactory;
6+
7+
import io.swagger.annotations.ApiParam;
8+
9+
import com.sun.jersey.multipart.FormDataParam;
10+
11+
12+
import java.util.List;
13+
import io.swagger.api.NotFoundException;
14+
15+
import java.io.InputStream;
16+
17+
import com.sun.jersey.core.header.FormDataContentDisposition;
18+
import com.sun.jersey.multipart.FormDataParam;
19+
20+
import javax.ws.rs.core.Context;
21+
import javax.ws.rs.core.Response;
22+
import javax.ws.rs.core.SecurityContext;
23+
import javax.ws.rs.*;
24+
25+
@Path("/pet?testing_byte_array=true")
26+
27+
28+
@io.swagger.annotations.Api(description = "the pet?testing_byte_array=true API")
29+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
30+
public class PettestingByteArraytrueApi {
31+
private final PettestingByteArraytrueApiService delegate = PettestingByteArraytrueApiServiceFactory.getPettestingByteArraytrueApi();
32+
33+
@POST
34+
35+
@Consumes({ "application/json", "application/xml" })
36+
@Produces({ "application/json", "application/xml" })
37+
@io.swagger.annotations.ApiOperation(value = "Fake endpoint to test byte array in body parameter for adding a new pet to the store", notes = "", response = Void.class, authorizations = {
38+
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
39+
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
40+
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
41+
})
42+
}, tags={ "pet" })
43+
@io.swagger.annotations.ApiResponses(value = {
44+
@io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = Void.class) })
45+
46+
public Response addPetUsingByteArray(@ApiParam(value = "Pet object in the form of byte array" ) byte[] body,@Context SecurityContext securityContext)
47+
throws NotFoundException {
48+
return delegate.addPetUsingByteArray(body,securityContext);
49+
}
50+
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package io.swagger.api;
2+
3+
import io.swagger.api.*;
4+
import io.swagger.model.*;
5+
6+
import com.sun.jersey.multipart.FormDataParam;
7+
8+
9+
import java.util.List;
10+
import io.swagger.api.NotFoundException;
11+
12+
import java.io.InputStream;
13+
14+
import com.sun.jersey.core.header.FormDataContentDisposition;
15+
import com.sun.jersey.multipart.FormDataParam;
16+
17+
import javax.ws.rs.core.Response;
18+
import javax.ws.rs.core.SecurityContext;
19+
20+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
21+
public abstract class PettestingByteArraytrueApiService {
22+
23+
public abstract Response addPetUsingByteArray(byte[] body,SecurityContext securityContext)
24+
throws NotFoundException;
25+
26+
}

samples/server/petstore/jaxrs/src/gen/java/io/swagger/api/StoreApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
@io.swagger.annotations.Api(description = "the store API")
31-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
31+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
3232
public class StoreApi {
3333
private final StoreApiService delegate = StoreApiServiceFactory.getStoreApi();
3434

samples/server/petstore/jaxrs/src/gen/java/io/swagger/api/StoreApiService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import javax.ws.rs.core.Response;
2020
import javax.ws.rs.core.SecurityContext;
2121

22-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
22+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
2323
public abstract class StoreApiService {
2424

2525
public abstract Response getInventory(SecurityContext securityContext)
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
package io.swagger.api;
2+
3+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
4+
public class StringUtil {
5+
/**
6+
* Check if the given array contains the given value (with case-insensitive comparison).
7+
*
8+
* @param array The array
9+
* @param value The value to search
10+
* @return true if the array contains the value
11+
*/
12+
public static boolean containsIgnoreCase(String[] array, String value) {
13+
for (String str : array) {
14+
if (value == null && str == null) return true;
15+
if (value != null && value.equalsIgnoreCase(str)) return true;
16+
}
17+
return false;
18+
}
19+
20+
/**
21+
* Join an array of strings with the given separator.
22+
* <p>
23+
* Note: This might be replaced by utility method from commons-lang or guava someday
24+
* if one of those libraries is added as dependency.
25+
* </p>
26+
*
27+
* @param array The array of strings
28+
* @param separator The separator
29+
* @return the resulting string
30+
*/
31+
public static String join(String[] array, String separator) {
32+
int len = array.length;
33+
if (len == 0) return "";
34+
35+
StringBuilder out = new StringBuilder();
36+
out.append(array[0]);
37+
for (int i = 1; i < len; i++) {
38+
out.append(separator).append(array[i]);
39+
}
40+
return out.toString();
41+
}
42+
}

samples/server/petstore/jaxrs/src/gen/java/io/swagger/api/UserApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929

3030
@io.swagger.annotations.Api(description = "the user API")
31-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
31+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
3232
public class UserApi {
3333
private final UserApiService delegate = UserApiServiceFactory.getUserApi();
3434

samples/server/petstore/jaxrs/src/gen/java/io/swagger/api/UserApiService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import javax.ws.rs.core.Response;
2020
import javax.ws.rs.core.SecurityContext;
2121

22-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
22+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
2323
public abstract class UserApiService {
2424

2525
public abstract Response createUser(User body,SecurityContext securityContext)

samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Category.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212

13-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
13+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
1414
public class Category {
1515

1616
private Long id = null;

samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Order.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313

14-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
14+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
1515
public class Order {
1616

1717
private Long id = null;

samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Pet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515

16-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
16+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
1717
public class Pet {
1818

1919
private Long id = null;

samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/Tag.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212

13-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
13+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
1414
public class Tag {
1515

1616
private Long id = null;

samples/server/petstore/jaxrs/src/gen/java/io/swagger/model/User.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212

13-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-05T15:00:28.637+08:00")
13+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
1414
public class User {
1515

1616
private Long id = null;

samples/server/petstore/jaxrs/src/main/java/io/swagger/api/factories/PetApiServiceFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import io.swagger.api.PetApiService;
44
import io.swagger.api.impl.PetApiServiceImpl;
55

6-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2015-11-05T22:31:25.130-08:00")
6+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
77
public class PetApiServiceFactory {
88

99
private final static PetApiService service = new PetApiServiceImpl();
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package io.swagger.api.factories;
2+
3+
import io.swagger.api.PettestingByteArraytrueApiService;
4+
import io.swagger.api.impl.PettestingByteArraytrueApiServiceImpl;
5+
6+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
7+
public class PettestingByteArraytrueApiServiceFactory {
8+
9+
private final static PettestingByteArraytrueApiService service = new PettestingByteArraytrueApiServiceImpl();
10+
11+
public static PettestingByteArraytrueApiService getPettestingByteArraytrueApi()
12+
{
13+
return service;
14+
}
15+
}

samples/server/petstore/jaxrs/src/main/java/io/swagger/api/factories/StoreApiServiceFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import io.swagger.api.StoreApiService;
44
import io.swagger.api.impl.StoreApiServiceImpl;
55

6-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2015-11-05T22:31:25.130-08:00")
6+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
77
public class StoreApiServiceFactory {
88

99
private final static StoreApiService service = new StoreApiServiceImpl();

samples/server/petstore/jaxrs/src/main/java/io/swagger/api/factories/UserApiServiceFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import io.swagger.api.UserApiService;
44
import io.swagger.api.impl.UserApiServiceImpl;
55

6-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2015-11-05T22:31:25.130-08:00")
6+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
77
public class UserApiServiceFactory {
88

99
private final static UserApiService service = new UserApiServiceImpl();

samples/server/petstore/jaxrs/src/main/java/io/swagger/api/impl/PetApiServiceImpl.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import javax.ws.rs.core.Response;
2020
import javax.ws.rs.core.SecurityContext;
2121

22-
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2015-11-23T10:25:42.314Z")
22+
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JaxRSServerCodegen", date = "2016-01-14T21:37:36.074Z")
2323
public class PetApiServiceImpl extends PetApiService {
2424

2525
@Override
@@ -72,7 +72,14 @@ public Response deletePet(Long petId,String apiKey,SecurityContext securityConte
7272
}
7373

7474
@Override
75-
public Response uploadFile(Long petId,String additionalMetadata,FormDataContentDisposition fileDetail,SecurityContext securityContext)
75+
public Response uploadFile(Long petId,String additionalMetadata,InputStream inputStream, FormDataContentDisposition fileDetail,SecurityContext securityContext)
76+
throws NotFoundException {
77+
// do some magic!
78+
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
79+
}
80+
81+
@Override
82+
public Response getPetByIdWithByteArray(Long petId,SecurityContext securityContext)
7683
throws NotFoundException {
7784
// do some magic!
7885
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();

0 commit comments

Comments
 (0)