You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ❌ |**Stripe Payments**|`One-Time` and `Subscriptions`|
23
+
| ❌ |**Async Tasks**| via `Celery`|
24
+
25
+
26
+
> Something is missing? Submit a new `product feature request` using the [issues tracker](https://github.com/app-generator/flask-soft-ui-dashboard/issues).
26
27
27
28
<br />
28
29
@@ -148,6 +149,35 @@ At this point, the app runs at `http://127.0.0.1:5000/`.
148
149
149
150
<br />
150
151
152
+
## ✨ API Generator
153
+
154
+
This module helps to generate secure APIs using DRF via a simple workflow:
155
+
156
+
- Edit/add your model in `apps/models.py`
157
+
- Migrate the database:
158
+
159
+
```bash
160
+
$ flask shell
161
+
>>> from apps import db
162
+
>>> db.create_all()
163
+
```
164
+
165
+
- Update Configuration:
166
+
-`apps/config .py`, section `API_GENERATOR`
167
+
- Generate the API code:
168
+
-`$ flask gen_api` # the new code is saved in `apps/api`
169
+
- Access the API in the browser:
170
+
-`/api/MODEL_NAME/`
171
+
172
+
The API is secured using the JWT mechanism provided by DRF.
173
+
174
+
- GET requests are public (GET all, get Item)
175
+
- Mutating requests are protected by token generated based on the user credentials (`username`, `pass`).
176
+
177
+
> A POSTMAN Collection Sample can be found [here](./media).
178
+
179
+
<br />
180
+
151
181
### 👉 Create Users
152
182
153
183
By default, the app redirects guest users to authenticate. In order to access the private pages, follow this set up:
0 commit comments