go_dnd5eapi

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2021 License: MIT Imports: 17 Imported by: 0

README

go-dnd5eapi

A go client for interacting with the dnd5eapi.

Install

go get github.com/kjkondratuk/go-dnd5eapi

Create a client

Simply:

client := godnd5eapi.NewApiClient("<Base URL Here>"))

Or, create a client with a client with a custom config:

myCustomClient := &http.Client{
    // ... custom client options here ...
}

client := godnd5eapi.NewApiClient("<Base URL Here>", godnd5eapi.WithHttpClient(myCustomClient))

Supported Endpoints

(Work-in-progress)

Endpoint Fully Implemented Partially Implemented Not Implemented
endpoints X - -
------------------------------- --- --- ---
ability-scores - X -
classes - X -
classes-proficiency-rel - X -
damage-types - X -
equipment - X -
languages - X -
proficiencies - X -
races - X -
skills - X -
skill-ability-rel - X -
subclasses - X -
traits - X -
------------------------------- --- --- ---
conditions - - -
equipment-categories - - -
features - - -
magic-schools - - -
monsters - - -
spellcasting - - -
spells - - -
starting-equipment - - -
subraces - - -
weapon-properties - - -

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

func NewClient

func NewClient(basicsProvider api.BasicsProvider) *Client

Jump to

Keyboard shortcuts

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