GET api/Company
Get all companies
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
Compnany list: all companies from database
Collection of CompanyDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
Company Id (GUID) |
globally unique identifier |
None. |
| Name |
Company name |
string |
None. |
| Description |
Company description |
string |
None. |
| ListOfSectionOfCompanyDto |
List of sections |
Collection of SectionOfCompanyDto |
None. |
| IdOfFileSpecOfLogo |
Id of file of company logo: can be null - if no logo |
globally unique identifier |
None. |
| FileSpecOfLogo |
Logo file with file url varchar(2083): created from IdOfFileSpecOfLogo |
FileSpecDto |
None. |
Response Formats
application/json, text/json
Sample:
[
{
"Id": "a66d3b5e-50c1-457c-add4-27cc7aaa30b5",
"Name": "sample string 2",
"Description": "sample string 3",
"ListOfSectionOfCompanyDto": [
{
"CompanyId": "1d969720-27b3-4704-a752-c5a5e8668cf4",
"Id": "4008d3ee-1374-4b28-b4a7-37bb11822720",
"IsVisible": true,
"SectionPatternId": "sample string 4"
},
{
"CompanyId": "1d969720-27b3-4704-a752-c5a5e8668cf4",
"Id": "4008d3ee-1374-4b28-b4a7-37bb11822720",
"IsVisible": true,
"SectionPatternId": "sample string 4"
}
],
"IdOfFileSpecOfLogo": "5e8e4087-888a-4c8d-b38c-1af562c8120c",
"FileSpecOfLogo": {
"Id": "4dc340c8-6b9e-4624-a659-823fcc9f187e",
"Name": "sample string 2",
"Extension": "sample string 3",
"ContentType": "sample string 4",
"Length": 5,
"ContainerName": "fb27366c-185a-4432-bd33-e69bacf36905",
"CreatedUnixTime": 7,
"FileUrl": "sample string 8",
"ImgWidth": 1,
"ImgHeight": 1
}
},
{
"Id": "a66d3b5e-50c1-457c-add4-27cc7aaa30b5",
"Name": "sample string 2",
"Description": "sample string 3",
"ListOfSectionOfCompanyDto": [
{
"CompanyId": "1d969720-27b3-4704-a752-c5a5e8668cf4",
"Id": "4008d3ee-1374-4b28-b4a7-37bb11822720",
"IsVisible": true,
"SectionPatternId": "sample string 4"
},
{
"CompanyId": "1d969720-27b3-4704-a752-c5a5e8668cf4",
"Id": "4008d3ee-1374-4b28-b4a7-37bb11822720",
"IsVisible": true,
"SectionPatternId": "sample string 4"
}
],
"IdOfFileSpecOfLogo": "5e8e4087-888a-4c8d-b38c-1af562c8120c",
"FileSpecOfLogo": {
"Id": "4dc340c8-6b9e-4624-a659-823fcc9f187e",
"Name": "sample string 2",
"Extension": "sample string 3",
"ContentType": "sample string 4",
"Length": 5,
"ContainerName": "fb27366c-185a-4432-bd33-e69bacf36905",
"CreatedUnixTime": 7,
"FileUrl": "sample string 8",
"ImgWidth": 1,
"ImgHeight": 1
}
}
]
application/xml, text/xml
Sample:
<ArrayOfCompanyDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Reyvart.WellFileManager.Web.Models">
<CompanyDto>
<Description>sample string 3</Description>
<FileSpecOfLogo>
<ContainerName>fb27366c-185a-4432-bd33-e69bacf36905</ContainerName>
<ContentType>sample string 4</ContentType>
<CreatedUnixTime>7</CreatedUnixTime>
<Extension>sample string 3</Extension>
<FileUrl>sample string 8</FileUrl>
<Id>4dc340c8-6b9e-4624-a659-823fcc9f187e</Id>
<ImgHeight>1</ImgHeight>
<ImgWidth>1</ImgWidth>
<Length>5</Length>
<Name>sample string 2</Name>
</FileSpecOfLogo>
<Id>a66d3b5e-50c1-457c-add4-27cc7aaa30b5</Id>
<IdOfFileSpecOfLogo>5e8e4087-888a-4c8d-b38c-1af562c8120c</IdOfFileSpecOfLogo>
<ListOfSectionOfCompanyDto>
<SectionOfCompanyDto>
<Id>4008d3ee-1374-4b28-b4a7-37bb11822720</Id>
<IsVisible>true</IsVisible>
<SectionPatternId>sample string 4</SectionPatternId>
<CompanyId>1d969720-27b3-4704-a752-c5a5e8668cf4</CompanyId>
</SectionOfCompanyDto>
<SectionOfCompanyDto>
<Id>4008d3ee-1374-4b28-b4a7-37bb11822720</Id>
<IsVisible>true</IsVisible>
<SectionPatternId>sample string 4</SectionPatternId>
<CompanyId>1d969720-27b3-4704-a752-c5a5e8668cf4</CompanyId>
</SectionOfCompanyDto>
</ListOfSectionOfCompanyDto>
<Name>sample string 2</Name>
</CompanyDto>
<CompanyDto>
<Description>sample string 3</Description>
<FileSpecOfLogo>
<ContainerName>fb27366c-185a-4432-bd33-e69bacf36905</ContainerName>
<ContentType>sample string 4</ContentType>
<CreatedUnixTime>7</CreatedUnixTime>
<Extension>sample string 3</Extension>
<FileUrl>sample string 8</FileUrl>
<Id>4dc340c8-6b9e-4624-a659-823fcc9f187e</Id>
<ImgHeight>1</ImgHeight>
<ImgWidth>1</ImgWidth>
<Length>5</Length>
<Name>sample string 2</Name>
</FileSpecOfLogo>
<Id>a66d3b5e-50c1-457c-add4-27cc7aaa30b5</Id>
<IdOfFileSpecOfLogo>5e8e4087-888a-4c8d-b38c-1af562c8120c</IdOfFileSpecOfLogo>
<ListOfSectionOfCompanyDto>
<SectionOfCompanyDto>
<Id>4008d3ee-1374-4b28-b4a7-37bb11822720</Id>
<IsVisible>true</IsVisible>
<SectionPatternId>sample string 4</SectionPatternId>
<CompanyId>1d969720-27b3-4704-a752-c5a5e8668cf4</CompanyId>
</SectionOfCompanyDto>
<SectionOfCompanyDto>
<Id>4008d3ee-1374-4b28-b4a7-37bb11822720</Id>
<IsVisible>true</IsVisible>
<SectionPatternId>sample string 4</SectionPatternId>
<CompanyId>1d969720-27b3-4704-a752-c5a5e8668cf4</CompanyId>
</SectionOfCompanyDto>
</ListOfSectionOfCompanyDto>
<Name>sample string 2</Name>
</CompanyDto>
</ArrayOfCompanyDto>