mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-06-28 19:50:49 +00:00
updated sample
This commit is contained in:
parent
391806570c
commit
8daebf78f4
@ -1,4 +1,4 @@
|
||||
package com.wordnik.client;
|
||||
package io.swagger.client;
|
||||
|
||||
public class ApiException extends Exception {
|
||||
int code = 0;
|
@ -1,4 +1,4 @@
|
||||
package com.wordnik.client;
|
||||
package io.swagger.client;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.core.JsonGenerator.Feature;
|
@ -1,4 +1,4 @@
|
||||
package com.wordnik.client;
|
||||
package io.swagger.client;
|
||||
|
||||
import org.apache.http.client.methods.*;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.wordnik.client;
|
||||
package io.swagger.client;
|
||||
|
||||
import com.fasterxml.jackson.annotation.*;
|
||||
import com.fasterxml.jackson.databind.*;
|
@ -1,13 +1,13 @@
|
||||
package com.wordnik.client.api;
|
||||
package io.swagger.client.api;
|
||||
|
||||
import com.wordnik.client.ApiException;
|
||||
import com.wordnik.client.ApiInvoker;
|
||||
import io.swagger.client.ApiException;
|
||||
import io.swagger.client.ApiInvoker;
|
||||
|
||||
import com.wordnik.client.model.*;
|
||||
import io.swagger.client.model.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.client.model.Pet;
|
||||
import io.swagger.client.model.Pet;
|
||||
import java.io.File;
|
||||
|
||||
import java.util.Map;
|
||||
@ -133,7 +133,7 @@ public class PetApi {
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, contentType);
|
||||
if(response != null){
|
||||
return (List<Pet>) ApiInvoker.deserialize(response, "Pet", Pet.class);
|
||||
return (List<Pet>) ApiInvoker.deserialize(response, "array", Pet.class);
|
||||
}
|
||||
else {
|
||||
return null;
|
||||
@ -172,7 +172,7 @@ public class PetApi {
|
||||
try {
|
||||
String response = apiInvoker.invokeAPI(basePath, path, "GET", queryParams, postBody, headerParams, contentType);
|
||||
if(response != null){
|
||||
return (List<Pet>) ApiInvoker.deserialize(response, "Pet", Pet.class);
|
||||
return (List<Pet>) ApiInvoker.deserialize(response, "array", Pet.class);
|
||||
}
|
||||
else {
|
||||
return null;
|
@ -1,13 +1,13 @@
|
||||
package com.wordnik.client.api;
|
||||
package io.swagger.client.api;
|
||||
|
||||
import com.wordnik.client.ApiException;
|
||||
import com.wordnik.client.ApiInvoker;
|
||||
import io.swagger.client.ApiException;
|
||||
import io.swagger.client.ApiInvoker;
|
||||
|
||||
import com.wordnik.client.model.*;
|
||||
import io.swagger.client.model.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.client.model.Order;
|
||||
import io.swagger.client.model.Order;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.HashMap;
|
@ -1,13 +1,13 @@
|
||||
package com.wordnik.client.api;
|
||||
package io.swagger.client.api;
|
||||
|
||||
import com.wordnik.client.ApiException;
|
||||
import com.wordnik.client.ApiInvoker;
|
||||
import io.swagger.client.ApiException;
|
||||
import io.swagger.client.ApiInvoker;
|
||||
|
||||
import com.wordnik.client.model.*;
|
||||
import io.swagger.client.model.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.client.model.User;
|
||||
import io.swagger.client.model.User;
|
||||
import java.util.*;
|
||||
|
||||
import java.util.Map;
|
@ -1,4 +1,4 @@
|
||||
package com.wordnik.client.model;
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
@ -1,4 +1,4 @@
|
||||
package com.wordnik.client.model;
|
||||
package io.swagger.client.model;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.wordnik.client.model;
|
||||
package io.swagger.client.model;
|
||||
|
||||
import com.wordnik.client.model.Category;
|
||||
import com.wordnik.client.model.Tag;
|
||||
import io.swagger.client.model.Category;
|
||||
import io.swagger.client.model.Tag;
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
@ -1,4 +1,4 @@
|
||||
package com.wordnik.client.model;
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
@ -1,4 +1,4 @@
|
||||
package com.wordnik.client.model;
|
||||
package io.swagger.client.model;
|
||||
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
Loading…
x
Reference in New Issue
Block a user