WebService

<back to all web services

GetKiFewShotRequest

import 'package:servicestack/servicestack.dart';

class KiFewShotBeispiel implements IConvertible
{
    int? ID;
    String? Fehler;
    String? Analyse;
    int? Rating;

    KiFewShotBeispiel({this.ID,this.Fehler,this.Analyse,this.Rating});
    KiFewShotBeispiel.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class GetKiFewShotResponse implements IConvertible
{
    bool? Status;
    List<KiFewShotBeispiel>? Beispiele;

    GetKiFewShotResponse({this.Status,this.Beispiele});
    GetKiFewShotResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'Status': Status,
        'Beispiele': JsonConverters.toJson(Beispiele,'List<KiFewShotBeispiel>',context!)
    };

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

class GetKiFewShotRequest implements IConvertible
{
    String? Lizenz;
    int? MaxAnzahl;
    int? KategorieId;

    GetKiFewShotRequest({this.Lizenz,this.MaxAnzahl,this.KategorieId});
    GetKiFewShotRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'Lizenz': Lizenz,
        'MaxAnzahl': MaxAnzahl,
        'KategorieId': KategorieId
    };

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

TypeContext _ctx = TypeContext(library: '52.142.207.43', types: <String, TypeInfo> {
    'KiFewShotBeispiel': TypeInfo(TypeOf.Class, create:() => KiFewShotBeispiel()),
    'GetKiFewShotResponse': TypeInfo(TypeOf.Class, create:() => GetKiFewShotResponse()),
    'List<KiFewShotBeispiel>': TypeInfo(TypeOf.Class, create:() => <KiFewShotBeispiel>[]),
    'GetKiFewShotRequest': TypeInfo(TypeOf.Class, create:() => GetKiFewShotRequest()),
});

Dart GetKiFewShotRequest 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 /jsv/reply/GetKiFewShotRequest HTTP/1.1 
Host: 52.142.207.43 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Lizenz: String,
	MaxAnzahl: 0,
	KategorieId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Status: False,
	Beispiele: 
	[
		{
			ID: 0,
			Fehler: String,
			Analyse: String,
			Rating: 0
		}
	]
}