Skip to content

Instantly share code, notes, and snippets.

@rnavagamuwa
Created January 12, 2016 05:04
Show Gist options
  • Save rnavagamuwa/880062f326c3f20424bc to your computer and use it in GitHub Desktop.
Save rnavagamuwa/880062f326c3f20424bc to your computer and use it in GitHub Desktop.
package io.swagger.test;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.w3c.dom.ls.LSException;
import io.swagger.client.ApiException;
import io.swagger.client.api.*;
public class test {
public static void main(String[] args) throws IOException {
List<String> status = new ArrayList<String>();
status.add("sold");
PetApi pet = new PetApi();
try {
pet.updatePetWithForm("1", "nicky", "available");
System.out.println(pet.getPetById((long) 1).getName());
} catch (ApiException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment