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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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