I am newer with IHP and i would like to know if is possible create APIs with IHP
1 Like
Yes, definitely! See the IHP Guide on Views#json (also websockets for how to create a JSON API.
1 Like
By the way, you could probably also run GitHub - PostgREST/postgrest: REST API for any Postgres database on the IHP database to get an “API for free”, since IHP uses Postgres.
I haven’t tried myself yet. You’d probably have to do some initial work on setting up row level security for PostgresT (you can actually use RLS with IHP too IHP.LoginSupport.Helper.Controller ). It might be best to use views to keep things stable for PostgresT.