Collections
Controller
@RestController
@RequestMapping(value = "BASE_EQUINOX_ENDPOINT + USERS_KEY + "/{" + USER_IDENTIFIER_KEY + "}/" + COLLECTIONS_KEY"
)
The CollectionsController
class is
useful to manage all the LinksCollection
operations
Author
N7ghtm4r3 - Tecknobit
See also
EquinoxController
Properties
Link copied to clipboard
Link copied to clipboard
linksCollectionsService
helper to manage the LinksCollection
database operations
Link copied to clipboard
linksService
helper to manage
the
RefyLink
database operations
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
teamsService
helper to manage
the
Team
database operations
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
@PutMapping(headers = "token",
path = ""/{" + COLLECTION_IDENTIFIER_KEY + "}/" + LINKS_KEY"
)
Method to manage the links shared with the
collection
Link copied to clipboard
Link copied to clipboard
@PatchMapping(headers = "token",
path = "/{" + COLLECTION_IDENTIFIER_KEY + "}"
)
Method to edit a collection
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@GetMapping(headers = "token",
path = ""/{" + COLLECTION_IDENTIFIER_KEY + "}/" + LINKS_KEY"
)
Method to get the list of the links shared
with the collection
Link copied to clipboard
@GetMapping(headers = "token",
path = ""/{" + COLLECTION_IDENTIFIER_KEY + "}/" + TEAMS_KEY"
)
Method to get the list of the teams where
the collection is shared
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
protected open fun isUserNotAuthorized(userId: String, token: String, collectionId: String): Boolean
Method to get whether the user is or not
authorized to operate with the collection requested
Link copied to clipboard
@GetMapping(headers = "token"
)
Method to get a list of collections
Link copied to clipboard
Link copied to clipboard
@DeleteMapping(headers = "token",
path = "/{" + COLLECTION_IDENTIFIER_KEY + "}/" + LINKS_KEY + "/{" + LINK_IDENTIFIER_KEY + "}"
)
Method to remove a link from a collection
Link copied to clipboard
@DeleteMapping(headers = "token",
path = "/{" + COLLECTION_IDENTIFIER_KEY + "}/" + TEAMS_KEY + "/{" + TEAM_IDENTIFIER_KEY + "}"
)
Method to remove a team from a collection
Link copied to clipboard
@PutMapping(headers = "token",
path = ""/{" + COLLECTION_IDENTIFIER_KEY + "}/" + TEAMS_KEY"
)
Method to manage the teams where the
collection 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