My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/python | |
# http://exploreflask.com/en/latest/views.html | |
# https://stackoverflow.com/questions/51691730/flask-middleware-for-specific-route | |
# https://dev.to/rhymes/logging-flask-requests-with-colors-and-structure--7g1 | |
import logging | |
from logging.handlers import RotatingFileHandler | |
from flask import Flask, request, jsonify | |
from time import strftime |