Skip to content
Snippets Groups Projects
Commit 0bf6a7c4 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6697 Auf Post umgestellt

parent 0dbe0c07
No related branches found
No related tags found
No related merge requests found
......@@ -4,12 +4,14 @@ config_version: 3
http:
rules:
- selector: de.ozgcloud.nachrichten.antragraum.AntragraumService.GetRueckfrage
get: "/api/v1/rueckfrage/{id}/{samlToken}"
post: "/api/v1/rueckfrage"
body: "*"
- selector: de.ozgcloud.nachrichten.antragraum.AntragraumService.SendRueckfrageAnswer
post: "/api/v1/antworten"
body: "*"
- selector: de.ozgcloud.nachrichten.antragraum.AntragraumService.FindRueckfragen
get: "/api/v1/rueckfragen/{postfachId}/{samlToken}"
post: "/api/v1/rueckfragen"
body: "*"
- selector: de.ozgcloud.vorgang.grpc.command.CommandService.GetCommand
get: "/api/v1/command/{id}"
- selector: de.ozgcloud.vorgang.grpc.binaryFile.BinaryFileService.GetBinaryFileContent
......
server:
port: 8082
port: 8383
grpc:
mock: false
url: localhost:9093
logging:
level: "INFO"
\ No newline at end of file
level: "DEBUG"
\ No newline at end of file
......@@ -35,13 +35,16 @@ import (
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"google.golang.org/grpc"
"google.golang.org/grpc/metadata"
pb "antragsraum-proxy/gen/go"
)
func StartHttpGateway(conf config.Config) *http.Server {
ctx := context.Background()
md := metadata.Pairs("CLIENT_NAME-bin", "antragraum-proxy")
ctx := metadata.NewOutgoingContext(context.Background(), md)
ctx, cancel := context.WithCancel(ctx)
defer cancel()
grpcEndpoint := conf.Grpc.Url
......@@ -70,3 +73,5 @@ func StartHttpGateway(conf config.Config) *http.Server {
return httpServer
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment