Trendsic Platform Service

<back to all web services

WebixGanttTaskPositionRequest

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

class WebixGanttTask implements IConvertible
{
    String? id;
    String? type;
    String? start_date;
    String? planned_start;
    String? end_date;
    String? planned_end;
    String? text;
    int? progress;
    String? parent;
    int? position;
    int? duration;
    int? planned_duration;
    String? details;
    bool? open;
    int? opened;
    int? job_type_id;
    String? job_type_name;
    String? created_by_id;

    WebixGanttTask({this.id,this.type,this.start_date,this.planned_start,this.end_date,this.planned_end,this.text,this.progress,this.parent,this.position,this.duration,this.planned_duration,this.details,this.open,this.opened,this.job_type_id,this.job_type_name,this.created_by_id});
    WebixGanttTask.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        type = json['type'];
        start_date = json['start_date'];
        planned_start = json['planned_start'];
        end_date = json['end_date'];
        planned_end = json['planned_end'];
        text = json['text'];
        progress = json['progress'];
        parent = json['parent'];
        position = json['position'];
        duration = json['duration'];
        planned_duration = json['planned_duration'];
        details = json['details'];
        open = json['open'];
        opened = json['opened'];
        job_type_id = json['job_type_id'];
        job_type_name = json['job_type_name'];
        created_by_id = json['created_by_id'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'type': type,
        'start_date': start_date,
        'planned_start': planned_start,
        'end_date': end_date,
        'planned_end': planned_end,
        'text': text,
        'progress': progress,
        'parent': parent,
        'position': position,
        'duration': duration,
        'planned_duration': planned_duration,
        'details': details,
        'open': open,
        'opened': opened,
        'job_type_id': job_type_id,
        'job_type_name': job_type_name,
        'created_by_id': created_by_id
    };

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

class WebixGanttTaskResponse extends WebixGanttTask implements IConvertible
{
    WebixGanttTaskResponse();
    WebixGanttTaskResponse.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() => "WebixGanttTaskResponse";
    TypeContext? context = _ctx;
}

class WebixGanttTaskPositionRequest implements IConvertible
{
    String? Id;
    String? Parent;

    WebixGanttTaskPositionRequest({this.Id,this.Parent});
    WebixGanttTaskPositionRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Parent = json['Parent'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Parent': Parent
    };

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

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

Dart WebixGanttTaskPositionRequest DTOs

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

HTTP + CSV

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

PUT /v1/webix/gantt/tasks/{id}/position HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Id":"String","Parent":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"id":"String","type":"String","start_date":"String","planned_start":"String","end_date":"String","planned_end":"String","text":"String","progress":0,"parent":"String","position":0,"duration":0,"planned_duration":0,"details":"String","open":false,"opened":0,"job_type_id":0,"job_type_name":"String","created_by_id":"String"}