GET kohteet/{kohde_id}/saunat

Hae kohteen saunat


Request Information

URI Parameters

NameDescriptionTypeAdditional information
kohde_id Kohteen kohdeId integer Required

Body Parameters

Collection of string

Request Formats

application/json, text/json
Sample:
[
  "sample string 1",
  "sample string 2"
]
application/xml, text/xml
Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <string>sample string 1</string>
  <string>sample string 2</string>
</ArrayOfstring>
application/x-www-form-urlencoded
Sample:

Sample not available.


Response Information

Resource Description


Collection of ApiNettilomakeSauna
NameDescriptionTypeAdditional information
Pukuhuoneet Collection of ApiNettilomakeKohde None.
Id Kohteen Id (kohteetId) integer None.
ParentId Kohteen parentin Id (kohteetId) integer None.
PäätasonId Kohteen päätason Id (kohteetId) integer None.
TypeId Kohteen tyyppiId integer None.
Nimi Kohteen nimi string None.
Luotu Kohteen luomisajankohta date None.
Lisätiedot Kohteen lisätiedot string None.
Esivanhemmat Kohteen esivanhemmat linkitettynä listana. Ensimmäinen listan alkio on kohteen suora äiti, kun taas viimeinen vastaa ylimmän, päätason parenttia Collection of ApiEsivanhempi None.

Response Formats

application/json, text/json
Sample:
[
  {
    "Pukuhuoneet": [
      {
        "Id": 1,
        "ParentId": 1,
        "PäätasonId": 2,
        "TypeId": 3,
        "Nimi": "sample string 4",
        "Luotu": "2024-04-26T21:21:04.0115711+03:00",
        "Lisätiedot": "sample string 5",
        "Esivanhemmat": null,
        "Parametrit": [
          {
            "TypeId": 1,
            "PTypeId": 2,
            "ObjektiId": 3,
            "KentanNimi": "sample string 4",
            "KentanMetaNimi": "sample string 5",
            "Arvo": "sample string 6",
            "Tieto": "sample string 7"
          },
          {
            "TypeId": 1,
            "PTypeId": 2,
            "ObjektiId": 3,
            "KentanNimi": "sample string 4",
            "KentanMetaNimi": "sample string 5",
            "Arvo": "sample string 6",
            "Tieto": "sample string 7"
          }
        ]
      },
      {
        "Id": 1,
        "ParentId": 1,
        "PäätasonId": 2,
        "TypeId": 3,
        "Nimi": "sample string 4",
        "Luotu": "2024-04-26T21:21:04.0115711+03:00",
        "Lisätiedot": "sample string 5",
        "Esivanhemmat": null,
        "Parametrit": [
          {
            "TypeId": 1,
            "PTypeId": 2,
            "ObjektiId": 3,
            "KentanNimi": "sample string 4",
            "KentanMetaNimi": "sample string 5",
            "Arvo": "sample string 6",
            "Tieto": "sample string 7"
          },
          {
            "TypeId": 1,
            "PTypeId": 2,
            "ObjektiId": 3,
            "KentanNimi": "sample string 4",
            "KentanMetaNimi": "sample string 5",
            "Arvo": "sample string 6",
            "Tieto": "sample string 7"
          }
        ]
      }
    ],
    "Id": 1,
    "ParentId": 1,
    "PäätasonId": 2,
    "TypeId": 3,
    "Nimi": "sample string 4",
    "Luotu": "2024-04-26T21:21:04.0115711+03:00",
    "Lisätiedot": "sample string 5",
    "Esivanhemmat": null,
    "Parametrit": [
      {
        "TypeId": 1,
        "PTypeId": 2,
        "ObjektiId": 3,
        "KentanNimi": "sample string 4",
        "KentanMetaNimi": "sample string 5",
        "Arvo": "sample string 6",
        "Tieto": "sample string 7"
      },
      {
        "TypeId": 1,
        "PTypeId": 2,
        "ObjektiId": 3,
        "KentanNimi": "sample string 4",
        "KentanMetaNimi": "sample string 5",
        "Arvo": "sample string 6",
        "Tieto": "sample string 7"
      }
    ]
  },
  {
    "Pukuhuoneet": [
      {
        "Id": 1,
        "ParentId": 1,
        "PäätasonId": 2,
        "TypeId": 3,
        "Nimi": "sample string 4",
        "Luotu": "2024-04-26T21:21:04.0115711+03:00",
        "Lisätiedot": "sample string 5",
        "Esivanhemmat": null,
        "Parametrit": [
          {
            "TypeId": 1,
            "PTypeId": 2,
            "ObjektiId": 3,
            "KentanNimi": "sample string 4",
            "KentanMetaNimi": "sample string 5",
            "Arvo": "sample string 6",
            "Tieto": "sample string 7"
          },
          {
            "TypeId": 1,
            "PTypeId": 2,
            "ObjektiId": 3,
            "KentanNimi": "sample string 4",
            "KentanMetaNimi": "sample string 5",
            "Arvo": "sample string 6",
            "Tieto": "sample string 7"
          }
        ]
      },
      {
        "Id": 1,
        "ParentId": 1,
        "PäätasonId": 2,
        "TypeId": 3,
        "Nimi": "sample string 4",
        "Luotu": "2024-04-26T21:21:04.0115711+03:00",
        "Lisätiedot": "sample string 5",
        "Esivanhemmat": null,
        "Parametrit": [
          {
            "TypeId": 1,
            "PTypeId": 2,
            "ObjektiId": 3,
            "KentanNimi": "sample string 4",
            "KentanMetaNimi": "sample string 5",
            "Arvo": "sample string 6",
            "Tieto": "sample string 7"
          },
          {
            "TypeId": 1,
            "PTypeId": 2,
            "ObjektiId": 3,
            "KentanNimi": "sample string 4",
            "KentanMetaNimi": "sample string 5",
            "Arvo": "sample string 6",
            "Tieto": "sample string 7"
          }
        ]
      }
    ],
    "Id": 1,
    "ParentId": 1,
    "PäätasonId": 2,
    "TypeId": 3,
    "Nimi": "sample string 4",
    "Luotu": "2024-04-26T21:21:04.0115711+03:00",
    "Lisätiedot": "sample string 5",
    "Esivanhemmat": null,
    "Parametrit": [
      {
        "TypeId": 1,
        "PTypeId": 2,
        "ObjektiId": 3,
        "KentanNimi": "sample string 4",
        "KentanMetaNimi": "sample string 5",
        "Arvo": "sample string 6",
        "Tieto": "sample string 7"
      },
      {
        "TypeId": 1,
        "PTypeId": 2,
        "ObjektiId": 3,
        "KentanNimi": "sample string 4",
        "KentanMetaNimi": "sample string 5",
        "Arvo": "sample string 6",
        "Tieto": "sample string 7"
      }
    ]
  }
]
application/xml, text/xml
Sample:
<ArrayOfSauna xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceApi.Contract.Kohderekisteri">
  <Sauna>
    <Esivanhemmat xmlns:d3p1="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceBus.Contract" i:nil="true" />
    <Id>1</Id>
    <Lisätiedot>sample string 5</Lisätiedot>
    <Luotu>2024-04-26T21:21:04.0115711+03:00</Luotu>
    <Nimi>sample string 4</Nimi>
    <ParentId>1</ParentId>
    <PäätasonId>2</PäätasonId>
    <TypeId>3</TypeId>
    <Pukuhuoneet>
      <ApiNettilomakeKohde>
        <Esivanhemmat xmlns:d5p1="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceBus.Contract" i:nil="true" />
        <Id>1</Id>
        <Lisätiedot>sample string 5</Lisätiedot>
        <Luotu>2024-04-26T21:21:04.0115711+03:00</Luotu>
        <Nimi>sample string 4</Nimi>
        <ParentId>1</ParentId>
        <PäätasonId>2</PäätasonId>
        <TypeId>3</TypeId>
      </ApiNettilomakeKohde>
      <ApiNettilomakeKohde>
        <Esivanhemmat xmlns:d5p1="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceBus.Contract" i:nil="true" />
        <Id>1</Id>
        <Lisätiedot>sample string 5</Lisätiedot>
        <Luotu>2024-04-26T21:21:04.0115711+03:00</Luotu>
        <Nimi>sample string 4</Nimi>
        <ParentId>1</ParentId>
        <PäätasonId>2</PäätasonId>
        <TypeId>3</TypeId>
      </ApiNettilomakeKohde>
    </Pukuhuoneet>
  </Sauna>
  <Sauna>
    <Esivanhemmat xmlns:d3p1="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceBus.Contract" i:nil="true" />
    <Id>1</Id>
    <Lisätiedot>sample string 5</Lisätiedot>
    <Luotu>2024-04-26T21:21:04.0115711+03:00</Luotu>
    <Nimi>sample string 4</Nimi>
    <ParentId>1</ParentId>
    <PäätasonId>2</PäätasonId>
    <TypeId>3</TypeId>
    <Pukuhuoneet>
      <ApiNettilomakeKohde>
        <Esivanhemmat xmlns:d5p1="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceBus.Contract" i:nil="true" />
        <Id>1</Id>
        <Lisätiedot>sample string 5</Lisätiedot>
        <Luotu>2024-04-26T21:21:04.0115711+03:00</Luotu>
        <Nimi>sample string 4</Nimi>
        <ParentId>1</ParentId>
        <PäätasonId>2</PäätasonId>
        <TypeId>3</TypeId>
      </ApiNettilomakeKohde>
      <ApiNettilomakeKohde>
        <Esivanhemmat xmlns:d5p1="http://schemas.datacontract.org/2004/07/Agenteq.Tampuuri.ApplicationServiceBus.Contract" i:nil="true" />
        <Id>1</Id>
        <Lisätiedot>sample string 5</Lisätiedot>
        <Luotu>2024-04-26T21:21:04.0115711+03:00</Luotu>
        <Nimi>sample string 4</Nimi>
        <ParentId>1</ParentId>
        <PäätasonId>2</PäätasonId>
        <TypeId>3</TypeId>
      </ApiNettilomakeKohde>
    </Pukuhuoneet>
  </Sauna>
</ArrayOfSauna>