Skip to content

Instantly share code, notes, and snippets.

View lab0ryu's full-sized avatar
💭
I may be slow to respond.

labor lab0ryu

💭
I may be slow to respond.
View GitHub Profile
@lab0ryu
lab0ryu / get-endpoints.sh
Created April 28, 2021 05:55 — forked from Mpdreamz/get-endpoints.sh
Get all of elasticsearch's REST endpoints, come up with method names for them and dedup them, Used in newer versions of NEST to generate the raw client (if you only need to pass and receive strings from the client. Scroll down for example output
#!/bin/bash
# This scripts scans the elasticsearch source code for all the registered REST endpoints
# It will put the formatted output in $DEFINITIONOUTPUTFILE
# [MethodName] [HttpVerb] [Route]
ESFOLDER="../elasticsearch"
DEFINITIONOUTPUTFILE="src/Generated/rest-actions.txt"
# Find all the lines that registerHandlers