Skip to content

update: add AppConfig state and use it in the example handler, add dt…#503

Open
apetrovic6 wants to merge 1 commit intorapina-rs:mainfrom
apetrovic6:#502-todo-app-example-update
Open

update: add AppConfig state and use it in the example handler, add dt…#503
apetrovic6 wants to merge 1 commit intorapina-rs:mainfrom
apetrovic6:#502-todo-app-example-update

Conversation

@apetrovic6
Copy link
Copy Markdown

@apetrovic6 apetrovic6 commented Apr 16, 2026

Summary

  • Add AppConfig state and use it in the example handler
  • Add dto validation and .env.example
    What does this PR do?
    It demonstrates how to add AppConfig, extract data from environment variables and inject it in handlers
    It demonstrates how to validate incoming request DTOs

Related Issues

Closes #502

Checklist

  • cargo fmt passes
  • cargo clippy has no warnings
  • Tests pass
  • [] Documentation updated (if needed)

@apetrovic6 apetrovic6 requested a review from arferreira as a code owner April 16, 2026 17:21
@apetrovic6 apetrovic6 force-pushed the #502-todo-app-example-update branch from 440b9fa to 817595e Compare April 16, 2026 18:17
@ShiraiEd ShiraiEd self-requested a review April 17, 2026 00:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Good First Issue]: Update example todo-app: add AppConfig state and use it in a handler

1 participant