SynapseNetCom

<back to all web services

DobaviTipoveArtikala

Requires Authentication
The following routes are available for this service:
GET/tipovi-artikala
import 'package:servicestack/servicestack.dart';

class IdNaziv implements IConvertible
{
    String? id;
    String? naziv;

    IdNaziv({this.id,this.naziv});
    IdNaziv.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class DobaviTipoveArtikalaResult implements IConvertible
{
    List<IdNaziv>? tipoviArtikala;
    ResponseStatus? responseStatus;

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

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

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

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

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

    Map<String, dynamic> toJson() => {};
    getTypeName() => "DobaviTipoveArtikala";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'netcom.poslovnisoftver.rs', types: <String, TypeInfo> {
    'IdNaziv': TypeInfo(TypeOf.Class, create:() => IdNaziv()),
    'DobaviTipoveArtikalaResult': TypeInfo(TypeOf.Class, create:() => DobaviTipoveArtikalaResult()),
    'List<IdNaziv>': TypeInfo(TypeOf.Class, create:() => <IdNaziv>[]),
    'DobaviTipoveArtikala': TypeInfo(TypeOf.Class, create:() => DobaviTipoveArtikala()),
});

Dart DobaviTipoveArtikala DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /tipovi-artikala HTTP/1.1 
Host: netcom.poslovnisoftver.rs 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

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