GET api/MasterData?companyID={companyID}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
companyID | string |
Required |
Body Parameters
None.
Response Information
Resource Description
MasterDataName | Description | Type | Additional information |
---|---|---|---|
ID | integer |
None. |
|
activities | Collection of Activity |
None. |
|
companies | Collection of Company |
None. |
|
locations | Collection of Location |
None. |
|
vessels | Collection of Vessel |
None. |
Response Formats
application/json, text/json
Sample:
{ "ID": 1, "activities": [ { "ID": 1, "parentID": 1, "description": "sample string 1", "classification": "sample string 2" }, { "ID": 1, "parentID": 1, "description": "sample string 1", "classification": "sample string 2" } ], "companies": [ { "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" } ], "locations": [ { "ID": 1, "longitude": 1.0, "latitude": 1.0, "description": "sample string 1", "locationType": "sample string 2" }, { "ID": 1, "longitude": 1.0, "latitude": 1.0, "description": "sample string 1", "locationType": "sample string 2" } ], "vessels": [ { "ID": 1, "vesselName": "sample string 1", "directionalPositioning": true, "vesselType": "sample string 3", "zone": "sample string 4", "dayRate": 1.1, "endUser": "sample string 5", "projectName": "sample string 6", "contractType": "sample string 7", "tankCapacity": "sample string 8", "companyID": 9, "company": { "ID": 1, "vendorID": "sample string 1", "companyName": "sample string 2", "contractStatus": "sample string 3" } }, { "ID": 1, "vesselName": "sample string 1", "directionalPositioning": true, "vesselType": "sample string 3", "zone": "sample string 4", "dayRate": 1.1, "endUser": "sample string 5", "projectName": "sample string 6", "contractType": "sample string 7", "tankCapacity": "sample string 8", "companyID": 9, "company": { "ID": 1, "vendorID": "sample string 1", "companyName": "sample string 2", "contractStatus": "sample string 3" } } ] }
application/xml, text/xml
Sample:
<MasterData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMAUtilityAPI.Entity"> <ID>1</ID> <activities> <Activity> <ID>1</ID> <classification>sample string 2</classification> <description>sample string 1</description> <parentID>1</parentID> </Activity> <Activity> <ID>1</ID> <classification>sample string 2</classification> <description>sample string 1</description> <parentID>1</parentID> </Activity> </activities> <companies> <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> </companies> <locations> <Location> <ID>1</ID> <description>sample string 1</description> <latitude>1</latitude> <locationType>sample string 2</locationType> <longitude>1</longitude> </Location> <Location> <ID>1</ID> <description>sample string 1</description> <latitude>1</latitude> <locationType>sample string 2</locationType> <longitude>1</longitude> </Location> </locations> <vessels> <Vessel> <ID>1</ID> <company> <ID>1</ID> <companyName>sample string 2</companyName> <contractStatus>sample string 3</contractStatus> <vendorID>sample string 1</vendorID> </company> <companyID>9</companyID> <contractType>sample string 7</contractType> <dayRate>1.1</dayRate> <directionalPositioning>true</directionalPositioning> <endUser>sample string 5</endUser> <projectName>sample string 6</projectName> <tankCapacity>sample string 8</tankCapacity> <vesselName>sample string 1</vesselName> <vesselType>sample string 3</vesselType> <zone>sample string 4</zone> </Vessel> <Vessel> <ID>1</ID> <company> <ID>1</ID> <companyName>sample string 2</companyName> <contractStatus>sample string 3</contractStatus> <vendorID>sample string 1</vendorID> </company> <companyID>9</companyID> <contractType>sample string 7</contractType> <dayRate>1.1</dayRate> <directionalPositioning>true</directionalPositioning> <endUser>sample string 5</endUser> <projectName>sample string 6</projectName> <tankCapacity>sample string 8</tankCapacity> <vesselName>sample string 1</vesselName> <vesselType>sample string 3</vesselType> <zone>sample string 4</zone> </Vessel> </vessels> </MasterData>