Trendsic Platform Service

<back to all web services

WebixGanttLinkChangeRequest

Requires Authentication
The following routes are available for this service:
POST/v1/webix/gantt/links
DELETE,PUT,OPTIONS/v1/webix/gantt/links/{id}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class WebixGanttLink implements IConvertible
{
    int? id;
    int? source;
    int? target;
    int? type;

    WebixGanttLink({this.id,this.source,this.target,this.type});
    WebixGanttLink.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'id': id,
        'source': source,
        'target': target,
        'type': type
    };

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

class WebixGanttLinkResponse extends WebixGanttLink implements IConvertible
{
    WebixGanttLinkResponse();
    WebixGanttLinkResponse.fromJson(Map<String, dynamic> json) : super.fromJson(json);
    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "WebixGanttLinkResponse";
    TypeContext? context = _ctx;
}

class WebixGanttLinkChangeRequest extends WebixGanttLink implements IConvertible
{
    WebixGanttLinkChangeRequest();
    WebixGanttLinkChangeRequest.fromJson(Map<String, dynamic> json) : super.fromJson(json);
    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson();
    getTypeName() => "WebixGanttLinkChangeRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'WebixGanttLink': TypeInfo(TypeOf.Class, create:() => WebixGanttLink()),
    'WebixGanttLinkResponse': TypeInfo(TypeOf.Class, create:() => WebixGanttLinkResponse()),
    'WebixGanttLinkChangeRequest': TypeInfo(TypeOf.Class, create:() => WebixGanttLinkChangeRequest()),
});

Dart WebixGanttLinkChangeRequest 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.

POST /v1/webix/gantt/links HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	source: 0,
	target: 0,
	type: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	source: 0,
	target: 0,
	type: 0
}