REST API with variable in the URL

Hi @bktag

Yes, it’s possible :slight_smile:

Inside Request settings, scroll down and find properties, add the new property let’s call it “id” and set default value.

Then in endpoint, do something like this

https://api.flotiq.com/api/v1/content/flotiqBlogPost/${properties->get(‘id’)}

This should be enough, now you can create single-page inside builder

  1. Create new page or use existing
  2. Set the source to the request you’ve created
  3. Set route to include /:id (this is must, because the property you created is id)

We are working on improving variable system. The REST API doesn’t have yet variable popup which would make things easier.