Stateless API stacking

Hey guys,

Working with a stateless API that has calls that stack onto each other, which means there’s no general tag to reference to with each call for context.

I ask someone a question and the answer is assigned an ID. The response is another question based on that response and previous contextual responses. Each call essentially is stacked IDs until we reach our conclusion. For example:

      {"id": "s_47", "choice_id": "present", "initial": true},
      {"id": "s_22", "choice_id": "present", "initial": true},
      {"id": "p_81", "choice_id": "absent"}

I’m trying to work out how best to structure the calls in Bubble where I’m essentially adding another field with each call - if that makes sense?

Hi @harrytuckerr

they have to be related in somehow? s_47 related with s_22, how do you know that p_81 is related to s_47? I’m still asking myself :thinking:

there’s no general tag to reference to with each call

adding another field with each call

Those particular IDs don’t have any direct relations. They’re answers to different questions, and there are different outcomes based on your responses to each question.