commit e97fc0978a353650f084f0c5d9702becc1f1e053 parent 5790014145806b02def774faf3ca1131857c3dde Author: Christian Grothoff <christian@grothoff.org> Date: Sat, 25 May 2024 21:47:04 +0200 -FIX: it is a list Diffstat:
| M | core/api-merchant.rst | | | 16 | ++++++++++++---- |
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/core/api-merchant.rst b/core/api-merchant.rst @@ -1714,15 +1714,23 @@ Managing product categories **Response:** :http:statuscode:`200 Ok`: - The body is a `CategoryList`. - :http:statuscode:`204 No content`: + The body is a `CategoryListResponse`. + :http:statuscode:`204 No Content`: There are no known categories. **Details:** - .. ts:def:: CategoryList + .. ts:def:: CategoryListResponse + + interface CategoryListResponse { + + categories: CategoryListEntry[]; + + } + + .. ts:def:: CategoryListEntry - interface CategoryList { + interface CategoryListEntry { // Unique number for the category. category_id: Integer;