go-wpjson

module
v0.0.0-...-f68bb27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2025 License: MIT

README ¶

GO WPJSON

A toolkit to parse WordPress Rest API specification.

WPJSON As Library 📚

package main

import (
	"github.com/oneaudit/go-wpjson/pkg/engine"
	"github.com/oneaudit/go-wpjson/pkg/types"
)

func main() {
	options := types.Options{ /*options*/ }
	content, _ := engine.LoadContent(options)
	spec, _ := engine.ParseSpecification(content)
	endpoints, _ := engine.ParseEndpoints(spec)
	// ...
}

WPJSON CLI Usage 🤖

WPJson requires Go 1.23+ to install successfully.

CGO_ENABLED=1 go install github.com/oneaudit/go-wpjson/cmd/go-wpjson@latest
wpjson-go -h

This will display help for the tool. Here are all the switches it supports.

A toolkit to parse WordPress Rest API specification.

Usage:
  wpjson_go [flags]

Flags:
TARGET:
   -t, -target string  target input file or URL to parse

CONFIGURATION:
   -config string  path to the katana-ng configuration file

OUTPUT:
   -o, -output string  output file to save the results
   -silent             display output only
   -v, -verbose        display verbose output
   -debug              display debug output
   -version            display project version

Directories ¶

Path Synopsis
cmd
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL