Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

A little rust tool to extract api endpoints from `discord/discord-api-docs`

Notifications You must be signed in to change notification settings

CatUniversity/discord-api-endpoints-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord API Endpoints Extractor

A little rust tool that walks over all the files in the downloaded zip of discord/discord-api-docs@main, and extracts documented endpoints from the markdown files.

All endpoints are printed to stdout in the following format

/name/of/endpoint:
  - METHOD-1
  - METHOD-2

How to use?

You need

  • Rust
  • Cargo

Extracting endpoints

Firstly, execute cargo build
This installs all dependencies and creates the necessary executeable at ./target/debug/discord-api-endpoints-extractor{.extension}

Now that you have the executeable, you can simply run
./target/debug/{executeable} > your_yaml_file.yaml

About

A little rust tool to extract api endpoints from `discord/discord-api-docs`

Resources

Stars

Watchers

Forks

Languages