Documentation

RouteAuthors
in package

Table of Contents

listByFirstLetterPublishedRoute()  : mixed
listByFirstLetterRoute()  : mixed
listPublishedRoute()  : mixed
listRoute()  : mixed
searchPublishedRoute()  : mixed
searchRoute()  : mixed

Methods

listByFirstLetterPublishedRoute()

public listByFirstLetterPublishedRoute(mixed $request, mixed $response, mixed $args) : mixed
Parameters
$request : mixed
$response : mixed
$args : mixed
Tags
OA\Post

( path="/{game_route}/authors/published/list_by_first_letter/{first_letter}", summary="Returns authors data", description="A list of all published authors whose name starts with a provided letter, meaning authors who have released at least 1 file", operationId="authorsListByFirstLetterPublishedRoute", tags={"Authors"}, @OA\Parameter( description="First letter of an author's name", in="path", name="first_letter", required=true, @OA\Schema(type="string"), @OA\Examples(example="string", value="f", summary="Using an author name's first letter"), ), @OA\Parameter( ref="#/components/parameters/game_route" ), @OA\Response( response=200, description="OK", @OA\JsonContent( type="object", @OA\Property(
property="status", ref="#/components/schemas/RGWRequestStatus" ), @OA\Property( property="data", type="object", @OA\Property( property="authors", ref="#/components/schemas/Author" ), @OA\Property( property="authors_info", type="object", @OA\Property( property="total_published", type="int", description="Number of authors with at least one file available to download. Use the /authors/published route to restrict the selection." ) ), @OA\Property( property="pagination", ref="#/components/schemas/RGWResponsePagination" ), @OA\Property( property="records", ref="#/components/schemas/RGWResponseCount" ) ), @OA\Examples(example="Success", value={"status": "success","data": {"records": {"total_available": 7538,"total_filtered": 7538,"returned": 20},"pagination": {"start": 0,"records": "20","page": 1},"artists": {{"id": "10-year-old-nolan","name": "10 Year Old Nolan","songs": 1},{"id": "10-years","name": "10 Years","songs": 5},{"id": "100-gecs","name": "100 gecs","songs": 14},"..."}}}, summary="List of artists"), @OA\Examples(example="Error, no artist found", value={"status": "error", "error": {"message": "No artist found" }}, summary="No artist found"), @OA\Examples(example="Error, invalid parameter", value={"status": "error", "error": {"message": "Parameter 'text' is not accepted at this path" }}, summary="Invalid parameter sent") ) ) )

Return values
mixed

listByFirstLetterRoute()

public listByFirstLetterRoute(mixed $request, mixed $response, mixed $args) : mixed
Parameters
$request : mixed
$response : mixed
$args : mixed
Tags
OA\Post

( path="/{game_route}/authors/list_by_first_letter/{first_letter}", summary="Returns authors data", description="A list of all authors whose name starts with a provided letter", operationId="authorsListByFirstLetterRoute", tags={"Authors"}, @OA\Parameter( description="First letter of an author's name", in="path", name="first_letter", required=true, @OA\Schema(type="string"), @OA\Examples(example="string", value="f", summary="Using an author name's first letter"), ), @OA\Parameter( ref="#/components/parameters/game_route" ), @OA\Response( response=200, description="OK", @OA\JsonContent( type="object", @OA\Property(
property="status", ref="#/components/schemas/RGWRequestStatus" ), @OA\Property( property="data", type="object", @OA\Property( property="authors", ref="#/components/schemas/Author" ), @OA\Property( property="authors_info", type="object", @OA\Property( property="total_published", type="int", description="Number of authors with at least one file available to download. Use the /authors/published route to restrict the selection." ) ), @OA\Property( property="pagination", ref="#/components/schemas/RGWResponsePagination" ), @OA\Property( property="records", ref="#/components/schemas/RGWResponseCount" ) ), @OA\Examples(example="Success", value={"status": "success","data": {"records": {"total_available": 7538,"total_filtered": 7538,"returned": 20},"pagination": {"start": 0,"records": "20","page": 1},"artists": {{"id": "10-year-old-nolan","name": "10 Year Old Nolan","songs": 1},{"id": "10-years","name": "10 Years","songs": 5},{"id": "100-gecs","name": "100 gecs","songs": 14},"..."}}}, summary="List of artists"), @OA\Examples(example="Error, no artist found", value={"status": "error", "error": {"message": "No artist found" }}, summary="No artist found"), @OA\Examples(example="Error, invalid parameter", value={"status": "error", "error": {"message": "Parameter 'text' is not accepted at this path" }}, summary="Invalid parameter sent") ) ) )

Return values
mixed

listPublishedRoute()

public listPublishedRoute(mixed $request, mixed $response, mixed $args) : mixed
Parameters
$request : mixed
$response : mixed
$args : mixed
Tags
OA\Post

( path="/{game_route}/authors/published/list", summary="Returns authors data", description="A list of all published authors, meaning authors who have released at least 1 file", operationId="authorsPublishedListRoute", tags={"Authors"}, @OA\Parameter( ref="#/components/parameters/game_route" ), @OA\Response( response=200, description="OK", @OA\JsonContent( type="object", @OA\Property(
property="status", ref="#/components/schemas/RGWRequestStatus" ), @OA\Property( property="data", type="object", @OA\Property( property="authors", ref="#/components/schemas/Author" ), @OA\Property( property="authors_info", type="object", @OA\Property( property="total_published", type="int", description="Number of authors with at least one file available to download. Use the /authors/published route to restrict the selection." ) ), @OA\Property( property="pagination", ref="#/components/schemas/RGWResponsePagination" ), @OA\Property( property="records", ref="#/components/schemas/RGWResponseCount" ) ), @OA\Examples(example="Success", value={"status": "success","data": {"records": {"total_available": 7538,"total_filtered": 7538,"returned": 20},"pagination": {"start": 0,"records": "20","page": 1},"artists": {{"id": "10-year-old-nolan","name": "10 Year Old Nolan","songs": 1},{"id": "10-years","name": "10 Years","songs": 5},{"id": "100-gecs","name": "100 gecs","songs": 14},"..."}}}, summary="List of artists"), @OA\Examples(example="Error, no artist found", value={"status": "error", "error": {"message": "No artist found" }}, summary="No artist found"), @OA\Examples(example="Error, invalid parameter", value={"status": "error", "error": {"message": "Parameter 'text' is not accepted at this path" }}, summary="Invalid parameter sent") ) ) )

Return values
mixed

listRoute()

public listRoute(mixed $request, mixed $response, mixed $args) : mixed
Parameters
$request : mixed
$response : mixed
$args : mixed
Tags
OA\Post

( path="/{game_route}/authors/list", summary="Returns authors data", description="A list of all authors", operationId="authorsListRoute", tags={"Authors"}, @OA\Parameter( ref="#/components/parameters/game_route" ), @OA\Response( response=200, description="OK", @OA\JsonContent( type="object", @OA\Property(
property="status", ref="#/components/schemas/RGWRequestStatus" ), @OA\Property( property="data", type="object", @OA\Property( property="authors", ref="#/components/schemas/Author" ), @OA\Property( property="authors_info", type="object", @OA\Property( property="total_published", type="int", description="Number of authors with at least one file available to download. Use the /authors/published route to restrict the selection." ) ), @OA\Property( property="pagination", ref="#/components/schemas/RGWResponsePagination" ), @OA\Property( property="records", ref="#/components/schemas/RGWResponseCount" ) ), @OA\Examples(example="Success", value={"status": "success","data": {"records": {"total_available": 7538,"total_filtered": 7538,"returned": 20},"pagination": {"start": 0,"records": "20","page": 1},"artists": {{"id": "10-year-old-nolan","name": "10 Year Old Nolan","songs": 1},{"id": "10-years","name": "10 Years","songs": 5},{"id": "100-gecs","name": "100 gecs","songs": 14},"..."}}}, summary="List of artists"), @OA\Examples(example="Error, no artist found", value={"status": "error", "error": {"message": "No artist found" }}, summary="No artist found"), @OA\Examples(example="Error, invalid parameter", value={"status": "error", "error": {"message": "Parameter 'text' is not accepted at this path" }}, summary="Invalid parameter sent") ) ) )

Return values
mixed

searchPublishedRoute()

public searchPublishedRoute(mixed $request, mixed $response, mixed $args) : mixed
Parameters
$request : mixed
$response : mixed
$args : mixed
Tags
OA\Post

( path="/{game_route}/authors/published/search/{search_mode}", summary="Returns authors data based on a text search", description="A list of published authors, meaning authors who have released at least 1 file, whose name matches a provided text", operationId="authorsSearchPublishedRoute", tags={"Authors"}, @OA\Parameter( description="Text to search for. Needs to be at least 3 characters long. In standard mode an error is returned if the string is shorter than 3 characters. In live mode the route fails silently if the string is shorter than 3 characters.", name="text", in="query", required=true, @OA\Schema(type="string"), @OA\Examples(example="Super", value="super", summary="Search for artists with 'super' in the name"), ), @OA\Parameter( ref="#/components/parameters/search_mode" ), @OA\Parameter( ref="#/components/parameters/game_route" ), @OA\Response( response=200, description="OK", @OA\JsonContent( type="object", @OA\Property(
property="status", ref="#/components/schemas/RGWRequestStatus" ), @OA\Property( property="data", type="object", @OA\Property( property="authors", ref="#/components/schemas/Author" ), @OA\Property( property="authors_info", type="object", @OA\Property( property="total_published", type="int", description="Number of authors with at least one file available to download. Use the /authors/published route to restrict the selection." ) ), @OA\Property( property="pagination", ref="#/components/schemas/RGWResponsePagination" ), @OA\Property( property="records", ref="#/components/schemas/RGWResponseCount" ) ), @OA\Examples(example="Success", value={"status": "success","data": {"records": {"total_available": 7538,"total_filtered": 7538,"returned": 20},"pagination": {"start": 0,"records": "20","page": 1},"artists": {{"id": "10-year-old-nolan","name": "10 Year Old Nolan","songs": 1},{"id": "10-years","name": "10 Years","songs": 5},{"id": "100-gecs","name": "100 gecs","songs": 14},"..."}}}, summary="List of artists"), @OA\Examples(example="Error, no artist found", value={"status": "error", "error": {"message": "No artist found" }}, summary="No artist found"), @OA\Examples(example="Error, invalid parameter", value={"status": "error", "error": {"message": "Parameter 'text' is not accepted at this path" }}, summary="Invalid parameter sent") ) ) )

Return values
mixed

searchRoute()

public searchRoute(mixed $request, mixed $response, mixed $args) : mixed
Parameters
$request : mixed
$response : mixed
$args : mixed
Tags
OA\Post

( path="/{game_route}/authors/search/{search_mode}", summary="Returns authors data based on a text search", description="A list of authors", operationId="authorsSearchRoute", tags={"Authors"}, @OA\Parameter( description="Text to search for. Needs to be at least 3 characters long. In standard mode an error is returned if the string is shorter than 3 characters. In live mode the route fails silently if the string is shorter than 3 characters.", name="text", in="query", required=true, @OA\Schema(type="string"), @OA\Examples(example="Super", value="super", summary="Search for artists with 'super' in the name"), ), @OA\Parameter( ref="#/components/parameters/search_mode" ), @OA\Parameter( ref="#/components/parameters/game_route" ), @OA\Response( response=200, description="OK", @OA\JsonContent( type="object", @OA\Property(
property="status", ref="#/components/schemas/RGWRequestStatus" ), @OA\Property( property="data", type="object", @OA\Property( property="authors", ref="#/components/schemas/Author" ), @OA\Property( property="authors_info", type="object", @OA\Property( property="total_published", type="int", description="Number of authors with at least one file available to download. Use the /authors/published route to restrict the selection." ) ), @OA\Property( property="pagination", ref="#/components/schemas/RGWResponsePagination" ), @OA\Property( property="records", ref="#/components/schemas/RGWResponseCount" ) ), @OA\Examples(example="Success", value={"status": "success","data": {"records": {"total_available": 7538,"total_filtered": 7538,"returned": 20},"pagination": {"start": 0,"records": "20","page": 1},"artists": {{"id": "10-year-old-nolan","name": "10 Year Old Nolan","songs": 1},{"id": "10-years","name": "10 Years","songs": 5},{"id": "100-gecs","name": "100 gecs","songs": 14},"..."}}}, summary="List of artists"), @OA\Examples(example="Error, no artist found", value={"status": "error", "error": {"message": "No artist found" }}, summary="No artist found"), @OA\Examples(example="Error, invalid parameter", value={"status": "error", "error": {"message": "Parameter 'text' is not accepted at this path" }}, summary="Invalid parameter sent") ) ) )

Return values
mixed

Search results