GET
/users/{username}/profile
curl \
--request GET 'https://garden-to-yours.herokuapp.com/users/{username}/profile' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"_id": "string",
"image": "string",
"location": "string",
"products": [
{
"_id": "string",
"size": "string",
"sold": true,
"type": "plant",
"price": 0,
"title": "string",
"images": [
"http://example.com"
],
"category": {
"type": "plant",
"category": "string",
"subcategory": "string"
},
"description": "string",
"publisherId": {
"_id": "string",
"email": "user@example.com",
"image": "string",
"lastName": "string",
"location": "string",
"password": "pa$$word",
"username": "string",
"firstName": "string",
"createDate": "2019-08-24",
"dateOfBirth": "2000-08-24T00:00:00.000Z",
"emailVerified": true
},
"publishedDate": "2019-08-24"
}
],
"username": "string",
"firstName": "string",
"createDate": "2019-08-24T14:15:22Z",
"emailVerified": true
}