forked from loafle/openapi-generator-original
changed default behavior for inflector to have unimplemented handlers
This commit is contained in:
@@ -16,10 +16,18 @@ import {{modelPackage}}.*;
|
||||
{{>generatedAnnotation}}
|
||||
{{#operations}}
|
||||
public class {{classname}} {
|
||||
/**
|
||||
* Uncomment and implement as you see fit. These operations will map
|
||||
* Direclty to operation calls from the routing logic. Because the inflector
|
||||
* Code allows you to implement logic incrementally, they are disabled.
|
||||
**/
|
||||
|
||||
{{#operation}}
|
||||
/*
|
||||
public ResponseContext {{nickname}}(RequestContext request {{#allParams}}, {{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{/allParams}}) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
{{/operation}}
|
||||
}
|
||||
|
||||
@@ -13,39 +13,61 @@ import io.swagger.model.*;
|
||||
import io.swagger.model.Pet;
|
||||
import java.io.File;
|
||||
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T00:32:07.279-07:00")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T17:25:49.737-07:00")
|
||||
public class PetController {
|
||||
/**
|
||||
* Uncomment and implement as you see fit. These operations will map
|
||||
* Direclty to operation calls from the routing logic. Because the inflector
|
||||
* Code allows you to implement logic incrementally, they are disabled.
|
||||
**/
|
||||
|
||||
/*
|
||||
public ResponseContext updatePet(RequestContext request , Pet body) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext addPet(RequestContext request , Pet body) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext findPetsByStatus(RequestContext request , List<String> status) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext findPetsByTags(RequestContext request , List<String> tags) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext getPetById(RequestContext request , Long petId) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext updatePetWithForm(RequestContext request , String petId, String name, String status) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext deletePet(RequestContext request , Long petId, String apiKey) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext uploadFile(RequestContext request , Long petId, String additionalMetadata, FormDataContentDisposition fileDetail) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -13,23 +13,37 @@ import io.swagger.model.*;
|
||||
import java.util.Map;
|
||||
import io.swagger.model.Order;
|
||||
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T00:32:07.279-07:00")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T17:25:49.737-07:00")
|
||||
public class StoreController {
|
||||
/**
|
||||
* Uncomment and implement as you see fit. These operations will map
|
||||
* Direclty to operation calls from the routing logic. Because the inflector
|
||||
* Code allows you to implement logic incrementally, they are disabled.
|
||||
**/
|
||||
|
||||
/*
|
||||
public ResponseContext getInventory(RequestContext request ) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext placeOrder(RequestContext request , Order body) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext getOrderById(RequestContext request , String orderId) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext deleteOrder(RequestContext request , String orderId) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -13,39 +13,61 @@ import io.swagger.model.*;
|
||||
import io.swagger.model.User;
|
||||
import java.util.*;
|
||||
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T00:32:07.279-07:00")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T17:25:49.737-07:00")
|
||||
public class UserController {
|
||||
/**
|
||||
* Uncomment and implement as you see fit. These operations will map
|
||||
* Direclty to operation calls from the routing logic. Because the inflector
|
||||
* Code allows you to implement logic incrementally, they are disabled.
|
||||
**/
|
||||
|
||||
/*
|
||||
public ResponseContext createUser(RequestContext request , User body) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext createUsersWithArrayInput(RequestContext request , List<User> body) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext createUsersWithListInput(RequestContext request , List<User> body) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext loginUser(RequestContext request , String username, String password) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext logoutUser(RequestContext request ) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext getUserByName(RequestContext request , String username) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext updateUser(RequestContext request , String username, User body) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
public ResponseContext deleteUser(RequestContext request , String username) {
|
||||
return new ResponseContext().status(Status.INTERNAL_SERVER_ERROR).entity( "Not implemented" );
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T00:32:07.279-07:00")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T17:25:49.737-07:00")
|
||||
public class Category {
|
||||
|
||||
private Long id = null;
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T00:32:07.279-07:00")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T17:25:49.737-07:00")
|
||||
public class Order {
|
||||
|
||||
private Long id = null;
|
||||
|
||||
@@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T00:32:07.279-07:00")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T17:25:49.737-07:00")
|
||||
public class Pet {
|
||||
|
||||
private Long id = null;
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T00:32:07.279-07:00")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T17:25:49.737-07:00")
|
||||
public class Tag {
|
||||
|
||||
private Long id = null;
|
||||
|
||||
@@ -6,7 +6,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
|
||||
@ApiModel(description = "")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T00:32:07.279-07:00")
|
||||
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaInflectorServerCodegen", date = "2015-08-24T17:25:49.737-07:00")
|
||||
public class User {
|
||||
|
||||
private Long id = null;
|
||||
|
||||
Reference in New Issue
Block a user