Skip to content

Commit

Permalink
reverted the Dishes->Meals naming difference
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Mar 11, 2024
1 parent 8e1a4f4 commit ec9b2bc
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 84 deletions.
58 changes: 29 additions & 29 deletions server/api/tumdev/campus_backend.pb.go

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

46 changes: 23 additions & 23 deletions server/api/tumdev/campus_backend.pb.gw.go

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

10 changes: 5 additions & 5 deletions server/api/tumdev/campus_backend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ service Campus {
};
}

rpc ListMeals(ListMealsRequest) returns (ListMealsReply) {
rpc ListDishes(ListDishesRequest) returns (ListDishesReply) {
option (google.api.http) = {
get: "/dishes",
response_body: "meal"
response_body: "dish"
};
}

Expand Down Expand Up @@ -385,7 +385,7 @@ message Canteen {
double latitude = 4;
}

message ListMealsRequest {
message ListDishesRequest {
string canteen_id = 1;
// >=2022 until the current year
int32 year = 2;
Expand All @@ -395,8 +395,8 @@ message ListMealsRequest {
int32 day = 4;
}

message ListMealsReply {
repeated string meal = 1;
message ListDishesReply {
repeated string dish = 1;
}

message ListResponsiblePersonRequest {}
Expand Down
8 changes: 4 additions & 4 deletions server/api/tumdev/campus_backend.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -520,9 +520,9 @@
]
}
},
"/meal/allMeals": {
"/dishes": {
"get": {
"operationId": "Campus_ListMeals",
"operationId": "Campus_ListDishes",
"responses": {
"200": {
"description": "",
Expand Down Expand Up @@ -1324,10 +1324,10 @@
}
}
},
"apiListMealsReply": {
"apiListDishesReply": {
"type": "object",
"properties": {
"meal": {
"dish": {
"type": "array",
"items": {
"type": "string"
Expand Down
Loading

0 comments on commit ec9b2bc

Please sign in to comment.