Ben-Avrahami / Tindira

0 stars 1 forks source link

function getListingLikedBy #68

Closed Ben-Avrahami closed 4 months ago

Ben-Avrahami commented 5 months ago

short explenation: This function will recieve a listing id return the full data of the users that liked the listing (without password and without swiping history)

path: /user/getListingLikedBy?listingId={listingId}&page={page number}&items={amount of items per page}

will return the data in this format { users:[ user objects ] totalItems: number, amount of total likes for this listing in the DB }

type: Get

function get: listingId:string page:number items:number

OmerK100 commented 5 months ago

Finished, URL example:

https://aa94or46cc.execute-api.us-east-2.amazonaws.com/prod/user/getListingLikedBy?listingId=listing7&page=3&items=2

(CORS is configured as well but check in your code to be sure)