Skip to content

Commit

Permalink
Review Suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Jim Hodapp <[email protected]>
  • Loading branch information
calebbourg and jhodapp committed Aug 23, 2024
1 parent a91bd6b commit 2966a9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/src/controller/action_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub async fn create(
responses(
(status = 200, description = "Successfully retrieved a specific Action by its id", body = [entity::notes::Model]),
(status = 401, description = "Unauthorized"),
(status = 404, description = "Note not found"),
(status = 404, description = "Action not found"),
(status = 405, description = "Method not allowed")
),
security(
Expand Down
6 changes: 3 additions & 3 deletions web/src/controller/overarching_goal_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use log::*;
params(ApiVersion),
request_body = entity::overarching_goals::Model,
responses(
(status = 201, description = "Successfully Created a New OverarchingGoal", body = [entity::overarching_goals::Model]),
(status = 201, description = "Successfully Created a New Overarching Goal", body = [entity::overarching_goals::Model]),
(status= 422, description = "Unprocessable Entity"),
(status = 401, description = "Unauthorized"),
(status = 405, description = "Method not allowed")
Expand Down Expand Up @@ -67,7 +67,7 @@ pub async fn create(
responses(
(status = 200, description = "Successfully retrieved a specific Overarching Goal by its id", body = [entity::notes::Model]),
(status = 401, description = "Unauthorized"),
(status = 404, description = "Note not found"),
(status = 404, description = "Overarching Goal not found"),
(status = 405, description = "Method not allowed")
),
security(
Expand Down Expand Up @@ -149,7 +149,7 @@ pub async fn index(
State(app_state): State<AppState>,
Query(params): Query<HashMap<String, String>>,
) -> Result<impl IntoResponse, Error> {
debug!("GET all OverarchingGoals");
debug!("GET all Overarching Goals");
debug!("Filter Params: {:?}", params);

let overarching_goals = OverarchingGoalApi::find_by(app_state.db_conn_ref(), params).await?;
Expand Down

0 comments on commit 2966a9b

Please sign in to comment.