Skip to content

Commit

Permalink
Require body in Create request (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
Callisto13 authored Nov 2, 2022
1 parent 4132a20 commit 8d04619
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 68 deletions.
107 changes: 54 additions & 53 deletions api/services/microvm/v1alpha1/microvms.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion api/services/microvm/v1alpha1/microvms.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/services/microvm/v1alpha1/microvms.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ service MicroVM {
rpc CreateMicroVM(CreateMicroVMRequest) returns (CreateMicroVMResponse) {
option (google.api.http) = {
post: "/v1alpha1/microvm"
body: "microvm"
};
}
rpc DeleteMicroVM(DeleteMicroVMRequest) returns (google.protobuf.Empty) {
Expand Down
10 changes: 10 additions & 0 deletions api/services/microvm/v1alpha1/microvms.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@
}
}
},
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/typesMicroVMSpec"
}
}
],
"tags": [
"MicroVM"
]
Expand Down
14 changes: 0 additions & 14 deletions infrastructure/mock/ports.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8d04619

Please sign in to comment.