fulltext/routes.py
def resource_id(id_type: str, identifier: str, *args: Any, **kw: Any) -> str:
    """Get the resource ID for an endpoint."""
    if id_type == SupportedBuckets.SUBMISSION:
        return identifier.split('/', 1)[0]
    return identifier
Get the resource ID for an endpoint.
Get the resource ID for an endpoint.
Get the resource ID for an endpoint .
def resource_id(id_type: str, identifier: str, *args: Any, **kw: Any) -> str:
    if id_type == SupportedBuckets.SUBMISSION:
        return identifier.split('/', 1)[0]
    return identifier
def resource_id ( id_type : str , identifier : str , * args : Any , ** kw : Any ) -> str : if id_type == SupportedBuckets . SUBMISSION : return identifier . split ( '/' , 1 ) [ 0 ] return identifier
Get the resource ID for an endpoint.
Get the resource ID for an endpoint .
"""Get the resource ID for an endpoint."""
id_type
str
identifier
str
args
Any
kw
Any