forked from loafle/openapi-generator-original
Push up-to-date generated samples
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
This commit is contained in:
parent
5b3a7b0cff
commit
715bbfab56
@ -1,3 +1,4 @@
|
|||||||
|
README.md
|
||||||
docs/AdditionalPropertiesClass.md
|
docs/AdditionalPropertiesClass.md
|
||||||
docs/AllOfWithSingleRef.md
|
docs/AllOfWithSingleRef.md
|
||||||
docs/Animal.md
|
docs/Animal.md
|
||||||
@ -53,6 +54,7 @@ docs/StoreApi.md
|
|||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
docs/User.md
|
docs/User.md
|
||||||
docs/UserApi.md
|
docs/UserApi.md
|
||||||
|
pom.xml
|
||||||
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
src/main/java/org/openapitools/client/JavaTimeFormatter.java
|
||||||
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
||||||
src/main/java/org/openapitools/client/api/AnotherFakeApi.java
|
src/main/java/org/openapitools/client/api/AnotherFakeApi.java
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
README.md
|
||||||
docs/AdditionalPropertiesClass.md
|
docs/AdditionalPropertiesClass.md
|
||||||
docs/AllOfWithSingleRef.md
|
docs/AllOfWithSingleRef.md
|
||||||
docs/Animal.md
|
docs/Animal.md
|
||||||
@ -53,6 +54,7 @@ docs/StoreApi.md
|
|||||||
docs/Tag.md
|
docs/Tag.md
|
||||||
docs/User.md
|
docs/User.md
|
||||||
docs/UserApi.md
|
docs/UserApi.md
|
||||||
|
pom.xml
|
||||||
src/main/java/org/openapitools/client/ApiClient.java
|
src/main/java/org/openapitools/client/ApiClient.java
|
||||||
src/main/java/org/openapitools/client/ApiResponse.java
|
src/main/java/org/openapitools/client/ApiResponse.java
|
||||||
src/main/java/org/openapitools/client/ApiResponseBase.java
|
src/main/java/org/openapitools/client/ApiResponseBase.java
|
||||||
|
@ -1,13 +1,22 @@
|
|||||||
|
README.md
|
||||||
|
pom.xml
|
||||||
src/main/java/org/openapitools/server/JavaTimeFormatter.java
|
src/main/java/org/openapitools/server/JavaTimeFormatter.java
|
||||||
src/main/java/org/openapitools/server/RFC3339DateFormat.java
|
src/main/java/org/openapitools/server/RFC3339DateFormat.java
|
||||||
src/main/java/org/openapitools/server/RestApplication.java
|
src/main/java/org/openapitools/server/RestApplication.java
|
||||||
src/main/java/org/openapitools/server/api/AnotherFakeService.java
|
src/main/java/org/openapitools/server/api/AnotherFakeService.java
|
||||||
|
src/main/java/org/openapitools/server/api/AnotherFakeServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/DefaultService.java
|
src/main/java/org/openapitools/server/api/DefaultService.java
|
||||||
|
src/main/java/org/openapitools/server/api/DefaultServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/FakeClassnameTags123Service.java
|
src/main/java/org/openapitools/server/api/FakeClassnameTags123Service.java
|
||||||
|
src/main/java/org/openapitools/server/api/FakeClassnameTags123ServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/FakeService.java
|
src/main/java/org/openapitools/server/api/FakeService.java
|
||||||
|
src/main/java/org/openapitools/server/api/FakeServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/PetService.java
|
src/main/java/org/openapitools/server/api/PetService.java
|
||||||
|
src/main/java/org/openapitools/server/api/PetServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/StoreService.java
|
src/main/java/org/openapitools/server/api/StoreService.java
|
||||||
|
src/main/java/org/openapitools/server/api/StoreServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/UserService.java
|
src/main/java/org/openapitools/server/api/UserService.java
|
||||||
|
src/main/java/org/openapitools/server/api/UserServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/model/AdditionalPropertiesClass.java
|
src/main/java/org/openapitools/server/model/AdditionalPropertiesClass.java
|
||||||
src/main/java/org/openapitools/server/model/AllOfWithSingleRef.java
|
src/main/java/org/openapitools/server/model/AllOfWithSingleRef.java
|
||||||
src/main/java/org/openapitools/server/model/Animal.java
|
src/main/java/org/openapitools/server/model/Animal.java
|
||||||
@ -56,6 +65,8 @@ src/main/java/org/openapitools/server/model/SingleRefType.java
|
|||||||
src/main/java/org/openapitools/server/model/SpecialModelName.java
|
src/main/java/org/openapitools/server/model/SpecialModelName.java
|
||||||
src/main/java/org/openapitools/server/model/Tag.java
|
src/main/java/org/openapitools/server/model/Tag.java
|
||||||
src/main/java/org/openapitools/server/model/User.java
|
src/main/java/org/openapitools/server/model/User.java
|
||||||
|
src/main/java/org/openapitools/server/package-info.java
|
||||||
src/main/resources/META-INF/beans.xml
|
src/main/resources/META-INF/beans.xml
|
||||||
src/main/resources/META-INF/microprofile-config.properties
|
src/main/resources/META-INF/microprofile-config.properties
|
||||||
src/main/resources/META-INF/openapi.yml
|
src/main/resources/META-INF/openapi.yml
|
||||||
|
src/main/resources/logging.properties
|
||||||
|
@ -15,7 +15,6 @@ package org.openapitools.server.api;
|
|||||||
import org.openapitools.server.model.Client;
|
import org.openapitools.server.model.Client;
|
||||||
|
|
||||||
import jakarta.ws.rs.*;
|
import jakarta.ws.rs.*;
|
||||||
import jakarta.ws.rs.core.Response;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -31,7 +30,8 @@ public class AnotherFakeServiceImpl implements AnotherFakeService {
|
|||||||
@PATCH
|
@PATCH
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
public Response call123testSpecialTags(@Valid @NotNull Client client) {
|
public Client call123testSpecialTags(@Valid @NotNull Client client) {
|
||||||
return Response.ok().entity("magic!").build();
|
Client result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ package org.openapitools.server.api;
|
|||||||
import org.openapitools.server.model.FooGetDefaultResponse;
|
import org.openapitools.server.model.FooGetDefaultResponse;
|
||||||
|
|
||||||
import jakarta.ws.rs.*;
|
import jakarta.ws.rs.*;
|
||||||
import jakarta.ws.rs.core.Response;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -30,7 +29,8 @@ public class DefaultServiceImpl implements DefaultService {
|
|||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
public Response fooGet() {
|
public FooGetDefaultResponse fooGet() {
|
||||||
return Response.ok().entity("magic!").build();
|
FooGetDefaultResponse result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ package org.openapitools.server.api;
|
|||||||
import org.openapitools.server.model.Client;
|
import org.openapitools.server.model.Client;
|
||||||
|
|
||||||
import jakarta.ws.rs.*;
|
import jakarta.ws.rs.*;
|
||||||
import jakarta.ws.rs.core.Response;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -31,7 +30,8 @@ public class FakeClassnameTags123ServiceImpl implements FakeClassnameTags123Serv
|
|||||||
@PATCH
|
@PATCH
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
public Response testClassname(@Valid @NotNull Client client) {
|
public Client testClassname(@Valid @NotNull Client client) {
|
||||||
return Response.ok().entity("magic!").build();
|
Client result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,6 @@ import org.openapitools.server.model.Pet;
|
|||||||
import org.openapitools.server.model.User;
|
import org.openapitools.server.model.User;
|
||||||
|
|
||||||
import jakarta.ws.rs.*;
|
import jakarta.ws.rs.*;
|
||||||
import jakarta.ws.rs.core.Response;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -43,119 +42,116 @@ public class FakeServiceImpl implements FakeService {
|
|||||||
@GET
|
@GET
|
||||||
@Path("/health")
|
@Path("/health")
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
public Response fakeHealthGet() {
|
public HealthCheckResult fakeHealthGet() {
|
||||||
return Response.ok().entity("magic!").build();
|
HealthCheckResult result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/http-signature-test")
|
@Path("/http-signature-test")
|
||||||
@Consumes({ "application/json", "application/xml" })
|
@Consumes({ "application/json", "application/xml" })
|
||||||
public Response fakeHttpSignatureTest(@Valid @NotNull Pet pet,@QueryParam("query_1") String query1,@HeaderParam("header_1") String header1) {
|
public void fakeHttpSignatureTest(@Valid @NotNull Pet pet,@QueryParam("query_1") String query1,@HeaderParam("header_1") String header1) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/outer/boolean")
|
@Path("/outer/boolean")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "*/*" })
|
@Produces({ "*/*" })
|
||||||
public Response fakeOuterBooleanSerialize(@Valid Boolean body) {
|
public Boolean fakeOuterBooleanSerialize(@Valid Boolean body) {
|
||||||
return Response.ok().entity("magic!").build();
|
Boolean result = new Boolean(false); // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/outer/composite")
|
@Path("/outer/composite")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "*/*" })
|
@Produces({ "*/*" })
|
||||||
public Response fakeOuterCompositeSerialize(@Valid OuterComposite outerComposite) {
|
public OuterComposite fakeOuterCompositeSerialize(@Valid OuterComposite outerComposite) {
|
||||||
return Response.ok().entity("magic!").build();
|
OuterComposite result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/outer/number")
|
@Path("/outer/number")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "*/*" })
|
@Produces({ "*/*" })
|
||||||
public Response fakeOuterNumberSerialize(@Valid BigDecimal body) {
|
public BigDecimal fakeOuterNumberSerialize(@Valid BigDecimal body) {
|
||||||
return Response.ok().entity("magic!").build();
|
BigDecimal result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/outer/string")
|
@Path("/outer/string")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "*/*" })
|
@Produces({ "*/*" })
|
||||||
public Response fakeOuterStringSerialize(@Valid String body) {
|
public String fakeOuterStringSerialize(@Valid String body) {
|
||||||
return Response.ok().entity("magic!").build();
|
String result = ""; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/property/enum-int")
|
@Path("/property/enum-int")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "*/*" })
|
@Produces({ "*/*" })
|
||||||
public Response fakePropertyEnumIntegerSerialize(@Valid @NotNull OuterObjectWithEnumProperty outerObjectWithEnumProperty) {
|
public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@Valid @NotNull OuterObjectWithEnumProperty outerObjectWithEnumProperty) {
|
||||||
return Response.ok().entity("magic!").build();
|
OuterObjectWithEnumProperty result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/body-with-binary")
|
@Path("/body-with-binary")
|
||||||
@Consumes({ "image/png" })
|
@Consumes({ "image/png" })
|
||||||
public Response testBodyWithBinary(@Valid File body) {
|
public void testBodyWithBinary(@Valid File body) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/body-with-file-schema")
|
@Path("/body-with-file-schema")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
public Response testBodyWithFileSchema(@Valid @NotNull FileSchemaTestClass fileSchemaTestClass) {
|
public void testBodyWithFileSchema(@Valid @NotNull FileSchemaTestClass fileSchemaTestClass) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/body-with-query-params")
|
@Path("/body-with-query-params")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
public Response testBodyWithQueryParams(@QueryParam("query") @NotNull String query,@Valid @NotNull User user) {
|
public void testBodyWithQueryParams(@QueryParam("query") @NotNull String query,@Valid @NotNull User user) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PATCH
|
@PATCH
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
public Response testClientModel(@Valid @NotNull Client client) {
|
public Client testClientModel(@Valid @NotNull Client client) {
|
||||||
return Response.ok().entity("magic!").build();
|
Client result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Consumes({ "application/x-www-form-urlencoded" })
|
@Consumes({ "application/x-www-form-urlencoded" })
|
||||||
public Response testEndpointParameters(@FormParam(value = "number") BigDecimal number,@FormParam(value = "double") Double _double,@FormParam(value = "pattern_without_delimiter") String patternWithoutDelimiter,@FormParam(value = "byte") byte[] _byte,@FormParam(value = "integer") Integer integer,@FormParam(value = "int32") Integer int32,@FormParam(value = "int64") Long int64,@FormParam(value = "float") Float _float,@FormParam(value = "string") String string, @FormParam(value = "binary") InputStream binaryInputStream,@FormParam(value = "date") LocalDate date,@FormParam(value = "dateTime") OffsetDateTime dateTime,@FormParam(value = "password") String password,@FormParam(value = "callback") String paramCallback) {
|
public void testEndpointParameters(@FormParam(value = "number") BigDecimal number,@FormParam(value = "double") Double _double,@FormParam(value = "pattern_without_delimiter") String patternWithoutDelimiter,@FormParam(value = "byte") byte[] _byte,@FormParam(value = "integer") Integer integer,@FormParam(value = "int32") Integer int32,@FormParam(value = "int64") Long int64,@FormParam(value = "float") Float _float,@FormParam(value = "string") String string, @FormParam(value = "binary") InputStream binaryInputStream,@FormParam(value = "date") LocalDate date,@FormParam(value = "dateTime") OffsetDateTime dateTime,@FormParam(value = "password") String password,@FormParam(value = "callback") String paramCallback) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Consumes({ "application/x-www-form-urlencoded" })
|
@Consumes({ "application/x-www-form-urlencoded" })
|
||||||
public Response testEnumParameters(@HeaderParam("enum_header_string_array") List<String> enumHeaderStringArray,@HeaderParam("enum_header_string") @DefaultValue("-efg") String enumHeaderString,@QueryParam("enum_query_string_array") List<String> enumQueryStringArray,@QueryParam("enum_query_string") @DefaultValue("-efg") String enumQueryString,@QueryParam("enum_query_integer") Integer enumQueryInteger,@QueryParam("enum_query_double") Double enumQueryDouble,@QueryParam("enum_query_model_array") List<EnumClass> enumQueryModelArray,@FormParam(value = "enum_form_string_array") List<String> enumFormStringArray,@FormParam(value = "enum_form_string") String enumFormString) {
|
public void testEnumParameters(@HeaderParam("enum_header_string_array") List<String> enumHeaderStringArray,@HeaderParam("enum_header_string") @DefaultValue("-efg") String enumHeaderString,@QueryParam("enum_query_string_array") List<String> enumQueryStringArray,@QueryParam("enum_query_string") @DefaultValue("-efg") String enumQueryString,@QueryParam("enum_query_integer") Integer enumQueryInteger,@QueryParam("enum_query_double") Double enumQueryDouble,@QueryParam("enum_query_model_array") List<EnumClass> enumQueryModelArray,@FormParam(value = "enum_form_string_array") List<String> enumFormStringArray,@FormParam(value = "enum_form_string") String enumFormString) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
public Response testGroupParameters(@QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@HeaderParam("required_boolean_group") @NotNull Boolean requiredBooleanGroup,@QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@QueryParam("string_group") Integer stringGroup,@HeaderParam("boolean_group") Boolean booleanGroup,@QueryParam("int64_group") Long int64Group) {
|
public void testGroupParameters(@QueryParam("required_string_group") @NotNull Integer requiredStringGroup,@HeaderParam("required_boolean_group") @NotNull Boolean requiredBooleanGroup,@QueryParam("required_int64_group") @NotNull Long requiredInt64Group,@QueryParam("string_group") Integer stringGroup,@HeaderParam("boolean_group") Boolean booleanGroup,@QueryParam("int64_group") Long int64Group) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/inline-additionalProperties")
|
@Path("/inline-additionalProperties")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
public Response testInlineAdditionalProperties(@Valid @NotNull Map<String, String> requestBody) {
|
public void testInlineAdditionalProperties(@Valid @NotNull Map<String, String> requestBody) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/jsonFormData")
|
@Path("/jsonFormData")
|
||||||
@Consumes({ "application/x-www-form-urlencoded" })
|
@Consumes({ "application/x-www-form-urlencoded" })
|
||||||
public Response testJsonFormData(@FormParam(value = "param") String param,@FormParam(value = "param2") String param2) {
|
public void testJsonFormData(@FormParam(value = "param") String param,@FormParam(value = "param2") String param2) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/test-query-parameters")
|
@Path("/test-query-parameters")
|
||||||
public Response testQueryParameterCollectionFormat(@QueryParam("pipe") @NotNull List<String> pipe,@QueryParam("ioutil") @NotNull List<String> ioutil,@QueryParam("http") @NotNull List<String> http,@QueryParam("url") @NotNull List<String> url,@QueryParam("context") @NotNull List<String> context,@QueryParam("allowEmpty") @NotNull String allowEmpty,@QueryParam("language") Map<String, String> language) {
|
public void testQueryParameterCollectionFormat(@QueryParam("pipe") @NotNull List<String> pipe,@QueryParam("ioutil") @NotNull List<String> ioutil,@QueryParam("http") @NotNull List<String> http,@QueryParam("url") @NotNull List<String> url,@QueryParam("context") @NotNull List<String> context,@QueryParam("allowEmpty") @NotNull String allowEmpty,@QueryParam("language") Map<String, String> language) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,6 @@ import org.openapitools.server.model.Pet;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import jakarta.ws.rs.*;
|
import jakarta.ws.rs.*;
|
||||||
import jakarta.ws.rs.core.Response;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -34,64 +33,65 @@ public class PetServiceImpl implements PetService {
|
|||||||
@POST
|
@POST
|
||||||
@Path("/pet")
|
@Path("/pet")
|
||||||
@Consumes({ "application/json", "application/xml" })
|
@Consumes({ "application/json", "application/xml" })
|
||||||
public Response addPet(@Valid @NotNull Pet pet) {
|
public void addPet(@Valid @NotNull Pet pet) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
@Path("/pet/{petId}")
|
@Path("/pet/{petId}")
|
||||||
public Response deletePet(@PathParam("petId") Long petId,@HeaderParam("api_key") String apiKey) {
|
public void deletePet(@PathParam("petId") Long petId,@HeaderParam("api_key") String apiKey) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/pet/findByStatus")
|
@Path("/pet/findByStatus")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
public Response findPetsByStatus(@QueryParam("status") @NotNull List<String> status) {
|
public List<Pet> findPetsByStatus(@QueryParam("status") @NotNull List<String> status) {
|
||||||
return Response.ok().entity("magic!").build();
|
List<Pet> result = java.util.Collections.emptyList(); // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/pet/findByTags")
|
@Path("/pet/findByTags")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
public Response findPetsByTags(@QueryParam("tags") @NotNull Set<String> tags) {
|
public Set<Pet> findPetsByTags(@QueryParam("tags") @NotNull Set<String> tags) {
|
||||||
return Response.ok().entity("magic!").build();
|
Set<Pet> result = java.util.Collections.emptySet(); // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/pet/{petId}")
|
@Path("/pet/{petId}")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
public Response getPetById(@PathParam("petId") Long petId) {
|
public Pet getPetById(@PathParam("petId") Long petId) {
|
||||||
return Response.ok().entity("magic!").build();
|
Pet result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/pet")
|
@Path("/pet")
|
||||||
@Consumes({ "application/json", "application/xml" })
|
@Consumes({ "application/json", "application/xml" })
|
||||||
public Response updatePet(@Valid @NotNull Pet pet) {
|
public void updatePet(@Valid @NotNull Pet pet) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/pet/{petId}")
|
@Path("/pet/{petId}")
|
||||||
@Consumes({ "application/x-www-form-urlencoded" })
|
@Consumes({ "application/x-www-form-urlencoded" })
|
||||||
public Response updatePetWithForm(@PathParam("petId") Long petId,@FormParam(value = "name") String name,@FormParam(value = "status") String status) {
|
public void updatePetWithForm(@PathParam("petId") Long petId,@FormParam(value = "name") String name,@FormParam(value = "status") String status) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/pet/{petId}/uploadImage")
|
@Path("/pet/{petId}/uploadImage")
|
||||||
@Consumes({ "multipart/form-data" })
|
@Consumes({ "multipart/form-data" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
public Response uploadFile(@PathParam("petId") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata, @FormParam(value = "file") InputStream _fileInputStream) {
|
public ModelApiResponse uploadFile(@PathParam("petId") Long petId,@FormParam(value = "additionalMetadata") String additionalMetadata, @FormParam(value = "file") InputStream _fileInputStream) {
|
||||||
return Response.ok().entity("magic!").build();
|
ModelApiResponse result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/fake/{petId}/uploadImageWithRequiredFile")
|
@Path("/fake/{petId}/uploadImageWithRequiredFile")
|
||||||
@Consumes({ "multipart/form-data" })
|
@Consumes({ "multipart/form-data" })
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
public Response uploadFileWithRequiredFile(@PathParam("petId") Long petId, @FormParam(value = "requiredFile") InputStream requiredFileInputStream,@FormParam(value = "additionalMetadata") String additionalMetadata) {
|
public ModelApiResponse uploadFileWithRequiredFile(@PathParam("petId") Long petId, @FormParam(value = "requiredFile") InputStream requiredFileInputStream,@FormParam(value = "additionalMetadata") String additionalMetadata) {
|
||||||
return Response.ok().entity("magic!").build();
|
ModelApiResponse result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,6 @@ import java.util.Map;
|
|||||||
import org.openapitools.server.model.Order;
|
import org.openapitools.server.model.Order;
|
||||||
|
|
||||||
import jakarta.ws.rs.*;
|
import jakarta.ws.rs.*;
|
||||||
import jakarta.ws.rs.core.Response;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -31,29 +30,31 @@ public class StoreServiceImpl implements StoreService {
|
|||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
@Path("/order/{order_id}")
|
@Path("/order/{order_id}")
|
||||||
public Response deleteOrder(@PathParam("order_id") String orderId) {
|
public void deleteOrder(@PathParam("order_id") String orderId) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/inventory")
|
@Path("/inventory")
|
||||||
@Produces({ "application/json" })
|
@Produces({ "application/json" })
|
||||||
public Response getInventory() {
|
public Map<String, Integer> getInventory() {
|
||||||
return Response.ok().entity("magic!").build();
|
Map<String, Integer> result = java.util.Collections.emptyMap(); // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/order/{order_id}")
|
@Path("/order/{order_id}")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
public Response getOrderById(@PathParam("order_id") @Min(1L) @Max(5L) Long orderId) {
|
public Order getOrderById(@PathParam("order_id") @Min(1L) @Max(5L) Long orderId) {
|
||||||
return Response.ok().entity("magic!").build();
|
Order result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/order")
|
@Path("/order")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
public Response placeOrder(@Valid @NotNull Order order) {
|
public Order placeOrder(@Valid @NotNull Order order) {
|
||||||
return Response.ok().entity("magic!").build();
|
Order result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@ import java.time.OffsetDateTime;
|
|||||||
import org.openapitools.server.model.User;
|
import org.openapitools.server.model.User;
|
||||||
|
|
||||||
import jakarta.ws.rs.*;
|
import jakarta.ws.rs.*;
|
||||||
import jakarta.ws.rs.core.Response;
|
|
||||||
|
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -32,54 +31,50 @@ public class UserServiceImpl implements UserService {
|
|||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
public Response createUser(@Valid @NotNull User user) {
|
public void createUser(@Valid @NotNull User user) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/createWithArray")
|
@Path("/createWithArray")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
public Response createUsersWithArrayInput(@Valid @NotNull List<User> user) {
|
public void createUsersWithArrayInput(@Valid @NotNull List<User> user) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
@Path("/createWithList")
|
@Path("/createWithList")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
public Response createUsersWithListInput(@Valid @NotNull List<User> user) {
|
public void createUsersWithListInput(@Valid @NotNull List<User> user) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
@Path("/{username}")
|
@Path("/{username}")
|
||||||
public Response deleteUser(@PathParam("username") String username) {
|
public void deleteUser(@PathParam("username") String username) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/{username}")
|
@Path("/{username}")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
public Response getUserByName(@PathParam("username") String username) {
|
public User getUserByName(@PathParam("username") String username) {
|
||||||
return Response.ok().entity("magic!").build();
|
User result = null; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/login")
|
@Path("/login")
|
||||||
@Produces({ "application/xml", "application/json" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
public Response loginUser(@QueryParam("username") @NotNull String username,@QueryParam("password") @NotNull String password) {
|
public String loginUser(@QueryParam("username") @NotNull String username,@QueryParam("password") @NotNull String password) {
|
||||||
return Response.ok().entity("magic!").build();
|
String result = ""; // Replace with correct business logic.
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@GET
|
@GET
|
||||||
@Path("/logout")
|
@Path("/logout")
|
||||||
public Response logoutUser() {
|
public void logoutUser() {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/{username}")
|
@Path("/{username}")
|
||||||
@Consumes({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
public Response updateUser(@PathParam("username") String username,@Valid @NotNull User user) {
|
public void updateUser(@PathParam("username") String username,@Valid @NotNull User user) {
|
||||||
return Response.ok().entity("magic!").build();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,12 +1,22 @@
|
|||||||
|
README.md
|
||||||
|
pom.xml
|
||||||
|
src/main/java/org/openapitools/server/Main.java
|
||||||
src/main/java/org/openapitools/server/RFC3339DateFormat.java
|
src/main/java/org/openapitools/server/RFC3339DateFormat.java
|
||||||
src/main/java/org/openapitools/server/api/AnotherFakeService.java
|
src/main/java/org/openapitools/server/api/AnotherFakeService.java
|
||||||
|
src/main/java/org/openapitools/server/api/AnotherFakeServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/DefaultService.java
|
src/main/java/org/openapitools/server/api/DefaultService.java
|
||||||
|
src/main/java/org/openapitools/server/api/DefaultServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/FakeClassnameTags123Service.java
|
src/main/java/org/openapitools/server/api/FakeClassnameTags123Service.java
|
||||||
|
src/main/java/org/openapitools/server/api/FakeClassnameTags123ServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/FakeService.java
|
src/main/java/org/openapitools/server/api/FakeService.java
|
||||||
|
src/main/java/org/openapitools/server/api/FakeServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/JsonProvider.java
|
src/main/java/org/openapitools/server/api/JsonProvider.java
|
||||||
src/main/java/org/openapitools/server/api/PetService.java
|
src/main/java/org/openapitools/server/api/PetService.java
|
||||||
|
src/main/java/org/openapitools/server/api/PetServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/StoreService.java
|
src/main/java/org/openapitools/server/api/StoreService.java
|
||||||
|
src/main/java/org/openapitools/server/api/StoreServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/UserService.java
|
src/main/java/org/openapitools/server/api/UserService.java
|
||||||
|
src/main/java/org/openapitools/server/api/UserServiceImpl.java
|
||||||
src/main/java/org/openapitools/server/api/ValidatorUtils.java
|
src/main/java/org/openapitools/server/api/ValidatorUtils.java
|
||||||
src/main/java/org/openapitools/server/model/AdditionalPropertiesClass.java
|
src/main/java/org/openapitools/server/model/AdditionalPropertiesClass.java
|
||||||
src/main/java/org/openapitools/server/model/AllOfWithSingleRef.java
|
src/main/java/org/openapitools/server/model/AllOfWithSingleRef.java
|
||||||
@ -56,4 +66,8 @@ src/main/java/org/openapitools/server/model/SingleRefType.java
|
|||||||
src/main/java/org/openapitools/server/model/SpecialModelName.java
|
src/main/java/org/openapitools/server/model/SpecialModelName.java
|
||||||
src/main/java/org/openapitools/server/model/Tag.java
|
src/main/java/org/openapitools/server/model/Tag.java
|
||||||
src/main/java/org/openapitools/server/model/User.java
|
src/main/java/org/openapitools/server/model/User.java
|
||||||
|
src/main/java/org/openapitools/server/package-info.java
|
||||||
src/main/resources/META-INF/openapi.yml
|
src/main/resources/META-INF/openapi.yml
|
||||||
|
src/main/resources/application.yaml
|
||||||
|
src/main/resources/logging.properties
|
||||||
|
src/test/java/org/openapitools/server/MainTest.java
|
||||||
|
Loading…
x
Reference in New Issue
Block a user