| POST | /roles_system_functions |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using sfgboxapi.ServiceModel;
namespace sfgboxapi.ServiceModel
{
[DataContract]
public partial class RolesSystemFunctionsAdd
{
[DataMember(Order=2)]
[Validate("NotNull")]
public virtual long RolesId { get; set; }
[DataMember(Order=3)]
[Validate("NotNull")]
public virtual long SystemFunctionsId { get; set; }
}
public partial class RolesSystemFunctionsAddResponse
{
[DataMember(Order=2)]
public virtual long RolesId { get; set; }
[DataMember(Order=3)]
public virtual long SystemFunctionsId { get; set; }
[DataMember(Order=5)]
public virtual ResponseStatus ResponseStatus { get; set; }
}
}
C# RolesSystemFunctionsAdd DTOs
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 /roles_system_functions HTTP/1.1
Host: api.sfgtec.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"rolesId":0,"systemFunctionsId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"rolesId":0,"systemFunctionsId":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}