Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Currently this API works in ways, depending on params. story_category_id is mandator, indicator_id is optional.

Both story_category_id & indicator_id are present

If both are present, then it returns json of single hash

example

URL: {{makerble}}/api/v2/scale_indicator_choices?story_category_id=1390&indicator_id=2701

response

Code Block
{
    "choice": "single_choice",
    "choice_value": ""
}

Only story_category_id is present

If only story_category_id is present, then it returns all the rows corresponding to that id

example

URL: {{makerble}}/api/v2/scale_indicator_choices?story_category_id=1390

response

Code Block
[
    {
        "indicator_id": 2693,
        "choice": "single_choice",
        "choice_value": ""
    },
    {
        "indicator_id": 2705,
        "choice": "single_choice",
        "choice_value": ""
    }
  ]


Video of usage

...