LinksController
@RestController
@RequestMapping(value = "BASE_EQUINOX_ENDPOINT + USERS_KEY + "/{" + USER_IDENTIFIER_KEY + "}/" + LINKS_KEY")
The LinksController class is useful to manage all the RefyLink operations
Author
N7ghtm4r3 - Tecknobit
See also
EquinoxController
Constructors
Link copied to clipboard
@Autowired
Constructor used to init the controller
Properties
Link copied to clipboard
Link copied to clipboard
CONTENT_KEY constant value for the content valueLink copied to clipboard
Link copied to clipboard
linksCollectionsService helper to manage the LinksCollection database operationsLink copied to clipboard
linksService helper to manage the RefyLink database operationsLink copied to clipboard
Link copied to clipboard
Link copied to clipboard
OG_IMAGE_METADATA constant value to extract from an HTML page the og:image metadata propertyLink copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
teamsService helper to manage the Team database operationsLink copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
@PatchMapping(headers = "token", path = "/{" + LINK_IDENTIFIER_KEY + "}")
Method to edit an existing link
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Method to extract from the reference link the metadata information such website title and OG_IMAGE_METADATA property
Link copied to clipboard
Link copied to clipboard
Method to get whether the user is or not authorized to operate with the link requested
Link copied to clipboard
@GetMapping(headers = "token")
Method to get a list of links
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@PutMapping(headers = "token", path = ""/{" + LINK_IDENTIFIER_KEY + "}/" + COLLECTIONS_KEY")
Method to manage the collections where the link is shared
Link copied to clipboard
@PutMapping(headers = "token", path = ""/{" + LINK_IDENTIFIER_KEY + "}/" + TEAMS_KEY")
Method to manage the teams where the link is shared
Link copied to clipboard
Link copied to clipboard
Method to get whether the user is or not the owner of the item requested
Link copied to clipboard