janim2 / RentersParadise

0 stars 0 forks source link

back-end CRUD operations #11

Open king-kloy opened 3 years ago

king-kloy commented 3 years ago

The following is the operations we have to write their functionalities. Please look through the app and let's know other missing operation and add it here.

SignIn

_params_ -> (email, password)
_return_ -> token

Registration

_params_ -> (firstName, lastName, phoneNumber, residentialAddr, 
        email, password, confirmPassword)
_return_ -> token

AddProperty

_params_ -> (image, type[rent, sale], propertyType[houses, apartments, duplex,
        semiDetached, villes, storey], propertyDetails, location, streetName, 
        propertyFeatures[bedroom, bathroom, parking], price)
_return_ -> success || failure

ViewProperties

_params_ -> (userId)
_return_ -> List<Property>
_@Property_ -> (image, type[rent, sale], propertyType[houses, apartments, duplex,
            semiDetached, villes, storey], propertyDetails, location, streetName, 
            propertyFeatures[bedroom, bathroom, parking], price)

EditProperty

_params_ -> (userId, propertyId, ref(Property))
_return_ -> success || failure

GetNews

_return_ -> List<News>
_@News_ -> (image, title, details)

GetNotification

_params_ -> (userId)
_return_ -> List<notifications>

SearchProperties

_params_ -> (searchItem)
_return_ -> List<Property>
lateofrederick commented 3 years ago

with the database, the notification has an image field, won't it be best if that field holds the url to the image that would be hosted by the firebase file storage something since the firebase real time db won't allow image storage

king-kloy commented 3 years ago

The image for the notification will be based on the status of the property. Correct me if I'm off track. And also are we going to use firebase realtime database? @lateofrederick what will be the best way to save images on the database; should we store the buffer or the path of the image?

with the database, the notification has an image field, won't it be best if that field holds the url to the image that would be hosted by the firebase file storage something since the firebase real time db won't allow image storage

norbertkross commented 3 years ago

@king-kloy are we using firebase or ?

king-kloy commented 3 years ago

@king-kloy are we using firebase or ? Yes we're using firebase