@@ -97,9 +97,9 @@ This endpoint serves as the single entry point for accessing different data mode
97
97
2 . **Create Item**
98
98
* **Method:** `POST`
99
99
* **Path:** `/api/v1/data?model=<model_name>`
100
- * **Request Body:** JSON object representing the item to create.
100
+ * **Request Body:** JSON object representing the item to create (using `camelCase` keys) .
101
101
* **Success Response:** `201 Created` with `SuccessApiResponse<T>` containing the created item.
102
- * **Example:** `POST /api/v1/data?model=category` with body `{"name": "Sports", ... }`
102
+ * **Example:** `POST /api/v1/data?model=category` with body `{"name": "Sports", "description": "News about sports" }`
103
103
104
104
3 . **Get Item by ID**
105
105
* **Method:** `GET`
@@ -111,10 +111,10 @@ This endpoint serves as the single entry point for accessing different data mode
111
111
4 . **Update Item by ID**
112
112
* **Method:** `PUT`
113
113
* **Path:** `/api/v1/data/<item_id>?model=<model_name>`
114
- * **Request Body:** JSON object representing the complete updated item (must include `id`).
114
+ * **Request Body:** JSON object representing the complete updated item (must include `id`, using `camelCase` keys ).
115
115
* **Success Response:** `200 OK` with `SuccessApiResponse<T>`.
116
116
* **Error Response:** `404 Not Found`, `400 Bad Request`.
117
- * **Example:** `PUT /api/v1/data/some-category-id?model=category` with updated category JSON.
117
+ * **Example:** `PUT /api/v1/data/some-category-id?model=category` with updated category JSON (e.g., `{"id": "...", "name": "...", "description": "..."}`) .
118
118
119
119
5 . **Delete Item by ID**
120
120
* **Method:** `DELETE`
@@ -140,9 +140,9 @@ These endpoints manage application settings. Currently, they operate on a global
140
140
2 . **Update Display Settings**
141
141
* **Method:** `PUT`
142
142
* **Path:** `/api/v1/users/me/settings/display`
143
- * **Request Body:** JSON object representing the complete `DisplaySettings`.
143
+ * **Request Body:** JSON object representing the complete `DisplaySettings` (using `camelCase` keys) .
144
144
* **Success Response:** `200 OK` with `SuccessApiResponse<DisplaySettings>` containing the updated settings.
145
- * **Example:** `PUT /api/v1/users/me/settings/display` with `DisplaySettings` JSON in the body .
145
+ * **Example:** `PUT /api/v1/users/me/settings/display` with body `{"baseTheme": "dark", "accentTheme": "newsRed", ...}` .
146
146
147
147
3 . **Get Language Setting**
148
148
* **Method:** `GET`
0 commit comments