Closed sergeyepimakhov closed 11 months ago
flask-restx
is designed to implement RESTful type APIs, so custom HTTP methods are not supported. There are also compatibility issues, because Swagger 2.0 that is currently used to generate the docs doesn't support custom methods either to my knowledge.
You shouldn't need a list function in a truly RESTful api, because GET on a resource with no identifier should return a list. For example:
GET /products - Should return a list of all products.
GET /products/
Thank you for clarification!
Ask a question Is there a way to use a custom HTTP method i.e. LIST among standard ones GET, POST etc.?
Currently we are getting back:
Additional context Flask overrides did't help: https://flask.palletsprojects.com/en/2.3.x/patterns/methodoverrides/