Versions Compared

Key

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

Currently this API works in ways, depending on params. Base URL: https://makerble.com/api/v2/scale_indicator_choices

Description: based on story_category_ids & indicator_id is mandator, indicator_id is optional.

...

, or get paginated records based on page & per_page values.

Get a specific record

Request: To get a specific record, provide the story_category_id

...

and indicator_id

...

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

example

URL: https://makerble.com/api/v2/scale_indicator_choicesin URL

Code Block
GET /?story_category_id=1390&indicator_id=2701

responseResponse

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: https://makerble.com/api/v2/scale_indicator_choices?story_category_id=1390

...


]

Get Paginated Records

Request: To get paginated records, provide the page and per_page URL. Default values are page=1 and per_page=10.

Code Block
GET /?page=2&per_page=3

Response

Code Block
[
  {
 {   "indicator_id": 2669,
    "choice": "single_choice",
    "indicatorchoice_idvalue": 2693, ""
  },
  {
    "indicator_id": 2667,
    "choice": "single_choice",
        "choice_value": ""
    },
 
  {

       "indicator_id": 27052670,
   
    "choice": "single_choice",
        "choice_value": ""
    }
 
]


Video of usage

...