Class PetStore


  • @Path("/")
    public class PetStore
    extends java.lang.Object
    The Pet Store
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CLOSED  
    • Constructor Summary

      Constructors 
      Constructor Description
      PetStore()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response getBaseStatus()
      Return Pet Status with no params
      javax.ws.rs.core.Response getStatus1Param​(java.lang.String petId)
      Return Pet Status With 1 Param
      javax.ws.rs.core.Response getStatus2Params​(java.lang.String petId, java.lang.String query)
      Return Pet Status with 2 params
      javax.ws.rs.core.Response getStatus3Params​(java.lang.String petId, java.lang.String query, java.lang.String query2)
      Return Pet Status With 3 Params
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PetStore

        public PetStore()
    • Method Detail

      • getBaseStatus

        @GET
        @Produces("text/plain")
        public javax.ws.rs.core.Response getBaseStatus()
                                                throws java.lang.Exception
        Return Pet Status with no params
        Returns:
        status
        Throws:
        java.lang.Exception
      • getStatus2Params

        @GET
        @Path("/petstore/pets/{petId}/")
        @Produces("text/xml")
        public javax.ws.rs.core.Response getStatus2Params​(@PathParam("petId")
                                                          java.lang.String petId,
                                                          @QueryParam("query")
                                                          java.lang.String query)
                                                   throws java.lang.Exception
        Return Pet Status with 2 params
        Parameters:
        petId - the pet id
        query - the query
        Returns:
        status
        Throws:
        java.lang.Exception
      • getStatus1Param

        @GET
        @Path("/petstore/pets/id/{petId}/")
        @Produces("text/xml")
        public javax.ws.rs.core.Response getStatus1Param​(@PathParam("petId")
                                                         java.lang.String petId)
                                                  throws java.lang.Exception
        Return Pet Status With 1 Param
        Parameters:
        petId - the pet id
        Returns:
        status
        Throws:
        java.lang.Exception
      • getStatus3Params

        @GET
        @Path("/petstore/pets/{petId}/")
        @Produces("text/xml")
        public javax.ws.rs.core.Response getStatus3Params​(@PathParam("petId")
                                                          java.lang.String petId,
                                                          @QueryParam("query")
                                                          java.lang.String query,
                                                          @QueryParam("query2")
                                                          java.lang.String query2)
                                                   throws java.lang.Exception
        Return Pet Status With 3 Params
        Parameters:
        petId - the pet id
        query - the query
        query2 - the query2
        Returns:
        status
        Throws:
        java.lang.Exception