Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the list of missed responses #10

Open
YuriiMotov opened this issue Oct 25, 2024 · 1 comment
Open

Get the list of missed responses #10

YuriiMotov opened this issue Oct 25, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@YuriiMotov
Copy link

Is it possible to get a list of missed responses for my app?
I don't want to automatically add responses. I want to just to see the list of missed ones

@app.get("/{item_id}")
def get_item(item_id: str):
    if not item_exist(item_id):
        raise HTTPException(404, "Item not found")
    return 42

Output:

Missing responses:
 @app.get("/{item_id}")
  - 404, Item not found
@ManiMozaffar
Copy link
Owner

I don't want to automatically add responses. I want to just to see the list of missed ones

Hmm I see, that's a cool use case.
How about on cli, I do something like:

richapi output src.app:app --router "items/{item_id}"
Or even router name;

richapi output src.app:app get_item

@ManiMozaffar ManiMozaffar self-assigned this Oct 25, 2024
@ManiMozaffar ManiMozaffar added the enhancement New feature or request label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants