api-play

command module
v0.0.0-...-849bbb1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 11 Imported by: 0

README

ApiOpsDemo

A demo service with modifiable APIs for playing with a lot of things. You can add latency to an API, errors and call other apis or even make the healthcheck fail.

This is a great way to play with a service mesh like Kuma for example.

Running it

go run ./... -config-file config.yaml

Where config.yaml is a configuration of the apis to run. The file is monitored so if you modify it we reload automatically it to change the apis served.

You can also change the APIs by using the API directly with a POST to /api/dynamic.

Check the openAPI spec for full documentation of what can be done.

Dev

Run the app:

go run ./...

After changing the openAPI spec:

go generate ./...

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg
api
Package api provides primitives to interact with the openapi HTTP API.
Package api provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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