The Resource API allows you to get resources from Apple's Asset Catalogs
.
Resources that are more or less shared between SocialUI.framework (macOS <= Catalina)
and ChatKit.framework (iOS, macOS >= Big Sur)
are available through a unified endpoint that will map a shared ID to the specific resource from both frameworks. You can also implement SocialUI/ChatKit support yourself and directly pull resources from the catalogs.
GET
/resources/mode
Returns the style of resources being returned
GET
/resources/catalog
Returns all resources available on this platform
GET
/resources/raw/:resourceID
Gets a platform-specific resource using a resource ID listed in /catalog
Responds with the resource, or 404 if it does not exist.
GET
/resources/:resourceID
Gets a unified resource by its unified resource ID