Comments (2)
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/ - Should return a specific product or 404 if not found.
from flask-restx.
Thank you for clarification!
from flask-restx.
Related Issues (20)
- Adding Default Decorator to Specific endpoints ( Eg : All methods except GET ) : User Authorization Usecase HOT 3
- Value of different types (e.g., str, list) HOT 2
- Flask restx is not compatible with StrictUndefined mode of jinja
- Flask 3.0.0 HOT 12
- ModuleNotFoundError: No module named 'flask.scaffold' HOT 11
- Wrong status code and message on responses when handling `HTTPException`s HOT 1
- Flask-restx with Marshmallow schemas HOT 2
- Support Werkzeug 3.0 HOT 5
- Flask Limiter Integration HOT 2
- Provide feedback for improvement
- Update enums schema from OpenAPI 2.0 to OpenAPI 3.0 HOT 2
- Error : `ModuleNotFoundError: No module named 'flask.scaffold'` HOT 2
- How can Model represent a non-json schema for the swagger example?
- [bug] v1.3.0 ModuleNotFoundError: No module named 'importlib.metadata' (v1.2.0 is OK) HOT 1
- request body validation is not working HOT 2
- should RESTX_ERROR_404_HELP be disabled by default? HOT 1
- How to integrate restx with blueprint based library like openbrokerapi
- How to use 'form' location and process request as json? HOT 6
- Problem with adding oauth2.0 (flow=password) authentication function settings on the swagger page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flask-restx.