rest-api-generator

command module
v0.0.0-...-a40c7fe Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: MIT Imports: 5 Imported by: 0

README

rest-api-generator

Provide Go program to generate MOCK API.

Usage

Download : git clone https://github.com/mohit83k/rest-api-generator.git

Build : go build main.go

Run : ./main

Configuration

server : Server Related Details

apiRoutes : Each json object have a url and file name . When url is hit, it serves the specified file. Example:

{
  "url" : "/hello",
  "file" : "hello.html"
}

mockDir : Folder to contain the mock files. In our example, hello.html should be put there. If not configured, file will be searched for at absolute path.

Optional:

Command line args: config : Provide location of configuration file. Deafult is ./config.json

Help : `./main -h`

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