Hi there! I was wondering if it's possible to utilize Twill for the frontend of a Next.js application while also using it as an API.
ckmirafss
04/29/2023, 9:49 AM
Essentially, my goal is to segregate Twill as the backend and Next.js as the frontend, with each having its own respective server.
i
ifox
04/29/2023, 10:01 AM
Hi @ckmirafss for sure, you can expose an API from your Twill application and use it from any frontend solution
c
ckmirafss
04/29/2023, 10:06 AM
Thank you @ifox for your response! I was wondering if it is possible to use both blocks and input fields in order to extract the necessary data from Twill, or if one method is preferred over the other.
ckmirafss
04/29/2023, 10:08 AM
Additionally, I would like to inquire whether images can also be utilized from the Twill API?
ckmirafss
04/29/2023, 10:09 AM
In case you have access to the API documentation, could you kindly share it with me? It would help me avoid asking repetitive questions. Apologies for any inconvenience caused!
i
ifox
05/03/2023, 3:34 PM
@ckmirafss you can extract data from any field, blocks work great with frontend apps. Definitely you'll get everything you need from image to render them. Regarding API documentation, you can put together your own API using Laravel JSON responses, or you can use https://github.com/area17/twill-api and https://github.com/area17/twill-api-client.