DigiOffice Gateway Web Services

<back to all web services

GetDocumentUploadDetails

Requires Authentication
The following routes are available for this service:
GET/api/documentuploads/{ID}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class DocumentUpload implements IConvertible
{
    int? ID;
    String? Description;
    String? Notes;
    String? FileName;
    String? Extension;
    DateTime? FileDate;
    String? AssignedTo;
    String? AssignedToGroup;
    String? UploadedBy;
    bool? HasPreview;

    DocumentUpload({this.ID,this.Description,this.Notes,this.FileName,this.Extension,this.FileDate,this.AssignedTo,this.AssignedToGroup,this.UploadedBy,this.HasPreview});
    DocumentUpload.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ID = json['ID'];
        Description = json['Description'];
        Notes = json['Notes'];
        FileName = json['FileName'];
        Extension = json['Extension'];
        FileDate = JsonConverters.fromJson(json['FileDate'],'DateTime',context!);
        AssignedTo = json['AssignedTo'];
        AssignedToGroup = json['AssignedToGroup'];
        UploadedBy = json['UploadedBy'];
        HasPreview = json['HasPreview'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ID': ID,
        'Description': Description,
        'Notes': Notes,
        'FileName': FileName,
        'Extension': Extension,
        'FileDate': JsonConverters.toJson(FileDate,'DateTime',context!),
        'AssignedTo': AssignedTo,
        'AssignedToGroup': AssignedToGroup,
        'UploadedBy': UploadedBy,
        'HasPreview': HasPreview
    };

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

class GetDocumentUploadDetails implements IConvertible
{
    int? ID;

    GetDocumentUploadDetails({this.ID});
    GetDocumentUploadDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: <String, TypeInfo> {
    'DocumentUpload': TypeInfo(TypeOf.Class, create:() => DocumentUpload()),
    'GetDocumentUploadDetails': TypeInfo(TypeOf.Class, create:() => GetDocumentUploadDetails()),
});

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

GET /api/documentuploads/{ID} HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ID: 0,
	Description: String,
	Notes: String,
	FileName: String,
	Extension: String,
	FileDate: 0001-01-01,
	AssignedTo: String,
	AssignedToGroup: String,
	UploadedBy: String,
	HasPreview: False
}