Skip to content
This repository was archived by the owner on Feb 4, 2021. It is now read-only.

Commit 55aae39

Browse files
committed
Fix body
1 parent be535e0 commit 55aae39

File tree

5 files changed

+58
-39
lines changed

5 files changed

+58
-39
lines changed

api/protos/sessions.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ service SessionService {
1414
rpc CreateSession (CreateSessionRequest) returns (Session) {
1515
option (google.api.http) = {
1616
post: "/sessions"
17+
body: "*"
1718
};
1819
}
1920
rpc DeleteSession (DeleteSessionRequest) returns (google.protobuf.Empty) {

api/sessions.pb.go

Lines changed: 30 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/sessions.pb.gw.go

Lines changed: 1 addition & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/sessions.swagger.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,34 @@
5454
}
5555
}
5656
},
57+
"parameters": [
58+
{
59+
"name": "body",
60+
"in": "body",
61+
"required": true,
62+
"schema": {
63+
"$ref": "#/definitions/apiCreateSessionRequest"
64+
}
65+
}
66+
],
5767
"tags": [
5868
"SessionService"
5969
]
6070
}
6171
}
6272
},
6373
"definitions": {
74+
"apiCreateSessionRequest": {
75+
"type": "object",
76+
"properties": {
77+
"name": {
78+
"type": "string"
79+
},
80+
"password": {
81+
"type": "string"
82+
}
83+
}
84+
},
6485
"apiSession": {
6586
"type": "object",
6687
"properties": {

api/user_profile.pb.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)