Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Folyd
Copy link
Member

@Folyd Folyd commented Mar 10, 2025

get /users/:id/posts/:postId {
    path {
        @string(min_len=3)
        id: str,
        postId: int,
    }

    query {
        refresh: bool = true
    }

    print(path);
    let userId = path.id;
    let postId = path.postId;
    return f"Accessing post {postId} for user {userId}";
}

@Folyd Folyd merged commit d2dd70f into main Mar 10, 2025
5 of 6 checks passed
@Folyd Folyd deleted the path-params branch March 10, 2025 11:06
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.

2 participants