GET api/sourcedatabase/{id}

Fetch info for a specific sourcedatabase

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

SourceDatabase Id

integer

Required

Body Parameters

None.

Response Information

Resource Description

the SourceDatabaseInfo

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.

Response Formats

text/javascript

Sample:
({"Id":1,"Name":"sample string 2","SourceDatabaseDateLastModified":"2017-12-15T22:21:08.4474039+01:00","SourceDatabaseTotalNumberOfRecords":4,"SourceDatabaseDateLastHarvested":"2017-12-15T22:21:08.4474039+01:00","SourceDatabaseDateLastImported":"2017-12-15T22:21:08.4474039+01:00","CacheNumberOfRecords":7,"ImportedNumberOfRecords":8,"RejectedNumberOfRecords":9,"SourceDatabaseState":"sample string 10","ImportState":"sample string 11","ProcessedNumberOfRecord":12});

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "SourceDatabaseDateLastModified": "2017-12-15T22:21:08.4474039+01:00",
  "SourceDatabaseTotalNumberOfRecords": 4,
  "SourceDatabaseDateLastHarvested": "2017-12-15T22:21:08.4474039+01:00",
  "SourceDatabaseDateLastImported": "2017-12-15T22:21:08.4474039+01:00",
  "CacheNumberOfRecords": 7,
  "ImportedNumberOfRecords": 8,
  "RejectedNumberOfRecords": 9,
  "SourceDatabaseState": "sample string 10",
  "ImportState": "sample string 11",
  "ProcessedNumberOfRecord": 12
}

application/xml, text/xml

Sample:
<SourceDatabaseInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Artskart.UI.Models">
  <CacheNumberOfRecords>7</CacheNumberOfRecords>
  <Id>1</Id>
  <ImportState>sample string 11</ImportState>
  <ImportedNumberOfRecords>8</ImportedNumberOfRecords>
  <Name>sample string 2</Name>
  <ProcessedNumberOfRecord>12</ProcessedNumberOfRecord>
  <RejectedNumberOfRecords>9</RejectedNumberOfRecords>
  <SourceDatabaseDateLastHarvested>2017-12-15T22:21:08.4474039+01:00</SourceDatabaseDateLastHarvested>
  <SourceDatabaseDateLastImported>2017-12-15T22:21:08.4474039+01:00</SourceDatabaseDateLastImported>
  <SourceDatabaseDateLastModified>2017-12-15T22:21:08.4474039+01:00</SourceDatabaseDateLastModified>
  <SourceDatabaseState>sample string 10</SourceDatabaseState>
  <SourceDatabaseTotalNumberOfRecords>4</SourceDatabaseTotalNumberOfRecords>
</SourceDatabaseInfo>

application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel

Sample:
Will return an Excel worksheet fileresult. Generate by using accept header or add '?format=excel' to request url.