@@ -405,9 +405,9 @@ def document_api(
405
405
uri (str): URI of the API's discovery document
406
406
doc_destination_dir (str): relative path where the reference
407
407
documentation should be saved.
408
- artifact_destination_dir (str): relative path where the discovery
408
+ artifact_destination_dir (Optional[ str] ): relative path where the discovery
409
409
artifacts should be saved.
410
- discovery_uri_template (str): URI template of the API's discovery document.
410
+ discovery_uri_template (Optional[ str] ): URI template of the API's discovery document.
411
411
If this parameter is set, the `uri` parameter is ignored and the uri
412
412
will be created from this template.
413
413
"""
@@ -515,12 +515,13 @@ def generate_all_api_documents(
515
515
"""Retrieve discovery artifacts and fetch reference documentations
516
516
for all apis listed in the public discovery directory.
517
517
args:
518
- directory_uri (str): uri of the public discovery directory.
519
- doc_destination_dir (str): relative path where the reference
518
+ directory_uri (Optional[ str] ): uri of the public discovery directory.
519
+ doc_destination_dir (Optional[ str] ): relative path where the reference
520
520
documentation should be saved.
521
- artifact_destination_dir (str): relative path where the discovery
521
+ artifact_destination_dir (Optional[ str] ): relative path where the discovery
522
522
artifacts should be saved.
523
- discovery_uri_template (str): URI template of the API's discovery document.
523
+ discovery_uri_template (Optional[str]): URI template of the API's discovery
524
+ document.
524
525
"""
525
526
api_directory = collections .defaultdict (list )
526
527
http = build_http ()
0 commit comments