package io.swagger.v3.plugin.maven.petstore.petstore.operation;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;

/**
 * Interface resource
 */
public interface InterfaceResource {
    @GET
    @Path("/interfaceoperation/{petId}")
    @Operation(summary = "Find pet by ID Operation in Parent",
            description = "Returns a pet in Parent"
    )
    Response getPetById(@Parameter(description = "ID of pet that needs to be fetched", required = true)
                        @PathParam("petId") final Long petId);
}
