graviteeio_cli/commands/apim/pages/fetch.py
def fetch(obj, doc_id, api_id):
    """Fetch documentation of api or portal."""
    page_client: ApiClient = obj['page_client']
    response = page_client.fetch(api_id, doc_id)

    if api_id and doc_id:
        click.echo("Page [{}] for API [{}] is uptodate.".format(response.name, api_id))
    elif doc_id:
        click.echo("Page [{}] for portal is uptodate.".format(response.name))
    elif api_id:
        click.echo("All pages for API [{}] are uptodate.".format(api_id))
    else:
        click.echo("All pages for portal are uptodate.")
Fetch documentation of api or portal.
Fetch documentation of api or portal.
Fetch documentation of api or portal .
def fetch(obj, doc_id, api_id):
    page_client: ApiClient = obj['page_client']
    response = page_client.fetch(api_id, doc_id)
    if api_id and doc_id:
        click.echo("Page [{}] for API [{}] is uptodate.".format(response.name, api_id))
    elif doc_id:
        click.echo("Page [{}] for portal is uptodate.".format(response.name))
    elif api_id:
        click.echo("All pages for API [{}] are uptodate.".format(api_id))
    else:
        click.echo("All pages for portal are uptodate.")
def fetch ( obj , doc_id , api_id ) : page_client : ApiClient = obj [ 'page_client' ] response = page_client . fetch ( api_id , doc_id ) if api_id and doc_id : click . echo ( "Page [{}] for API [{}] is uptodate." . format ( response . name , api_id ) ) elif doc_id : click . echo ( "Page [{}] for portal is uptodate." . format ( response . name ) ) elif api_id : click . echo ( "All pages for API [{}] are uptodate." . format ( api_id ) ) else : click . echo ( "All pages for portal are uptodate." )
Fetch documentation of api or portal.
Fetch documentation of api or portal .
"""Fetch documentation of api or portal."""
obj
doc_id
api_id