Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

basic_crud

This is an example app that defines its own API routes for managing its models.

First initialize the database:

reflex db init
reflex db migrate

Then run the app:

reflex init
reflex run

In the UI, the list of known products is displayed on the left. On the right/main screen, user can select HTTP Method, and enter API endpoint in the box immediately to the right of the drop down.

Endpoints are products for GET and POST, and products/[id] for GET, PUT, and DELETE.

The body of the response goes in the text area below.

In the bottom pane, the results of sending the HTTP request are shown.