I understand that I can get data from my app’s API with a call such as:
https://{application-name}.bubbleapps.io/version-test/api/1.1/obj/User
For example, I would like to do something like GET User WHERE Name IS “Conor”
How could this be achieved through the URL call?
Thank you
scott3
February 15, 2018, 11:34pm
2
Glad you asked this @conor.barvello .
So, here’s an example of getting a User based on a set of search criteria. In this case, I wanted a user, in my test version, with the first name of “Scott”
Way #1
A few things to note:
Ensure your app is exposing a Data API
Click on the ‘Params’ button in Postman to expose the Key Value area, where you put in your Key/Constraint_type/Value as shown in the reference: https://bubble.io/reference#API.get_api.search_call.search_constraints
If you get it working in Postman, you should be able to structure things the way you want.
Another way to skin this cat:
Use an API Call to your app that returns Data
Way # 2
STEP 1 (setting up the WF parameters to take whatever you’re searching for)
STEP 2 (Finding the user)
STEP 3 (returning the data from the API in the workflow)
STEP 4 (postman call)
3 Likes
Amazing! I had no idea how convenient Postman was!