GET api/Companies

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Company
NameDescriptionTypeAdditional information
ID

integer

None.

vendorID

string

None.

companyName

string

Required

String length: inclusive between 0 and 150

contractStatus

string

String length: inclusive between 0 and 20

Response Formats

application/json, text/json

Sample:
[
  {
    "ID": 1,
    "vendorID": "sample string 1",
    "companyName": "sample string 2",
    "contractStatus": "sample string 3"
  },
  {
    "ID": 1,
    "vendorID": "sample string 1",
    "companyName": "sample string 2",
    "contractStatus": "sample string 3"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCompany xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMAUtilityAPI.Entity">
  <Company>
    <ID>1</ID>
    <companyName>sample string 2</companyName>
    <contractStatus>sample string 3</contractStatus>
    <vendorID>sample string 1</vendorID>
  </Company>
  <Company>
    <ID>1</ID>
    <companyName>sample string 2</companyName>
    <contractStatus>sample string 3</contractStatus>
    <vendorID>sample string 1</vendorID>
  </Company>
</ArrayOfCompany>