GET hub/{serial}/GetPlannings

Return all planning of a Hub. Subscription Required.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serial

Serial of the Hub

string

Required

Body Parameters

None.

Response Information

Resource Description

plannings to return

Collection of Flipr.Web.Api.Controllers.JsonWrappers.Planning
NameDescriptionTypeAdditional information
id

Gets or sets the ID of the Planning

integer

None.

name

Gets or sets the Name of the Planning

string

None.

isActivated

Gets or sets if this Planning is Activated

boolean

None.

order

Gets or sets the order of the planning

integer

None.

list_StartingMinute_duration

Gets or sets the list of duration starting at one minute of the day (in decimal)

Dictionary of integer [key] and integer [value]

None.

days

Gets or sets the days when the planning is active 1111111 -> all days

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "name": "sample string 1",
    "isActivated": true,
    "order": 1,
    "list_StartingMinute_duration": {
      "1": 2,
      "3": 4
    },
    "days": "sample string 3"
  },
  {
    "id": 1,
    "name": "sample string 1",
    "isActivated": true,
    "order": 1,
    "list_StartingMinute_duration": {
      "1": 2,
      "3": 4
    },
    "days": "sample string 3"
  }
]

text/html

Sample:
[{"id":1,"name":"sample string 1","isActivated":true,"order":1,"list_StartingMinute_duration":{"1":2,"3":4},"days":"sample string 3"},{"id":1,"name":"sample string 1","isActivated":true,"order":1,"list_StartingMinute_duration":{"1":2,"3":4},"days":"sample string 3"}]