416-MemoryLane / issue-tracking

0 stars 0 forks source link

Define the API and Specifications for Papaya #2

Closed eysk-io closed 1 year ago

eysk-io commented 1 year ago

Once #1 is completed, must create and document the API for this module.

eysk-io commented 1 year ago

API

CreateAlbum
   Create a new album
   Must initialise a new CRDT and add it to the filesystem
   Must create a new directory for its photos
   Must create a new entry for Galactus

DeleteAlbum
   Delete an album
   Must delete the chosen directory and all its contents (photos + CRDT)
   Must delete the entry in Galactus

GetAlbums
   Retrieve all the albums (i.e. directories of photos) that the user is part of

GetAlbum
   Retrieve the album

AddPhoto
   Add a photo to an album
   Must also update the CRDT in the filesystem

DeletePhoto
   Delete a photo from an album
   Must also update the CRDT in the filesystem

GetPhotos
   Retrieve all the photos of an album

GetPhoto
   Retrieve the photo from an album