Open abu-hasib opened 1 year ago
@sgarciahelguera @mihrab34
I'm planning to work on this page. I need those endpoints to make the page dynamic. Has anyone work on it?
There is something in place for the user profile, it is not refined at all, e.g. location is a string (or a few strings), and maybe it should be something more structured to be able to integrate the UI with a map? There is work in progress for the farm profile I don't know much about farm cluster yet, there is nothing in the backend for that Same goes for reviews and past activity
@sgarciahelguera I think there's an open PR for farm Profile . here it is #35
@abu-hasib perhaps you can take a look at that 👆🏽 and see if the endpoint you need has been included in that PR and we can work on getting it merged after review
There an endpoint to get / edit a single user profile 👇🏽
@mihrab34 @sgarciahelguera I checked the endpoint.
two things I noted. I was able to create a profile without restriction. The data expected on the frontend does not match the schema. I attach screenshots for reference
What specifically do you think that doesn't match?
There is no farm name, about me, past activity and reviews
there is no avatar as well
There is no farm name, about me, past activity and reviews
farm name is part of the farm entity, that is a different endpoint. There is a field "about_me", the first one in your snapshot, if you copy the text and quote it here I can point you to it. reviews and past activity are not implemented, won't be soon either, we need more progress on other areas before these even make sense.
there is no avatar as well
There is a userprofilephoto
Location fields are open to debate, if you for example integrate google maps in the UI, and find out that you require different fields, we can change them (we need to integrate something, so that address is not just a string, doesn't have to be google maps)
maybe that is something for the backend to provide too
there is no avatar as well
There is a userprofilephoto
Where? I can't find it.
swagger has a search field, just type in photo. It is an endpoint separate from the profile, that is probably why you missed it. There is already an issue to move it under the profile path (#31)