add share collection as text
This commit is contained in:
1 parent
dbb00fdb61
commit
6b7cca1fe9
3 files changed
+45
-10
No files matched your search
@@ -15,21 +15,21 @@ export class CollectionService {
|
||||
|
||||
constructor(private http: HttpClient) {}
|
||||
|
||||
// get all lists
|
||||
// get all collections
|
||||
getCollections(): Observable<Collection[]> {
|
||||
return this.http.get<Collection[]>(
|
||||
`${this.backend_apiUrl}/${this.apiAction}`
|
||||
);
|
||||
}
|
||||
|
||||
// get a list by id
|
||||
// get a collection by id
|
||||
getCollection(collectionId: number): Observable<Collection> {
|
||||
return this.http.get<Collection>(
|
||||
`${this.backend_apiUrl}/${this.apiAction}/${collectionId}`
|
||||
);
|
||||
}
|
||||
|
||||
// Create a new list
|
||||
// Create a new collection
|
||||
createCollection(collection: Collection): Observable<Collection> {
|
||||
return this.http.post<Collection>(
|
||||
`${this.backend_apiUrl}/${this.apiAction}`,
|
||||
@@ -64,14 +64,14 @@ export class CollectionService {
|
||||
);
|
||||
}
|
||||
|
||||
// Delete a list by ID
|
||||
// Delete a collection by ID
|
||||
deleteCollection(collectionId: number): Observable<any> {
|
||||
return this.http.delete(
|
||||
`${this.backend_apiUrl}/${this.apiAction}/${collectionId}`
|
||||
);
|
||||
}
|
||||
|
||||
// Add an entry to a list
|
||||
// Add an entry to a collection
|
||||
addEntryToCollection(
|
||||
collectionId: number,
|
||||
entryId: number
|
||||
@@ -82,7 +82,7 @@ export class CollectionService {
|
||||
);
|
||||
}
|
||||
|
||||
// Update an entry's order in a list
|
||||
// Update an entry's order in a collection
|
||||
updateEntryOrder(
|
||||
collectionId: number,
|
||||
entryId: number,
|
||||
@@ -94,7 +94,7 @@ export class CollectionService {
|
||||
);
|
||||
}
|
||||
|
||||
// Remove an entry from a list
|
||||
// Remove an entry from a collection
|
||||
removeEntryFromCollection(
|
||||
collectionId: number,
|
||||
entryId: number
|
||||
|
||||
Reference in new issue
Block a user