restsrv

command module
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: MIT Imports: 10 Imported by: 0

README

restsrv

A sample HTTP2 REST API Server.

Quick Start

You need the latest version of Go https://golang.org

$ git clone https://github.com/jecolon/restsrv
$ cd restsrv
$ mkdir tls
$ cd tls
$ go run /usr/local/go/src/crypto/tls/generate_cert.go --host localhost
$ cd ..
$ go build
$ ./restsrv

Navigate to https://localhost:8443 for file server homepage and https://localhost:8443/api/v1/posts for REST API using github.com/jecolon/post package.

Documentation

Overview

restsrv is a sample REST API server for posts provided by the post package at https://github.com/jecolon/post.

Jump to

Keyboard shortcuts

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