@Path(value="/classWithMethods") public class Resource extends Object
| Constructor and Description |
|---|
Resource() |
| Modifier and Type | Method and Description |
|---|---|
String |
getStuff() |
String |
head() |
void |
postStuff() |
void |
putStuff(byte[] bytes) |
@Path(value="/path/to/get/")
@GET
@Consumes(value={"text/xml","application/*"})
@Produces(value="application/xml")
public String getStuff()
@Consumes(value={"text/xml","application/*"})
@POST
public void postStuff()
@Consumes(value={"text/xml","application/*"})
@PUT
public void putStuff(byte[] bytes)
@Path(value="/head/") @HEAD public String head()
Copyright © 2018 Mulesoft. All rights reserved.