Replies: 2 comments 3 replies
-
First of all, thank you for such a close study of the documentation
publisher = broker.publisher("response")
# and call it later
await publisher.publish("message")
publisher = broker.publisher("response.%s")
# and call it later
await publisher.publish("message", extra=[user_id])
|
Beta Was this translation helpful? Give feedback.
-
Please correct me if I am wrong, but you would like to have the schema of the publisher documented in the generated documentation. Something like this would then do the trick:
|
Beta Was this translation helpful? Give feedback.
-
I like the look of this project and was looking at integrating it into a project of mine but have various questions. Some of these points might already apply and have been missed by me.
1 - Having used FastAPI and seen the various mentions on here, it would be nice to see some of their other documentation features:
@router.post("/..", include_in_schema=settings.BUILD_INTERNAL_DOCS)
2 - I dont see anything in the examples about direct publishing where the publish is part of the schema. From my fastapi application I would like to trigger direct publishes that appear in the docs. Perhaps something like the below example (maybe this is already the case, but I didn't see it in then docs and the they explicitly mentioned somewhere that direct publishes aren't documented, which makes sense when doing something like
await broker.publish(...)
):3 - Having some sort of dynamic documented publishes would be nice. Similar to the request for #764 but for providers with dynamic routing keys or topics.
Imagine receiving an entity, and then forwarding it to another specific topic based on the content of the payload.
Below is just an example of what I would like to achieve.
Perhaps either:
@broker.publisher("organisation-{entity.organisationId}-new-user", routing_key="something-{entity.something}")
, but this would be limiting values to stuff published in the payload.Or the above case but perhaps add the routing_key and topics as a sort of dependency
4 - It wasn't immediately clear to me in the documentation to what extent certain objects perform logic, or whether they are just for generating documentation (queues[auto-delete,bind-arguments], exchanges[type], etc)
Beta Was this translation helpful? Give feedback.
All reactions