Skip to content

m7medVision/wpswag

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wpswag

wpswag converts a WordPress REST API into an OpenAPI 3.0.3 JSON file.

Install

go install github.com/m7medVision/wpswag@latest

Build

go build -o wpswag .

Usage

./wpswag convert -u "https://example.com/wp-json" -o openapi.json

You can also run it without building:

go run . convert -u "https://example.com/wp-json"

Notes

  • Input can be a WordPress REST URL or a local JSON file.
  • Output defaults to openapi.json.
  • The generated spec includes typed schemas for core wp/v2 resources when schema metadata is available.

About

Create an OpenAPI/Swagger spec from a WordPress REST entry point.

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • Go 99.8%
  • Just 0.2%