WebhookGateway class¶
This is the reference for the WebhookGateway that contains all the parameters,
attributes and functions.
How to import¶
from ravyn import WebhookGateway
ravyn.WebhookGateway
¶
WebhookGateway(
*,
handler,
name=None,
include_in_schema=True,
parent=None,
deprecated=None,
security=None,
before_request=None,
after_request=None,
tags=None,
)
Bases: Path, Dispatcher, _GatewayCommon
WebhookGateway object class used by Ravyn routes.
The WebhookGateway act as a brigde between the webhook handlers and the main Ravyn routing system.
Read more about WebhookGateway and how to use it.
Note
This is used for OpenAPI documentation purposes only.
| PARAMETER | DESCRIPTION |
|---|---|
handler
|
An instance of handler.
TYPE:
|
name
|
The name for the WebhookGateway.
TYPE:
|
include_in_schema
|
Boolean flag indicating if it should be added to the OpenAPI docs.
TYPE:
|
parent
|
Who owns the Gateway. If not specified, the application automatically it assign it. This is directly related with the application levels.
TYPE:
|
deprecated
|
Boolean flag for indicating the deprecation of the Gateway and to display it in the OpenAPI documentation..
TYPE:
|
security
|
Used by OpenAPI definition, the security must be compliant with the norms. Ravyn offers some out of the box solutions where this is implemented. The Ravyn security is available to automatically used. The security can be applied also on a level basis. For custom security objects, you must subclass
TYPE:
|
before_request
|
A Read more about the events.
TYPE:
|
after_request
|
A Read more about the events.
TYPE:
|
tags
|
A list of strings tags to be applied to the path operation. It will be added to the generated OpenAPI documentation. Note almost everything in Ravyn can be done in levels, which means these tags on a Ravyn instance, means it will be added to every route even if those routes also contain tags.
TYPE:
|
Source code in ravyn/routing/gateways.py
904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 | |