sfgboxapi

<back to all web services

DistributedBoxesViewLookup

The following routes are available for this service:
GET/distributed_boxes_view
"use strict";
export class DistributedBoxesViewLookup {
    /** @param {{id?:number,tenantsId?:number,appUserId?:number,authAppUserId?:number,deploymentDate?:string,numberBoxes?:number,recipientType?:string,foodGardensId?:number,otherDescription?:string,latitude?:number,longitude?:number,phoneNumber?:string,displayName?:string,email?:string,applicationDate?:string,isZoneMain?:boolean,isDisabled?:boolean,gender?:string,ethnicGroup?:string,age?:number,approvalDate?:string,approved?:boolean,authorizedBy?:string,mediaPath?:string,name?:string,description?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    id;
    /** @type {number} */
    tenantsId;
    /** @type {number} */
    appUserId;
    /** @type {number} */
    authAppUserId;
    /** @type {string} */
    deploymentDate;
    /** @type {number} */
    numberBoxes;
    /** @type {string} */
    recipientType;
    /** @type {number} */
    foodGardensId;
    /** @type {string} */
    otherDescription;
    /** @type {number} */
    latitude;
    /** @type {number} */
    longitude;
    /** @type {string} */
    phoneNumber;
    /** @type {string} */
    displayName;
    /** @type {string} */
    email;
    /** @type {string} */
    applicationDate;
    /** @type {boolean} */
    isZoneMain;
    /** @type {boolean} */
    isDisabled;
    /** @type {string} */
    gender;
    /** @type {string} */
    ethnicGroup;
    /** @type {number} */
    age;
    /** @type {string} */
    approvalDate;
    /** @type {boolean} */
    approved;
    /** @type {string} */
    authorizedBy;
    /** @type {string} */
    mediaPath;
    /** @type {string} */
    name;
    /** @type {string} */
    description;
}

JavaScript DistributedBoxesViewLookup DTOs

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

HTTP + CSV

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

GET /distributed_boxes_view HTTP/1.1 
Host: api.sfgtec.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{Unable to show example output for type 'IEnumerable`1' using the custom 'csv' filter}Cannot dynamically create an instance of type 'System.Collections.Generic.IEnumerable`1[sfgboxapi.ServiceModel.DistributedBoxesViewLookupResponse]'. Reason: Cannot create an instance of an interface.