Skip to content

Commit

Permalink
Merge pull request #56 from moevm/back-fix-3
Browse files Browse the repository at this point in the history
corrected url
  • Loading branch information
AnjeZenda authored Dec 5, 2024
2 parents 5b8e2a7 + 43b6fba commit 9115a46
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion server/api/plants/v1/plants.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ service PlantsAPI {

rpc GetPlantByIdV1 (GetPlantByIdV1Request) returns (GetPlantByIdV1Response) {
option (google.api.http) = {
get: "/api/palnts/{id}"
get: "/api/plants/{id}"
};
};
rpc GetCareRuleV1 (GetCareRuleV1Request) returns (GetCareRuleV1Response) {
Expand Down
60 changes: 30 additions & 30 deletions server/gen/docs/plants/v1/plants.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -124,36 +124,6 @@
]
}
},
"/api/palnts/{id}": {
"get": {
"operationId": "PlantsAPI_GetPlantByIdV1",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1GetPlantByIdV1Response"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"PlantsAPI"
]
}
},
"/api/palnts/{page}/{size}/{sort}": {
"post": {
"operationId": "PlantsAPI_GetPlantsV1",
Expand Down Expand Up @@ -433,6 +403,36 @@
"PlantsAPI"
]
}
},
"/api/plants/{id}": {
"get": {
"operationId": "PlantsAPI_GetPlantByIdV1",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1GetPlantByIdV1Response"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/rpcStatus"
}
}
},
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"type": "string"
}
],
"tags": [
"PlantsAPI"
]
}
}
},
"definitions": {
Expand Down
2 changes: 1 addition & 1 deletion server/internal/pkg/pb/plants/v1/plants.pb.go

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

2 changes: 1 addition & 1 deletion server/internal/pkg/pb/plants/v1/plants.pb.gw.go

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

0 comments on commit 9115a46

Please sign in to comment.