SynapseNetCom

<back to all web services

DobaviKomitente

Requires Authentication
The following routes are available for this service:
GET/komitenti
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class DobaviKomitente implements IGet
    {
        
    }

    public static class DobaviKomitenteResult
    {
        public ArrayList<Komitent> komitenti = null;
        public ResponseStatus responseStatus = null;
        
        public ArrayList<Komitent> getKomitenti() { return komitenti; }
        public DobaviKomitenteResult setKomitenti(ArrayList<Komitent> value) { this.komitenti = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public DobaviKomitenteResult setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    public static class Komitent
    {
        public String id = null;
        public String sifra = null;
        public String naziv = null;
        public String adresa = null;
        public String pib = null;
        public String kontaktOsoba = null;
        public String telefon1 = null;
        public String telefon2 = null;
        public String email = null;
        public Boolean ugovor = null;
        public Boolean pdvObveznik = null;
        public String maticniBroj = null;
        public String napomene = null;
        public Boolean oslobodjenObracunaPdv = null;
        public Boolean licnaKarta = null;
        public IdNaziv tipKomitenta = null;
        public Mesto mesto = null;
        
        public String getId() { return id; }
        public Komitent setId(String value) { this.id = value; return this; }
        public String getSifra() { return sifra; }
        public Komitent setSifra(String value) { this.sifra = value; return this; }
        public String getNaziv() { return naziv; }
        public Komitent setNaziv(String value) { this.naziv = value; return this; }
        public String getAdresa() { return adresa; }
        public Komitent setAdresa(String value) { this.adresa = value; return this; }
        public String getPib() { return pib; }
        public Komitent setPib(String value) { this.pib = value; return this; }
        public String getKontaktOsoba() { return kontaktOsoba; }
        public Komitent setKontaktOsoba(String value) { this.kontaktOsoba = value; return this; }
        public String getTelefon1() { return telefon1; }
        public Komitent setTelefon1(String value) { this.telefon1 = value; return this; }
        public String getTelefon2() { return telefon2; }
        public Komitent setTelefon2(String value) { this.telefon2 = value; return this; }
        public String getEmail() { return email; }
        public Komitent setEmail(String value) { this.email = value; return this; }
        public Boolean isUgovor() { return ugovor; }
        public Komitent setUgovor(Boolean value) { this.ugovor = value; return this; }
        public Boolean isPdvObveznik() { return pdvObveznik; }
        public Komitent setPdvObveznik(Boolean value) { this.pdvObveznik = value; return this; }
        public String getMaticniBroj() { return maticniBroj; }
        public Komitent setMaticniBroj(String value) { this.maticniBroj = value; return this; }
        public String getNapomene() { return napomene; }
        public Komitent setNapomene(String value) { this.napomene = value; return this; }
        public Boolean isOslobodjenObracunaPdv() { return oslobodjenObracunaPdv; }
        public Komitent setOslobodjenObracunaPdv(Boolean value) { this.oslobodjenObracunaPdv = value; return this; }
        public Boolean isLicnaKarta() { return licnaKarta; }
        public Komitent setLicnaKarta(Boolean value) { this.licnaKarta = value; return this; }
        public IdNaziv getTipKomitenta() { return tipKomitenta; }
        public Komitent setTipKomitenta(IdNaziv value) { this.tipKomitenta = value; return this; }
        public Mesto getMesto() { return mesto; }
        public Komitent setMesto(Mesto value) { this.mesto = value; return this; }
    }

    public static class IdNaziv
    {
        public String id = null;
        public String naziv = null;
        
        public String getId() { return id; }
        public IdNaziv setId(String value) { this.id = value; return this; }
        public String getNaziv() { return naziv; }
        public IdNaziv setNaziv(String value) { this.naziv = value; return this; }
    }

    public static class Mesto
    {
        public String id = null;
        public String ptt = null;
        public String naziv = null;
        
        public String getId() { return id; }
        public Mesto setId(String value) { this.id = value; return this; }
        public String getPtt() { return ptt; }
        public Mesto setPtt(String value) { this.ptt = value; return this; }
        public String getNaziv() { return naziv; }
        public Mesto setNaziv(String value) { this.naziv = value; return this; }
    }

}

Java DobaviKomitente DTOs

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

HTTP + XML

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

GET /komitenti HTTP/1.1 
Host: netcom.poslovnisoftver.rs 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DobaviKomitenteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SynapseNetCom.ServiceModel.Dtos">
  <Komitenti>
    <Komitent>
      <Adresa>String</Adresa>
      <Email>String</Email>
      <Id>String</Id>
      <KontaktOsoba>String</KontaktOsoba>
      <LicnaKarta>false</LicnaKarta>
      <MaticniBroj>String</MaticniBroj>
      <Mesto>
        <Id>String</Id>
        <Naziv>String</Naziv>
        <Ptt>String</Ptt>
      </Mesto>
      <Napomene>String</Napomene>
      <Naziv>String</Naziv>
      <OslobodjenObracunaPdv>false</OslobodjenObracunaPdv>
      <PdvObveznik>false</PdvObveznik>
      <Pib>String</Pib>
      <Sifra>String</Sifra>
      <Telefon1>String</Telefon1>
      <Telefon2>String</Telefon2>
      <TipKomitenta>
        <Id>String</Id>
        <Naziv>String</Naziv>
      </TipKomitenta>
      <Ugovor>false</Ugovor>
    </Komitent>
  </Komitenti>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</DobaviKomitenteResult>