PATCH | /api/tiles/{ID}/changename |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ChangeTileName
{
public UUID ID = null;
public String Name = null;
public UUID getId() { return ID; }
public ChangeTileName setId(UUID value) { this.ID = value; return this; }
public String getName() { return Name; }
public ChangeTileName setName(String value) { this.Name = value; return this; }
}
public static class BoolResponse
{
public Boolean Value = null;
public Boolean isValue() { return Value; }
public BoolResponse setValue(Boolean value) { this.Value = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PATCH /api/tiles/{ID}/changename HTTP/1.1
Host: doapigw.baasbv.nl
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"ID":"00000000-0000-0000-0000-000000000000","Name":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Value":false}