import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ChangePassword implements IPost
{
public String CurrentPassword = null;
public String NewPassword = null;
public String getCurrentPassword() { return CurrentPassword; }
public ChangePassword setCurrentPassword(String value) { this.CurrentPassword = value; return this; }
public String getNewPassword() { return NewPassword; }
public ChangePassword setNewPassword(String value) { this.NewPassword = value; return this; }
}
public static class ChangePasswordResponse extends ResponseBase
{
}
public static class ResponseBase
{
public ResponseStatus ResponseStatus = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ResponseBase setResponseStatus(ResponseStatus value) { this.ResponseStatus = 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.
POST /csv/reply/ChangePassword HTTP/1.1
Host: szallitoiportal-be.veolia.hu
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"CurrentPassword":"String","NewPassword":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}