project-layout icon indicating copy to clipboard operation
project-layout copied to clipboard

where put paths and router to make an API

Open jozef24 opened this issue 6 years ago • 5 comments

where put paths and router to make an API in this arquitecture

jozef24 avatar Sep 11 '19 15:09 jozef24

I want to know that

YJinHai avatar Sep 23 '19 09:09 YJinHai

I think in /internal, because it is unlikely that the same endpoints will be used in other projects

dhnikolas avatar Oct 10 '19 21:10 dhnikolas

how about put it on : /internal/server/rest/server.go for rest http /internal/server/graphql/server.go for graphql /internal/server/grpc/server.go for grpc

cheesycoffee avatar Dec 15 '20 00:12 cheesycoffee

Exactly what I mean

dhnikolas avatar Dec 15 '20 00:12 dhnikolas

It could also be: /internal/api/rest/server.go /internal/api/graphql/server.go /internal/api/grpc/server.go

lewislbr avatar Feb 23 '21 19:02 lewislbr