samples/client/petstore/csharp/SwaggerClient/src/IO.Swagger/Api/PetApi.cs
/// <summary>
/// Find pet by ID Returns a single pet
/// </summary>
/// <exception cref="IO.Swagger.Client.ApiException">Thrown when fails to make API call</exception>
/// <param name="petId">ID of pet to return</param>
/// <returns>Task of Pet</returns>
Find pet by ID Returns a single pet
Find pet by ID Returns a single pet
public async System.Threading.Tasks.Task<Pet> GetPetByIdAsync (long? petId)
        {
             ApiResponse<Pet> localVarResponse = await GetPetByIdAsyncWithHttpInfo(petId);
             return localVarResponse.Data;
        }
public async System . Threading . Tasks . Task < Pet > GetPetByIdAsync ( long ? petId ) { ApiResponse < Pet > localVarResponse = await GetPetByIdAsyncWithHttpInfo ( petId ) ; return localVarResponse . Data ; }
Find pet by ID Returns a single pet
Find pet by ID Returns a single pet
Task of Pet
Task of Pet
Thrown when fails to make API call
Thrown when fails to make API call
petId
long?
ID of pet to return
ID of pet to return