Required role: | REGISUserRole |
POST | /Audit/Create |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class AuditCreateRequest implements IConvertible
{
String? authorizing_uuid;
String? uuid;
String? ip_address;
String? url;
String? controller;
String? action;
String? item_id;
AuditCreateRequest({this.authorizing_uuid,this.uuid,this.ip_address,this.url,this.controller,this.action,this.item_id});
AuditCreateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
authorizing_uuid = json['authorizing_uuid'];
uuid = json['uuid'];
ip_address = json['ip_address'];
url = json['url'];
controller = json['controller'];
action = json['action'];
item_id = json['item_id'];
return this;
}
Map<String, dynamic> toJson() => {
'authorizing_uuid': authorizing_uuid,
'uuid': uuid,
'ip_address': ip_address,
'url': url,
'controller': controller,
'action': action,
'item_id': item_id
};
getTypeName() => "AuditCreateRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
'AuditCreateRequest': TypeInfo(TypeOf.Class, create:() => AuditCreateRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Audit/Create HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
authorizing_uuid: String,
uuid: String,
ip_address: String,
url: String,
controller: String,
action: String,
item_id: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }