Since it is a browser frontend I would go with HTML/JavaScript only. No need to use PHP or any server side language IMHO. This has the advantage of being extremely portable.
I would also use a JS framework for that purpose ( the trend nowadays seems to be angular).
Answer from Tivie on Stack OverflowSince it is a browser frontend I would go with HTML/JavaScript only. No need to use PHP or any server side language IMHO. This has the advantage of being extremely portable.
I would also use a JS framework for that purpose ( the trend nowadays seems to be angular).
REST really, really isn't new. It's been a part of HTTP at least as far back as HTTP 1.1
Have a look at this question: Backbone.js frontend with RESTful Rails backend? the top answer lists 20 possible frameworks for building a front end.
Tools to generate front-end code for existing rest API
Creating a front-end for REST API - Stack Overflow
Light weight front end wrapper to an API?
What do you use to quickly create a frontend for your api?
Videos
Disclaimer: I am a backend dev, can do front-end but don't prefer it. Also savvy with chatgpt and c#, python.
I have a rest API and now want to build some UI functionality leveraging it. I could generate the js client using swagger and have UI and Interactivity written from scratch by putting HTML, js and CSS together. However am wondering if any gpt tools can help me out here?
Could I say like here's my rest API, here's the swagger spec, , generate a web form using API1/2, where results of API1 should be rendered in a dropdown, and any item selected in the dropdown should invoke API2 to get details by passing a parameter "X" from API1.
Not sure if this is the best place to ask, I've been out of the front end world for a while, but I know there are a ton of frameworks in the space these days. I have an API that I'd like to expose via a very simple UI. Is there a framework that's built for for this use case? Like, bare minimum stuff here. If I have an endpoint that returns json, I want a page that will simply executes that endpoint (with parameters) and then loops over the resulting json spitting out something decent looking. And if makes sense for the user to be able to click into one of the items listed, a way to link to a page with a parameter that would do the same. Something that's like a half step fancier than Swagger?
I feel really silly for describing it this way, and maybe the answer is just a basic/popular web framework for the language of my choice, but also maybe something like this exists? 😂 Thanks!