Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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

{
    "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

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


Video of usage

Screenshare - 2023-11-21 1_29_45 PM.mp4

  • No labels