POST api/Image/UploadImage

Request Information

URI Parameters

None.

Body Parameters

Image
NameDescriptionTypeAdditional information
Id

integer

None.

Guid

globally unique identifier

None.

RawImage

Collection of byte

Max length: -1

FileType

string

None.

FileName

string

None.

Ratio

decimal number

None.

UploadedDate

date

None.

ImageUrl

string

None.

Afdeling

Afdeling

None.

Type

ImageType

None.

Title

string

None.

Description

string

None.

FrontText

string

None.

FrontTextColor

string

None.

FrontBackgroundColor

string

None.

ShowOnFrontPage

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Guid": "375d7bfc-08a5-4548-b93e-a909c893cd2a",
  "RawImage": "QEA=",
  "FileType": "sample string 2",
  "FileName": "sample string 3",
  "Ratio": 4.1,
  "UploadedDate": "2019-10-15T06:54:43.6520039+02:00",
  "ImageUrl": "sample string 6",
  "Afdeling": 0,
  "Type": 0,
  "Title": "sample string 7",
  "Description": "sample string 8",
  "FrontText": "sample string 9",
  "FrontTextColor": "sample string 10",
  "FrontBackgroundColor": "sample string 11",
  "ShowOnFrontPage": true
}

application/xml, text/xml

Sample:
<Image xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <Afdeling>Håndbold</Afdeling>
  <Description>sample string 8</Description>
  <FileName>sample string 3</FileName>
  <FileType>sample string 2</FileType>
  <FrontBackgroundColor>sample string 11</FrontBackgroundColor>
  <FrontText>sample string 9</FrontText>
  <FrontTextColor>sample string 10</FrontTextColor>
  <Guid>375d7bfc-08a5-4548-b93e-a909c893cd2a</Guid>
  <Id>1</Id>
  <ImageUrl>sample string 6</ImageUrl>
  <Ratio>4.1</Ratio>
  <RawImage>QEA=</RawImage>
  <ShowOnFrontPage>true</ShowOnFrontPage>
  <Title>sample string 7</Title>
  <Type>News</Type>
  <UploadedDate>2019-10-15T06:54:43.6520039+02:00</UploadedDate>
</Image>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultOfBoolean
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

boolean

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": true,
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>true</Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfboolean>