GET api/Sponsor/GetSponsor?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

ServiceResultOfSponsor
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

Sponsor

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": {
    "Name": "sample string 1",
    "Url": "sample string 2",
    "Description": "sample string 3",
    "ShowOnFrontPage": true,
    "Status": 0,
    "Location": "sample string 5",
    "ImageUrl": "sample string 6",
    "SponsorImage": {
      "Id": 1,
      "Guid": "904f226f-2307-4a23-a11f-8a81aa7c68d4",
      "RawImage": "QEA=",
      "FileType": "sample string 2",
      "FileName": "sample string 3",
      "Ratio": 4.1,
      "UploadedDate": "2024-04-26T15:16:15.1255145+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
    },
    "Id": 7,
    "Created": "2024-04-26T15:16:15.1265147+02:00",
    "CreatedBy": "sample string 8",
    "Modified": "2024-04-26T15:16:15.1265147+02:00",
    "ModifiedBy": "sample string 9"
  },
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfSponsorYgFqSxnr xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>
    <Created xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2024-04-26T15:16:15.1265147+02:00</Created>
    <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 8</CreatedBy>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Model.Base">7</Id>
    <Modified xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2024-04-26T15:16:15.1265147+02:00</Modified>
    <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 9</ModifiedBy>
    <Description>sample string 3</Description>
    <ImageUrl>sample string 6</ImageUrl>
    <Location>sample string 5</Location>
    <Name>sample string 1</Name>
    <ShowOnFrontPage>true</ShowOnFrontPage>
    <SponsorImage>
      <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>904f226f-2307-4a23-a11f-8a81aa7c68d4</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>2024-04-26T15:16:15.1255145+02:00</UploadedDate>
    </SponsorImage>
    <Status>Aktiv</Status>
    <Url>sample string 2</Url>
  </Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfSponsorYgFqSxnr>