Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Translated to English

Lista resurser

Listar resurser

...

List resources

Lists resources such as rooms, staff, equipment etc.

Request

HTTP GET till /resources

Filter

namnNAme

obligatoriskRequired

exempelvärdeExample

förklaring

Värdemängd/DatatypDescription

Data type

Default

businessunitids

jaYes

businessunitid=4,11Endast resurser på dessa anläggningar

Only resources for specified business unit/facility

ID-listalist

 

productid

nejNo

productid=23Endast resurser baserad på denna produkt

Only resources for specified product

ID

 

type

nejNo

type=Lokal

Filterar på resurstyp

SträngRoom

Filter by resource type

String

 

label

nejNo

label=Spinningsalar

Filtrerar på etikett

SträngAerobics room 1

Filter by resource lable

String

 

includeemployees

nejNo

includeemployees=true

Inkluderar personalresurserInclude staff resources

Boolean

false

ExempelExample:

Code Block
APIURL/resources.xml?apikey=338934897438&businessunitids=4&type=Lokal

...

Tag

Exempel

Format

Förklaring

id

<id>11</id>

IDUnikt

idUnique ID

name

<name>Axet<<name>Aerobics room 1</name>

Sträng

Resursens namnString

Name or resource

type

<type>Lokal<<type>Room</type>

SträngString

TypType

information

<information>Tar 19 personer<<information>Maximum capacity 20 persons</information>

Sträng

Info om det finns någonString

Notes, if any

lastupdate

<lastupdate>>2011-12-14 06:54</lastupdate>

Tidpunkt

När resursen sparades senastTime

When the resource was modified last

isemployee

<isemployee>false</isemployee>

BooleanHurivida det är en personalresurs

If employee resource or not

employee

<employee>

 Den anställda kopplad till personalresursen

The employee connected to the specified resource

id

<id>23</id>

IDAnställdas

idEmployee ID

name

<name>Johannes Martinsson<<name>John Doe</name>

Sträng

Anställdas namnString

Name of employee

businessunits

<businessunits>

 De anläggningar denna resurs finns på

Business units (facilities) the specified resource is available at

businessunit

<businessunit><id>2</id><name>BRP Systems</name></businessunit>

 Anläggning

Business unit (facility)

Code Block
<resources>
  <resource>
    <id>11</id>
    <name>Axet<<name>Aerobics Room 1</name>
    <type>Lokal<<type>Room</type>
    <information>Tar<information>Maximum capacity 1920 personer<persons</information>
    <lastupdate>2011-12-14 06:54</lastupdate>
    <isemployee>false</isemployee>
    <employee/>
    <businessunits>
      <businessunit>
        <id>2</id>
        <name>BRP Systems</name>
      </businessunit>
    </businessunits>
  </resource>
  <resource>
    <id>29</id>
    <name>Johannes</name>
    <type>Personal<<type>Employee</type>
    <information/>
    <isemployee>true</isemployee>
    <employee>
      <id>23</id>
      <name>Johannes<name>John Martinsson<Doe</name>
    </employee>
    <businessunits>
      <businessunit>
        <id>2</id>
        <name>BRP Systems</name>
      </businessunit>
    </businessunits>
  </resource>
  <resource>
  ...
  </resource>
</resource>