Back to top

Feedbacks

Feedbacks management

Feedbacks

List feedbacks

List feedbacks
GET/plugins/feedbacks{?polyglot}

Example URI

GET http://api.nearit.com//plugins/feedbacks?polyglot=true
URI Parameters
HideShow
filter[app_id]
string (optional) Example: fdd86511-10cb-4835-ba58-ff3738cfde7d
polyglot
boolean (optional) Example: true
Request
HideShow
Headers
Content-Type: application/json
Accept: application/vnd.api+json
X-Near-Version: 2
Authorization: Bearer sgfrw5yjrjwk8p85vecswbilxq69fmt5yko7pqdk0o8rkn8u4r8cyo5cgenwdj7c
X-Near-App-Id: 17b66aac-ba3b-4547-b8f1-a2216167dd9c
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "data": {
    "type": "plugins",
    "id": "574dcfeb-b3ca-4edf-9ad5-37bcb3944f3d",
    "attributes": {
      "name": "Feedbacks",
      "path_name": "feedbacks",
      "upstream_url": "http://feedbacks.development.ecs.nearit.net:3000",
      "labels": {
        "reaction": true
      },
      "created_at": "2016-10-05T18:47:46.359506Z",
      "updated_at": "2016-10-05T18:47:46.359506Z",
      "public": true,
      "as": [
        {
          "identifier": "ask_feedback",
          "name": "Ask user a feedback",
          "description": "",
          "kind": "reaction",
          "metadata": {},
          "plugin_id": "e1db2d96-12f9-4787-916a-52f8d13f3bbb",
          "created_at": "2016-10-05T18:48:42.597188Z",
          "updated_at": "2016-10-05T18:48:42.597188Z"
        }
      ],
      "vs": [
        {
          "plugin_id": "9914df0e-a5c6-4e42-bc5e-67ace2aca02e",
          "version": "1",
          "upstream_url": "http://feedbacks.development.ecs.nearit.net:3000",
          "fallback": "true",
          "created_at": "2016-11-17T11:35:06.62242Z",
          "updated_at": "2016-11-17T11:35:06.62242Z"
        }
      ],
      "ss": null
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string"
            },
            "path_name": {
              "type": "string"
            },
            "upstream_url": {
              "type": "string"
            },
            "labels": {
              "type": "object",
              "properties": {
                "reaction": {
                  "type": "boolean"
                }
              }
            },
            "created_at": {
              "type": "string"
            },
            "updated_at": {
              "type": "string"
            },
            "public": {
              "type": "boolean"
            },
            "as": {
              "type": "array"
            },
            "vs": {
              "type": "array"
            },
            "ss": {
              "type": [
                "object",
                "null"
              ],
              "properties": {}
            }
          }
        }
      }
    }
  }
}

Get a feedback

Get a feedback
GET/plugins/feedbacks/feedbacks/68b5aa1f-4a83-4f4b-a907-87cfd5182650{?polyglot}

Example URI

GET http://api.nearit.com//plugins/feedbacks/feedbacks/68b5aa1f-4a83-4f4b-a907-87cfd5182650?polyglot=true
URI Parameters
HideShow
feedback_id
string (required) Example: 68b5aa1f-4a83-4f4b-a907-87cfd5182650
polyglot
boolean (optional) Example: true
Request
HideShow
Headers
Content-Type: application/json
Accept: application/vnd.api+json
X-Near-Version: 2
Authorization: Bearer xs188hy1srjsegpskcdwmp64colj8qbi3j606n4pewffrpufnupa0vgo570ynq40
X-Near-App-Id: a1d55d71-8131-4490-b424-ab25d8b8efbe
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "data": {
    "id": "20bf53a7-4eb2-4496-ab28-ec612c0939fe",
    "type": "feedbacks",
    "attributes": {
      "question": "Est eum rerum sit qui adipisci fugit unde illo sint. Voluptatem sunt molestias consequatur. Qui explicabo quibusdam. Maxime et est ea distinctio laborum voluptatem commodi cupiditate. Ipsam laudantium est qui et adipisci ut. Deserunt itaque reiciendis ex aliquid debitis nostrum.",
      "app_id": "b84cf1fe-78d5-4e2d-9c6b-edd3a2abffd7",
      "creator_id": "8b09844e-cb70-4378-86e4-27daf2b5929b",
      "created_at": "2018-01-09T11:53:59.710Z",
      "updated_at": "2018-01-09T11:53:59.710Z",
      "default_language": "xx",
      "question_translations": {
        "xx": "Est eum rerum sit qui adipisci fugit unde illo sint. Voluptatem sunt molestias consequatur. Qui explicabo quibusdam. Maxime et est ea distinctio laborum voluptatem commodi cupiditate. Ipsam laudantium est qui et adipisci ut. Deserunt itaque reiciendis ex aliquid debitis nostrum."
      }
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "question": {
              "type": "string"
            },
            "app_id": {
              "type": "string"
            },
            "creator_id": {
              "type": "string"
            },
            "created_at": {
              "type": "string"
            },
            "updated_at": {
              "type": "string"
            },
            "default_language": {
              "type": "string"
            },
            "question_translations": {
              "type": "object",
              "properties": {
                "xx": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}

Get feedback stats

Get feedback stats
GET/plugins/feedbacks/feedbacks/68b5aa1f-4a83-4f4b-a907-87cfd5182650/stats{?polyglot}

Example URI

GET http://api.nearit.com//plugins/feedbacks/feedbacks/68b5aa1f-4a83-4f4b-a907-87cfd5182650/stats?polyglot=true
URI Parameters
HideShow
feedback_id
string (required) Example: 68b5aa1f-4a83-4f4b-a907-87cfd5182650
polyglot
boolean (optional) Example: true
Request
HideShow
Headers
Content-Type: application/json
Accept: application/vnd.api+json
X-Near-Version: 2
Authorization: Bearer x2it6do34lrgguvsaot94tfhlrll9kpm99tdrp95k2qnowiyvlzjyjriutybnvsn
X-Near-App-Id: f896eb70-1b1f-4052-a5d0-5ec57ba1804f
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "data": {
    "id": "b63f4d29-0625-482e-b56e-c21106934bab",
    "type": "feedback_stats",
    "attributes": {
      "one": 0,
      "two": 0,
      "three": 0,
      "four": 0,
      "five": 0
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "one": {
              "type": "number"
            },
            "two": {
              "type": "number"
            },
            "three": {
              "type": "number"
            },
            "four": {
              "type": "number"
            },
            "five": {
              "type": "number"
            }
          }
        }
      }
    }
  }
}
Request  body
HideShow
Headers
Content-Type: application/json
Accept: application/vnd.api+json
X-Near-Version: 2
Authorization: Bearer w2pzw82rvm7bwy5pr9bl9hibbn8mfnt2i8sz960jnjx99th9toooqk809y8mwxgv
X-Near-App-Id: 922e25a0-76ea-4379-9b96-5003ce552c6b
Body
{
  "polyglot": "true",
  "data": {
    "type": "feedbacks",
    "attributes": {
      "app_id": "fdd86511-10cb-4835-ba58-ff3738cfde7d",
      "creator_id": "aec5102c-39cb-45e8-8df7-339c3e03b916",
      "question_xx": "Est possimus recusandae reprehenderit dolorem aspernatur alias reiciendis quod quo. Voluptates et minus est ducimus doloremque reiciendis placeat rerum. Ut et repellendus."
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "polyglot": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "app_id": {
              "type": "string"
            },
            "creator_id": {
              "type": "string"
            },
            "question_xx": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "data": {
    "id": "5e7967f8-c922-4848-ba9a-4f56bd7ce551",
    "type": "feedbacks",
    "attributes": {
      "question": "Est possimus recusandae reprehenderit dolorem aspernatur alias reiciendis quod quo. Voluptates et minus est ducimus doloremque reiciendis placeat rerum. Ut et repellendus.",
      "app_id": "a8184102-175e-4cab-af5e-a7c3ace5fdde",
      "creator_id": "7fb63c7e-4638-40fb-b6ed-1a9610efffce",
      "created_at": "2018-01-09T11:54:07.961Z",
      "updated_at": "2018-01-09T11:54:07.961Z",
      "default_language": "xx",
      "question_translations": {
        "xx": "Est possimus recusandae reprehenderit dolorem aspernatur alias reiciendis quod quo. Voluptates et minus est ducimus doloremque reiciendis placeat rerum. Ut et repellendus."
      }
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "question": {
              "type": "string"
            },
            "app_id": {
              "type": "string"
            },
            "creator_id": {
              "type": "string"
            },
            "created_at": {
              "type": "string"
            },
            "updated_at": {
              "type": "string"
            },
            "default_language": {
              "type": "string"
            },
            "question_translations": {
              "type": "object",
              "properties": {
                "xx": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}

Update feedback

Update feedback
PUT/plugins/feedbacks/feedbacks/68b5aa1f-4a83-4f4b-a907-87cfd5182650

Example URI

PUT http://api.nearit.com//plugins/feedbacks/feedbacks/68b5aa1f-4a83-4f4b-a907-87cfd5182650
URI Parameters
HideShow
feedback_id
string (required) Example: 68b5aa1f-4a83-4f4b-a907-87cfd5182650
Request  body
HideShow
Headers
Content-Type: application/json
Accept: application/vnd.api+json
X-Near-Version: 2
Authorization: Bearer 1ygqw5cnihja0b312g93vmagopbudtahrbf11xr8bmar8dxtoaxnyeghe7gqr1c1
X-Near-App-Id: 22c6bd7b-c0ce-46ca-918b-2202d330c6e8
Body
{
  "polyglot": "true",
  "data": {
    "type": "feedbacks",
    "attributes": {
      "app_id": "fdd86511-10cb-4835-ba58-ff3738cfde7d",
      "creator_id": "9f42012f-91c0-4de0-88a3-f568d4c92f92",
      "question_xx": "Aut odit odit labore quia esse nobis rerum ut non. Cupiditate eligendi omnis libero quisquam magnam. Necessitatibus expedita dolores."
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "polyglot": {
      "type": "string"
    },
    "data": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "app_id": {
              "type": "string"
            },
            "creator_id": {
              "type": "string"
            },
            "question_xx": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "data": {
    "id": "15d63b66-7f06-4744-ae83-0b9af758016f",
    "type": "feedbacks",
    "attributes": {
      "question": "Aut odit odit labore quia esse nobis rerum ut non. Cupiditate eligendi omnis libero quisquam magnam. Necessitatibus expedita dolores.",
      "app_id": "d0e3c714-8441-4747-a57e-5785085455d5",
      "creator_id": "ee646975-1a95-4843-be49-0a85a5355118",
      "created_at": "2018-01-09T11:53:59.710Z",
      "updated_at": "2018-01-09T11:54:08.265Z",
      "default_language": "xx",
      "question_translations": {
        "xx": "Aut odit odit labore quia esse nobis rerum ut non. Cupiditate eligendi omnis libero quisquam magnam. Necessitatibus expedita dolores."
      }
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "question": {
              "type": "string"
            },
            "app_id": {
              "type": "string"
            },
            "creator_id": {
              "type": "string"
            },
            "created_at": {
              "type": "string"
            },
            "updated_at": {
              "type": "string"
            },
            "default_language": {
              "type": "string"
            },
            "question_translations": {
              "type": "object",
              "properties": {
                "xx": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}

Delete a feedback

Delete a feedback
DELETE/plugins/feedbacks/feedbacks/237b640d-c154-4f7a-a059-298edadf2341

Example URI

DELETE http://api.nearit.com//plugins/feedbacks/feedbacks/237b640d-c154-4f7a-a059-298edadf2341
URI Parameters
HideShow
feedback_id
string (required) Example: 237b640d-c154-4f7a-a059-298edadf2341
Request
HideShow
Headers
Content-Type: application/json
Accept: application/vnd.api+json
X-Near-Version: 2
Authorization: Bearer k4wnhkv9q1obvgk3etovyw0hswvlmisfl5glrwl5bcpek2tpjo39couo2ob28ner
X-Near-App-Id: 45437a24-2d4a-40b7-8f56-7e1b07a56c76

List answers

List answers
GET/plugins/feedbacks/feedbacks/68b5aa1f-4a83-4f4b-a907-87cfd5182650/answers

Example URI

GET http://api.nearit.com//plugins/feedbacks/feedbacks/68b5aa1f-4a83-4f4b-a907-87cfd5182650/answers
URI Parameters
HideShow
filter[recipe_id]
string (optional) Example: f71bb069-a195-4f14-8fe2-96ef001f82c6

Recipe ID

filter[comment][presence]
boolean (optional) Example: true

Comment presence

page[size]
number (optional) Example: 5

Page size

page[number]
number (optional) Example: 1

Page number

Request
HideShow
Headers
Content-Type: application/json
Accept: application/vnd.api+json
X-Near-Version: 2
Authorization: Bearer v592ceel6drnu8f8baf18v6ejzmwusy6sey1nosa290mmxebb1nj3ddlengsremh
X-Near-App-Id: fd828fa2-d468-4732-a3e8-0f883b25f3f8
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "data": [
    {
      "id": "6e1b2fbb-405e-4ae7-ad60-1d40af4d932e",
      "type": "answers",
      "attributes": {
        "rating": 73172,
        "comment": "Earum ut reiciendis. Non rerum et ab. Dicta doloribus aspernatur ratione blanditiis nihil. Cum porro fugit sed. Quis vel vel et vel vero. Veritatis explicabo ratione tempore iure quo modi enim.",
        "profile_id": "75d90a75-5ef7-4fe1-95ec-ebaa20d70ddb",
        "recipe_id": "0d97459a-82e1-47c7-bbde-db8995cbe22b",
        "created_at": "2018-01-09T11:54:00.284Z",
        "updated_at": "2018-01-09T11:54:00.284Z",
        "metadata": {}
      },
      "relationships": {
        "feedback": {
          "data": {
            "id": "507a082c-c874-41e3-a1bb-a6332dce1066",
            "type": "feedbacks"
          }
        }
      }
    }
  ]
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "data": {
      "type": "array"
    }
  }
}

Get an answer

Get an answer
GET/plugins/feedbacks/answers/97518f2d-9685-4060-a2fe-3226ba7f3205

Example URI

GET http://api.nearit.com//plugins/feedbacks/answers/97518f2d-9685-4060-a2fe-3226ba7f3205
URI Parameters
HideShow
answer_id
string (required) Example: 97518f2d-9685-4060-a2fe-3226ba7f3205
Request
HideShow
Headers
Content-Type: application/json
Accept: application/vnd.api+json
X-Near-Version: 2
Authorization: Bearer o27ud8wvznpjb5lgu47sh9eh2xof399iqy8ce853wb13erf5cesdhtafno8r6yva
X-Near-App-Id: 5d759dfe-a102-4815-9622-16640fbc1383
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "data": {
    "id": "dd11e4e3-626e-4a56-a4c4-1115dcc03dcc",
    "type": "answers",
    "attributes": {
      "rating": 73172,
      "comment": "Earum ut reiciendis. Non rerum et ab. Dicta doloribus aspernatur ratione blanditiis nihil. Cum porro fugit sed. Quis vel vel et vel vero. Veritatis explicabo ratione tempore iure quo modi enim.",
      "profile_id": "f07e72c9-9bff-4f19-83d2-b73b75147752",
      "recipe_id": "03e70e3e-9f5c-4ec4-ae34-261e7f85b004",
      "created_at": "2018-01-09T11:54:00.284Z",
      "updated_at": "2018-01-09T11:54:00.284Z",
      "metadata": {}
    },
    "relationships": {
      "feedback": {
        "data": {
          "id": "228f0e90-2d6a-48b4-b282-e09b6b788931",
          "type": "feedbacks"
        }
      }
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "rating": {
              "type": "number"
            },
            "comment": {
              "type": "string"
            },
            "profile_id": {
              "type": "string"
            },
            "recipe_id": {
              "type": "string"
            },
            "created_at": {
              "type": "string"
            },
            "updated_at": {
              "type": "string"
            },
            "metadata": {
              "type": "object",
              "properties": {}
            }
          }
        },
        "relationships": {
          "type": "object",
          "properties": {
            "feedback": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Update an answer

Update an answer
PUT/plugins/feedbacks/answers/97518f2d-9685-4060-a2fe-3226ba7f3205

Example URI

PUT http://api.nearit.com//plugins/feedbacks/answers/97518f2d-9685-4060-a2fe-3226ba7f3205
URI Parameters
HideShow
answer_id
string (required) Example: 97518f2d-9685-4060-a2fe-3226ba7f3205
Request  body
HideShow
Headers
Content-Type: application/json
Accept: application/vnd.api+json
X-Near-Version: 2
Authorization: Bearer 82vf4xpoqf8vd47r7snsrgaqvej1fmi2sbty6jvwkxrqv49xssr58kan3g0zc6k3
X-Near-App-Id: 090385b4-77d1-49e6-abd1-01c8ea540e5c
Body
{
  "data": {
    "type": "answers",
    "attributes": {
      "comment": "Sed aut quis qui inventore sint optio magni aut possimus. Minus et nesciunt nesciunt cum libero qui beatae. Ut qui at molestiae facere eveniet quam libero. Sit quod voluptatum omnis quae esse molestiae animi. Porro voluptatibus distinctio voluptate et eum earum quam laudantium dolorem.",
      "profile_id": "94d36b88-159d-4e33-926f-91241e6edf64",
      "rating": 7073,
      "recipe_id": "e1ffea4d-471c-4cba-b2a3-a85da019a278"
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "comment": {
              "type": "string"
            },
            "profile_id": {
              "type": "string"
            },
            "rating": {
              "type": "number"
            },
            "recipe_id": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
Response  200
HideShow
Headers
Content-Type: application/json
Body
{
  "data": {
    "id": "b417943b-c406-42f4-a619-538a90f702e4",
    "type": "answers",
    "attributes": {
      "rating": 7073,
      "comment": "Sed aut quis qui inventore sint optio magni aut possimus. Minus et nesciunt nesciunt cum libero qui beatae. Ut qui at molestiae facere eveniet quam libero. Sit quod voluptatum omnis quae esse molestiae animi. Porro voluptatibus distinctio voluptate et eum earum quam laudantium dolorem.",
      "profile_id": "995dd9b2-b426-4164-8a43-0a4e084246df",
      "recipe_id": "5d92e8b2-760e-46f2-bd74-5c4c151556fc",
      "created_at": "2018-01-09T11:54:00.284Z",
      "updated_at": "2018-01-09T11:54:09.931Z",
      "metadata": {}
    },
    "relationships": {
      "feedback": {
        "data": {
          "id": "068196bc-b321-4623-91cd-ff2bfcd81652",
          "type": "feedbacks"
        }
      }
    }
  }
}
Schema
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "attributes": {
          "type": "object",
          "properties": {
            "rating": {
              "type": "number"
            },
            "comment": {
              "type": "string"
            },
            "profile_id": {
              "type": "string"
            },
            "recipe_id": {
              "type": "string"
            },
            "created_at": {
              "type": "string"
            },
            "updated_at": {
              "type": "string"
            },
            "metadata": {
              "type": "object",
              "properties": {}
            }
          }
        },
        "relationships": {
          "type": "object",
          "properties": {
            "feedback": {
              "type": "object",
              "properties": {
                "data": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

Delete an answer

Delete an answer
DELETE/plugins/feedbacks/answers/97518f2d-9685-4060-a2fe-3226ba7f3205

Example URI

DELETE http://api.nearit.com//plugins/feedbacks/answers/97518f2d-9685-4060-a2fe-3226ba7f3205
URI Parameters
HideShow
answer_id
string (required) Example: 97518f2d-9685-4060-a2fe-3226ba7f3205
Request
HideShow
Headers
Content-Type: application/json
Accept: application/vnd.api+json
X-Near-Version: 2
Authorization: Bearer g4rt7h8t0gn9i3lfts3en4ockb7xcyfs9do9mqfq4j7zqgb31se5l3yn6mad1lex
X-Near-App-Id: 3810be1b-5292-4ab8-9bfb-2015ae894b05

Generated by aglio on 09 Jan 2018