Sessions API

List sessions

GET /rest/v1/sessions?begin_date=:begin_date&end_date=:end_date&page=1&per_page=1

This method lists sessions

Request

Headers

Accept: application/json
Content-Type: application/json

Route

GET /rest/v1/sessions?begin_date=2015-08-07T14%3A41%3A10%2B04%3A00&end_date=2015-08-07T14%3A41%3A12%2B04%3A00&page=1&per_page=1

Query Parameters

begin_date: 2015-08-07T14:41:10+04:00
end_date: 2015-08-07T14:41:12+04:00
page: 1
per_page: 1

Response

Headers

Content-Type: application/json; charset=utf-8

Status

200 OK

Body

{
  "sessions": [
    {
      "n_session_id": 78221101,
      "n_type_id": 280101,
      "vc_type_name": "test session type",
      "n_state_id": 3182,
      "vc_ext_id": "UO0YW2NE",
      "vc_par_ext_uniq_id": null,
      "vc_ext_uniq_id": "st0gl55ws0r1s1gemmrus5p1ymx8za3r",
      "vc_termination_code": null,
      "n_customer_equipment_id": 55009301,
      "n_provider_equipment_id": 54749401,
      "n_equipment_bind_id": 320101,
      "n_customer_id": 55006601,
      "n_start_customer_profile_id": 634001,
      "n_start_provider_profile_id": null,
      "n_customer_profile_id": 634001,
      "t_cust_child_profile_ids": null,
      "n_prev_customer_profile_id": null,
      "t_prev_child_profile_ids": null,
      "n_provider_profile_id": null,
      "n_prev_provider_profile_id": null,
      "n_service_profile_id": 634001,
      "d_start": "2015-08-07T14:41:10+03:00",
      "d_finish": "2015-08-07T14:41:12+03:00",
      "d_last_upd": "2015-08-17T12:39:55+03:00",
      "d_last_load": "2015-08-17T12:39:55+03:00",
      "c_fl_killed": "Y",
      "t_attributes": {
        "Test start attribute": "Hello world"
      },
      "n_firm_id": 100,
      "vc_src_app": "Test sessions generator",
      "vc_load_seance_id": "Test seance",
      "n_scn": "18557301",
      "t_start_attributes": {
        "Test start attribute": "Hello world"
      }
    }
  ],
  "actions": {
    "index": "http://example.org/rest/v1/sessions"
  }
}