package org.jboss.resteasy.test.client.resource;

import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.DELETE;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.PATCH;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.PUT;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;

@Path("/test")
public class JAXRS21SyncInvokeResource {
    @GET
    @Produces("text/plain")
    public String get() {
        return "get";
    }

    @PUT
    @Consumes("text/plain")
    public String put(String str) {
        return "put " + str;
    }

    @POST
    @Consumes("text/plain")
    public String post(String str) {
        return "post " + str;
    }

    @DELETE
    @Produces("text/plain")
    public String delete() {
        return "delete";
    }

    @PATCH
    @Produces("text/plain")
    @Consumes("text/plain")
    public String patch(String str) {
        return "patch " + str;
    }
}
