> + @ResponseParser(ServerApi.ServerParser.class)
> + @Produces("application/json")
> + Server update(@PathParam("serverId") String serverId,
> @BinderParam(BindToJsonPayload.class) Server.UpdateServer server);
> +
> + @Named("server:Status:update")
> + @PUT
> + @Path("/{serverId}/status/action")
> + @ResponseParser(ServerApi.ServerParser.class)
> + @Produces("application/json")
> + Server updateStatus(@PathParam("serverId") String serverId,
> @BinderParam(BindToJsonPayload.class) Server.UpdateStatus server);
> +
> + @Named("server:delete")
> + @DELETE
> + @Path("/{serverId}")
> + @ResponseParser(ServerApi.ServerParser.class)
> + @MapBinder(BindToJsonPayload.class)
This did work for the DELETE method it didn't generate he content-type header
for me
My code example
```
@Named("servers:privatenetwork:delete")
@DELETE
@Path("/{serverId}/private_networks/{privateNetworkId}")
@Fallback(Fallbacks.NullOnNotFoundOr404.class)
@Produces("application/json")
Server deletePrivateNetwork(@PathParam("serverId") String serverId,
@PathParam("privateNetworkId") String privateNetworkId);
```
this is what the header looks like :
`User-Agent: jclouds-okhttp/2.0.0-SNAPSHOT java/1.8.0_73
Accept: application/json
X-TOKEN: 4f34bcc24bf7bbf6af2fac5e35e600d8
Content-Length: 0
Host: cloudpanel-api.1and1.com
Connection: Keep-Alive
Accept-Encoding: gzip
`
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/275/files/0767d011a984011133c9e34b3389b449ca0756cd#r69044773