GET api/sourcedatabase

Fetch all sourcedatabases

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

List of SourceDatabaseInfo

Collection of SourceDatabaseInfo
NameDescriptionTypeAdditional information
Id

The Id of the Sourcedatabase

integer

None.

Name

Short name of datasource

string

None.

SourceDatabaseDateLastModified

date

None.

SourceDatabaseTotalNumberOfRecords

integer

None.

SourceDatabaseDateLastHarvested

date

None.

SourceDatabaseDateLastImported

date

None.

CacheNumberOfRecords

integer

None.

ImportedNumberOfRecords

integer

None.

RejectedNumberOfRecords

integer

None.

SourceDatabaseState

string

None.

ImportState

string

None.

ProcessedNumberOfRecord

integer

None.

Response Formats

text/javascript

Sample:
({"Id":1,"Name":"sample string 2","SourceDatabaseDateLastModified":"2017-10-19T14:39:04.2446862+02:00","SourceDatabaseTotalNumberOfRecords":4,"SourceDatabaseDateLastHarvested":"2017-10-19T14:39:04.2446862+02:00","SourceDatabaseDateLastImported":"2017-10-19T14:39:04.2446862+02: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-10-19T14:39:04.2446862+02:00",
  "SourceDatabaseTotalNumberOfRecords": 4,
  "SourceDatabaseDateLastHarvested": "2017-10-19T14:39:04.2446862+02:00",
  "SourceDatabaseDateLastImported": "2017-10-19T14:39:04.2446862+02: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-10-19T14:39:04.2446862+02:00</SourceDatabaseDateLastHarvested>
  <SourceDatabaseDateLastImported>2017-10-19T14:39:04.2446862+02:00</SourceDatabaseDateLastImported>
  <SourceDatabaseDateLastModified>2017-10-19T14:39:04.2446862+02: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.