Re: Another Alternate to Create Shareable Link
@Mira_Ghaly below are two ways using REST API you can create the anyone sharing link
1. Using List GUID and Item ID, see screenshot below:

Uri: _api/web/lists(guid'A4E78CC7-F74F-4733-832A-099D945908A8')/items(39)/sharelink
Here replace 'A4E78CC7-F74F-4733-832A-099D945908A8' with your list GUID and replace 39 with your item id
Body
{
"request":
{
"createLink":true,
"settings":
{
"allowAnonymousAccess":true,
"linkKind":2,
"expiration":null,
"restrictShareMembership":false,
"updatePassword":false,
"password":"",
"description":"My description",
"role":8,
"applicationLink":false,
"limitUseToApplication":false
}
}
}
2. Use File URL

Uri: _api/web/GetFileByUrl(@v)/ListItemAllFields/ShareLink?@v='/sites/development/Shared%20Documents/book1.xlsx'
Replace '/sites/development/Shared%20Documents/book1.xlsx' with your file URL
Body parameter value is same as above.
To get just Document Library regardless of whether it has files or not, you can use below Rest API

if you want to get Document Library by ID you can use below URI, just replace List GUID with your List GUID
_api/web/lists(guid'A4E78CC7-F74F-4733-832A-099D945908A8')