Menu

Build a REST CRUD screen from an OpenAPI spec without writing code
📰

Build a REST CRUD screen from an OpenAPI spec without writing code

DEV Community: angular·NgxViewBuilder·about 19 hours ago
#GEiZ5Z4X
#devtoangular#devto#dev#form#delete
Reading 0:00
15s threshold

Most admin screens are the same thing over and over: a table, a "New" button, a form in a dialog, edit on row click, delete in a row menu. Wiring that to a REST API by hand takes an afternoon each time.

In this video I build the whole thing in NGX View Builder, starting from an empty page, against a demo CRM API.

What happens in the video

1. Endpoints become data sources (0:50)

The API tab reads the OpenAPI spec and lists every endpoint. You can try a call right there, then turn the endpoints you need into data sources. Each one keeps its method and URL, including path parameters like {id} .

2. A table bound to the list endpoint (2:04)

The table gets List customers as its source, and the columns are picked from the response fields.

3. A dialog form for one record (2:48)

A "New customer" button opens a dialog. Inside it, an object panel holds one record, and the fields are named like the API properties, so the form value already has the shape the API expects.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.