Skip to content

masakazutakewaka/grpc-proto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What's this?

A sample implementation of micro services written in Go with Protocal Buffer, gRPC and grpc-gateway.

alt text

inspired by https://github.com/tinrab/spidey

Execute following commands to build up services

$ dep init
$ docker-compose up --build gateway

open localhost:8000 in your browser.

HTTP endpoints

Items

  • GET: /item/{id}
  • POST: /item
    • e.g. $ curl -X POST localhost:8000/item -d '{"name": "glove", "price": 3000}'

Users

  • GET: /user/{id}
  • POST: /user
    • e.g. $ curl -X POST localhost:8000/user -d '{"name": "conor"}'

Coordinates

  • GET: /item/{itemId}/coordinates
  • POST: /coordinate
    • e.g. $ curl -X POST localhost:8000/coordinate -d '{"userId": 1, "itemIds": [2,3,4]}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published