Feedback

All feedback with pagination numbers

GET /api/feedback/list/(int: offset)/(int: limit)

Example response:

HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json; charset=UTF-8

[
       {
        "response_code": 1000,
        "data": {
          "feedbacks": [
            {
              "id": "24",
              "comments": "nice\n\nnice!!\n\nnice!!!\n",
              "author": {
                "id": null,
                "name": " ",
                "designation": null,
                "photoUrl": null
              },
              "dateCreated": "2015-12-29 09:39:32"
            },
            {
              "id": "23",
              "comments": "Great!",
              "author": {
                "id": "10",
                "name": "Marc Darren Padilla",
                "designation": "Developer",
                "photoUrl": "http://kingofwallpapers.com/tux/tux-001.jpg"
              },
              "dateCreated": "2015-12-22 09:15:42"
            },
            {
              "id": "22",
              "comments": "hfufuf",
              "author": {
                "id": "10",
                "name": "Marc Darren Padilla",
                "designation": "Developer",
                "photoUrl": "http://kingofwallpapers.com/tux/tux-001.jpg"
              },
              "dateCreated": "2015-12-22 07:58:30"
            },
            {
              "id": "21",
              "comments": "",
              "author": {
                "id": "10",
                "name": "Marc Darren Padilla",
                "designation": "Developer",
                "photoUrl": "http://kingofwallpapers.com/tux/tux-001.jpg"
              },
              "dateCreated": "2015-12-22 07:26:06"
            },
            {
              "id": "20",
              "comments": "test comment",
              "author": {
                "id": "10",
                "name": "Marc Darren Padilla",
                "designation": "Developer",
                "photoUrl": "http://kingofwallpapers.com/tux/tux-001.jpg"
              },
              "dateCreated": "2015-12-22 07:08:09"
            }
          ]
        },
        "system": {
          "created_at": "2017-01-16 12:55:04",
          "signature": "44db1a113f51f3d1b08215fe7dd71995d7087b0f",
          "message": "Success"
        }
      }
]

Get feedback by participation Id with pagination numbers

GET /api/feedback/list/(int: offset)/(int: limit)/(int: participant_id)

Example response:

HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json; charset=UTF-8

[
       {
              "response_code": 1000,
              "data": {
                "feedbacks": [
                  {
                    "id": "24",
                    "comments": "nice\n\nnice!!\n\nnice!!!\n",
                    "author": {
                      "id": null,
                      "name": " ",
                      "designation": null,
                      "photoUrl": null
                    },
                    "dateCreated": "2015-12-29 09:39:32"
                  }
                ]
              },
              "system": {
                "created_at": "2017-01-11 16:48:40",
                "signature": "85f49e0b2d4ebf6311c9e4a70e69f888f71302d3",
                "message": "Success"
              }
      }
]

Create New Feedback with Program Id

POST /api/feedback/add
Parameters:
  • created_by (integer) – the created_by
  • participant_id (integer) – the participant_id
  • quality (string) – the quality
  • rating (string) – the rating
  • relevance (string) – the relevance
  • expectation (string) – the expectation
  • comments (string) – the comments
  • program_id (integer) – the program_id

Example response:

HTTP/1.1 200 OK
Vary: Accept
Content-Type: application/json; charset=UTF-8

[
    {
        "response_code": 1000,
        "data": {
          "feedbacks": {
            "id": "25",
            "comments": null,
            "author": {
              "id": "1",
              "name": "Cris del Rosario",
              "designation": "Driver",
              "photoUrl": null
            },
            "dateCreated": "2017-01-16 13:28:45"
          }
        },
        "system": {
          "created_at": "2017-01-16 13:28:45",
          "signature": "b017fdc3b32d6d126e37d623c34d5f8c9ba4a709",
          "message": "Success"
        }
      }
]