Usage with flaskRESTFUL
See original GitHub issueHow can metrics be logged and customized when API is constructed using flaskRESTful library, where instead of routes, you have:
class Coordinates(Resource):
def __init__(self):
self.parser = reqparse.RequestParser()
self.parser.add_argument('radius', type=float, required=False, help="Radius", location='args', default=1)
def post(self):
args = self.parser.parse_args()
Issue Analytics
- State:
- Created 4 years ago
- Comments:25 (12 by maintainers)
Top Results From Across the Web
Flask-RESTful — Flask-RESTful 0.3.8 documentation
Flask -RESTful is an extension for Flask that adds support for quickly building REST APIs. It is a lightweight abstraction that works with...
Read more >Flask REST API Tutorial
REST API services let you interact with the database by simply doing HTTP requests. In this article you learn how to write a...
Read more >Developing RESTful APIs with Python and Flask
TL;DR: Throughout this article, we will use Flask and Python to develop a RESTful API. We will create an endpoint that returns static...
Read more >Using basic Flask vs Flask-RESTful for API development
REST is a pretty flexible architecture, but there's a few points worth thinking about in your approach using just Flask, which Flask-RESTful ......
Read more >Python | Build a REST API using Flask
Flask is a popular micro framework for building web applications. Since it is a micro-framework, it is very easy to use and lacks...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I just realized I already have an example for Flask-RESTful here 🤦♂️ https://github.com/rycus86/prometheus_flask_exporter/blob/master/examples/restful-with-blueprints/server.py
Does this help answer your question @captify-dieter ?
Note @ziedbf you have a typo in the url: “/me[r]trics”