GET | /tender/{tenderid}/user/{userid}/procurement/{procurementid}/file |
---|
export class ProcurementBase
{
public TenderId: number;
public UserId: number;
public ProcurementId: number;
public constructor(init?: Partial<ProcurementBase>) { (Object as any).assign(this, init); }
}
export class ResponseBase
{
public ResponseStatus: ResponseStatus;
public constructor(init?: Partial<ResponseBase>) { (Object as any).assign(this, init); }
}
export class BrowseFileResponseBase
{
public Id: number;
public FileContentId: number;
public FileName: string;
public Size: number;
public constructor(init?: Partial<BrowseFileResponseBase>) { (Object as any).assign(this, init); }
}
export enum ProcurementDocumentType
{
BankAccountnumber = 0,
EcoVadis = 1,
Csr = 2,
SignedProcurement = 3,
}
export class ProcurementFileDetails extends BrowseFileResponseBase
{
public ProcurementId: number;
public DocumentType: ProcurementDocumentType;
public constructor(init?: Partial<ProcurementFileDetails>) { super(init); (Object as any).assign(this, init); }
}
export class BrowseProcurementAllFileResponse extends ResponseBase
{
public ProcurementFiles: ProcurementFileDetails[];
public constructor(init?: Partial<BrowseProcurementAllFileResponse>) { super(init); (Object as any).assign(this, init); }
}
export class BrowseProcurementAllFile extends ProcurementBase implements IGet
{
public DocumentType: ProcurementDocumentType;
public constructor(init?: Partial<BrowseProcurementAllFile>) { super(init); (Object as any).assign(this, init); }
}
TypeScript BrowseProcurementAllFile 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /tender/{tenderid}/user/{userid}/procurement/{procurementid}/file HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"ProcurementFiles":[{"ProcurementId":0,"DocumentType":0,"Id":0,"FileContentId":0,"FileName":"String","Size":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}