sfgboxapi

<back to all web services

SystemEntitiesEdit

Requires Authentication
The following routes are available for this service:
PUT/system_entities/{Id}
import 'package:servicestack/servicestack.dart';

class SystemEntitiesEditResponse implements IConvertible
{
    // @DataMember(Order=1)
    int? id;

    // @DataMember(Order=2)
    String? entity;

    // @DataMember(Order=3)
    String? longDescription;

    // @DataMember(Order=5)
    ResponseStatus? responseStatus;

    SystemEntitiesEditResponse({this.id,this.entity,this.longDescription,this.responseStatus});
    SystemEntitiesEditResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        entity = json['entity'];
        longDescription = json['longDescription'];
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'entity': entity,
        'longDescription': longDescription,
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
    };

    getTypeName() => "SystemEntitiesEditResponse";
    TypeContext? context = _ctx;
}

// @DataContract
class SystemEntitiesEdit implements IConvertible
{
    // @DataMember(Order=1)
    // @Validate(Validator="NotNull")
    int? id;

    // @DataMember(Order=2)
    // @Validate(Validator="NotNull")
    String? entity;

    // @DataMember(Order=3)
    // @Validate(Validator="NotNull")
    String? longDescription;

    SystemEntitiesEdit({this.id,this.entity,this.longDescription});
    SystemEntitiesEdit.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        entity = json['entity'];
        longDescription = json['longDescription'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'entity': entity,
        'longDescription': longDescription
    };

    getTypeName() => "SystemEntitiesEdit";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: <String, TypeInfo> {
    'SystemEntitiesEditResponse': TypeInfo(TypeOf.Class, create:() => SystemEntitiesEditResponse()),
    'SystemEntitiesEdit': TypeInfo(TypeOf.Class, create:() => SystemEntitiesEdit()),
});

Dart SystemEntitiesEdit DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /system_entities/{Id} HTTP/1.1 
Host: sfgboxapi.dev.scadsoftware.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	entity: String,
	longDescription: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	entity: String,
	longDescription: String,
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}