| GET | /v1/Organization/GetDropdowns | ||
|---|---|---|---|
| GET | /v1/Organization/GetDropdowns/{OrgType} | ||
| GET | /v1/Organization/GetDropdowns/{OrgType}/{State}/{County} | ||
| GET | /v1/Organization/GetDropdowns/{OrgType}/{State} | ||
| GET | /v1/Organization/GetDropdowns/{OrgType}/{State}/{County}/{District} |
"use strict";
export class OrganizationDropdown {
/** @param {{ID?:string,Name?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
ID;
/** @type {string} */
Name;
}
export class OrganizationGetDropdownsResponse {
/** @param {{ResponseStatus?:ResponseStatus,Dropdowns?:OrganizationDropdown[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {OrganizationDropdown[]} */
Dropdowns = [];
}
export class OrganizationGetDropdownsRequest {
/** @param {{OrgType?:number,State?:string,County?:string,District?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
OrgType;
/** @type {string} */
State;
/** @type {string} */
County;
/** @type {string} */
District;
}
JavaScript OrganizationGetDropdownsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/Organization/GetDropdowns HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
Dropdowns:
[
{
ID: String,
Name: String
}
]
}