Home - Hypermedia Link Navigation
The Home endpoint provides a set of hypermedia links to navigate the ShareBase Public API. This endpoint returns various hypermedia link templates that can be used to retrieve content with a variety of IDs. To request the Home hypermedia links,issue the following GET request:
GET /api/home
The returned JSON object (example below) gives the caller a list of pre-constructed links to other API endpoints. Simply insert the appropriate ID or variable if needed
{
"Links": {
"Libraries": "https://app.sharebase.com/sharebaseapi/api/libraries",
"LibrariesTemplatedUri": "https://app.sharebase.com/sharebaseapi/api/libraries{?name}",
"FoldersTemplatedUri": "https://app.sharebase.com/sharebaseapi/api/folders/{folderid}",
"Authenticate": "https://app.sharebase.com/sharebaseapi/api/authenticate",
"CreateFolderUri": "https://app.sharebase.com/sharebaseapi/api/libraries/{libraryId}/folders",
"CreateShareUri": "https://app.sharebase.com/sharebaseapi/api/folders/{folderId}/share",
"CreateShareTokenUri": "https://app.sharebase.com/sharebaseapi/api/tokens/create-share",
"UpdateShareUri": "https://app.sharebase.com/sharebaseapi/api/folders/shares/{shareId}",
"ManageSharesTokenUri": "https://app.sharebase.com/sharebaseapi/api/tokens/manage-shares",
"ManageSharesUri": "https://app.sharebase.com/app/#/shaas/shares{?access}",
"ShareOptionsUri": "https://app.sharebase.com/app/#/shaas/shares/{shareId}/configure{?access}"
}
}