| GET | /reports |
|---|
export interface IContentTypeWriter
{
}
export interface IResponse
{
originalResponse: Object;
request: IRequest;
statusCode: number;
statusDescription: string;
contentType: string;
outputStream: string;
dto: Object;
useBufferedStream: boolean;
isClosed: boolean;
keepAlive: boolean;
hasStarted: boolean;
items: { [index:string]: Object; };
}
// @Flags()
export enum RequestAttributes
{
None = 0,
Localhost = 1,
LocalSubnet = 2,
External = 4,
Secure = 8,
InSecure = 16,
AnySecurityMode = 24,
HttpHead = 32,
HttpGet = 64,
HttpPost = 128,
HttpPut = 256,
HttpDelete = 512,
HttpPatch = 1024,
HttpOptions = 2048,
HttpOther = 4096,
AnyHttpMethod = 8160,
OneWay = 8192,
Reply = 16384,
AnyCallStyle = 24576,
Soap11 = 32768,
Soap12 = 65536,
Xml = 131072,
Json = 262144,
Jsv = 524288,
ProtoBuf = 1048576,
Csv = 2097152,
Html = 4194304,
Jsonl = 8388608,
MsgPack = 16777216,
FormatOther = 33554432,
AnyFormat = 67076096,
Http = 67108864,
MessageQueue = 134217728,
Tcp = 268435456,
Grpc = 536870912,
EndpointOther = 1073741824,
AnyEndpoint = 2080374784,
InProcess = -2147483648,
InternalNetworkAccess = -2147483645,
AnyNetworkAccessType = -2147483641,
Any = -1,
}
export interface IRequestPreferences
{
acceptsBrotli: boolean;
acceptsDeflate: boolean;
acceptsGzip: boolean;
}
export interface IHttpFile
{
name: string;
fileName: string;
contentLength: number;
contentType: string;
inputStream: string;
}
export interface IRequest
{
originalRequest: Object;
response: IResponse;
operationName: string;
verb: string;
requestAttributes: RequestAttributes;
requestPreferences: IRequestPreferences;
dto: Object;
contentType: string;
isLocal: boolean;
userAgent: string;
cookies: { [index:string]: Cookie; };
responseContentType: string;
hasExplicitResponseContentType: boolean;
items: { [index:string]: Object; };
headers: NameValueCollection;
queryString: NameValueCollection;
formData: NameValueCollection;
useBufferedStream: boolean;
rawUrl: string;
absoluteUri: string;
userHostAddress: string;
remoteIp: string;
authorization: string;
isSecureConnection: boolean;
acceptTypes: string[];
pathInfo: string;
originalPathInfo: string;
inputStream: string;
contentLength: number;
files: IHttpFile[];
urlReferrer: string;
}
export interface IHttpResult
{
status: number;
statusCode: HttpStatusCode;
statusDescription: string;
contentType: string;
headers: { [index:string]: string; };
cookies: Cookie[];
response: Object;
responseFilter: IContentTypeWriter;
requestContext: IRequest;
paddingLength: number;
resultScope: Func<IDisposable>;
}
export enum ReportType
{
GeneralReport = 0,
SportsReport = 1,
RNGReport = 2,
}
export enum ReportFormat
{
PDF = 0,
XLSX = 1,
HTML = 2,
XML = 3,
}
export enum ReportOperation
{
Prijava_od_strane_poreznog_obveznika = 0,
Prijava_u_ime_poreznog_obveznika = 1,
Izmjena = 2,
Izmjena_prijava_poreske_uprave = 3,
}
export class GetReport
{
public type: ReportType;
public dateFrom: string;
public dateTo: string;
public format: ReportFormat;
public documentOrdinal: number;
public official: string;
public operation: ReportOperation;
public dateOfReceipt: string;
public authorizedPersonJMBG: string;
public authorizedPersonFullName: string;
public authorizedPersonLocation: string;
public authorizedPersonStatementDate: string;
public constructor(init?: Partial<GetReport>) { (Object as any).assign(this, init); }
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /reports HTTP/1.1 Host: fbihtaapi.bettor.webhop.biz Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{Unable to show example output for type 'IHttpResult' using the custom 'other' filter}Cannot dynamically create an instance of type 'ServiceStack.Web.IHttpResult'. Reason: Cannot create an instance of an interface.