Server

<back to all web services

UpdateNutzeinheitNote

Requires Authentication
The following routes are available for this service:
PUT/WebApp/Nutzeinheit/{Guid}/Note
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class UpdateNutzeinheitNoteResponse implements IConvertible
{
    ResponseStatus? responseStatus;

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

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

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

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

// @DataContract
class UpdateNutzeinheitNote implements IConvertible
{
    // @DataMember(Name="Guid")
    String? Guid;

    // @DataMember(Name="Anmerkung")
    String? Anmerkung;

    UpdateNutzeinheitNote({this.Guid,this.Anmerkung});
    UpdateNutzeinheitNote.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Guid = json['guid'];
        Anmerkung = json['note'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'guid': Guid,
        'anmerkung': Anmerkung
    };

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

TypeContext _ctx = TypeContext(library: 'develop_servamw.eras_online.de', types: <String, TypeInfo> {
    'UpdateNutzeinheitNoteResponse': TypeInfo(TypeOf.Class, create:() => UpdateNutzeinheitNoteResponse()),
    'UpdateNutzeinheitNote': TypeInfo(TypeOf.Class, create:() => UpdateNutzeinheitNote()),
});

Dart UpdateNutzeinheitNote DTOs

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

HTTP + OTHER

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

PUT /WebApp/Nutzeinheit/{Guid}/Note HTTP/1.1 
Host: develop-servamw.eras-online.de 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Guid":"00000000000000000000000000000000","Anmerkung":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}