rest

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

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 6 Imported by: 0

README

Rest API Service

Getting Started

Configuration

  • FQDN: hanako.api.rest
  • Type: api
  • Alias: rest

Dependencies

  1. This service depend on anime service, please make sure it is running.

  2. This service depend on api gateway for translate http request to rpc call. the default is using micro api gateway

    this command simplify to run the api

    make api
    
  3. Micro services depend on service discovery. The default is multicast DNS, a zeroconf system. In the event you need a resilient multi-host setup we recommend etcd.

    # install etcd
    brew install etcd
    
    # run etcd
    etcd
    

Usage

A Makefile is included for convenience

Run without compile (For development)

make dev

Build the binary

make build

Run the service

./rest-api

Build a docker image

make docker

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