mock-server command - github.com/Molsbee/mock-server - Go Packages

mock-server

command module
v0.0.0-...-02590bd Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

README

mock-server

General purpose mock server that can be configured through rest api

Collection: Directory: CollectionName Group: File containing common routes

Example Collection: BMC Groups: servers machines

Path: /bmc/servers/{path} /bmc/machines/{path}

Route

{
  "method": "GET",
  "path": "/",
  "headers": {
    "Authorization": "Bearer token",
    "Content-Type": "application/json"
  },
  "statusCode": 200,
  "body": "{\"some\": \"info\"}"
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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