-
Hi, I have an issue to correctly generate the documentation specs for a method whose parameters are defined implicitly:
This is not detected in the specifications, but I did not find a way to explicitly document them. Regards |
Beta Was this translation helpful? Give feedback.
Answered by
greyli
Feb 17, 2022
Replies: 1 comment 3 replies
-
Hi, I'm glad you like it. I would recommend defining these parameters as an input schema (with class RecordQueryInput(Schema):
type = fields.String(load_default='automatic')
# ...
@bp.route("/records", methods=["GET"])
@input(RecordQueryInput, location='query') # <-
@output(Record(many=True))
def get_records_from_form_data(query_data):
# type = query_data['type']
return get_records(**query_data) Let me know if it works, not tested yet. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
lfoppiano
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm glad you like it.
I would recommend defining these parameters as an input schema (with
query
location):Let me know if it works, not tested yet.