Files
animethemes-api-docs/docs/jsonapi/reference/wiki/songresource/index/index.md
T
2025-07-29 00:56:10 +02:00

2.4 KiB

title
title
Song Resource Index

Song Resource Index Endpoint

The song resource index endpoint returns a listing of song resource resources.

URL

GET /songresource/

Authentication

None

Parameters

Name Required Description
fields No Sparse fieldsets for resource types
filter No Filters for song resources & constraining the inclusion of related resources
include No Inclusion of related resources
page[number] No The page of song resource resources to display
page[size] No The number of song resource resources to display for the current page
sort No The list of fields to sort the resources

Allowed Sort Fields

Name Description
created_at Sort resources on the resource creation date
updated_at Sort resources on the resource last modified date
as Sort resources on distinguishing label

Filters

Name Description
created_at Filter resources on the resource creation date
updated_at Filter resources on the resource last modified date
as Filter resources on the resource distinguishing label
has Filter resources on relations within allowed include paths

Response

{
    songresources: [
        {
            created_at: "created_at",
            updated_at: "updated_at",
            as: "as"
        },
        ...
    ],
    links: {
        first: "first",
        last: "last",
        prev: "prev",
        next: "next"
    },
    meta: {
        current_page: current_page,
        from: from,
        path: "path",
        per_page: per_page,
        to: to
    }
}

Example

curl https://api.animethemes.moe/songresource/