Feed - adithya/image-repo GitHub Wiki
Get users personal feed
Endpoint GET /feed/home
Request:
curl -b /tmp/cookies \
--request GET \
--url http://localhost:8080/feed/home
Response:
[
{
"PhotoID": "07c010e7-6994-407e-8b44-e03cfb50ce61",
"ImageURL": "http://localhost:4443/7bc29a69-20b7-4043-8c0f-a0d718021b26/07c010e7-6994-407e-8b44-e03cfb50ce61"
},
{
"PhotoID": "9ca6bb53-66b3-4f34-b116-6ce67ca0e0eb",
"ImageURL": "http://localhost:4443/shopify-image-repo_public/9ca6bb53-66b3-4f34-b116-6ce67ca0e0eb"
},
{
"PhotoID": "f3fe8cd0-77d0-4a51-a408-473cdd104bcb",
"ImageURL": "http://localhost:4443/7bc29a69-20b7-4043-8c0f-a0d718021b26/f3fe8cd0-77d0-4a51-a408-473cdd104bcb"
},
{
"PhotoID": "b6eeb7c7-0441-4836-a446-a3ba352e7bb5",
"ImageURL": "http://localhost:4443/7bc29a69-20b7-4043-8c0f-a0d718021b26/b6eeb7c7-0441-4836-a446-a3ba352e7bb5"
},
{
"PhotoID": "f2ed91d9-a580-4a12-a79c-c7a796c18752",
"ImageURL": "http://localhost:4443/7bc29a69-20b7-4043-8c0f-a0d718021b26/f2ed91d9-a580-4a12-a79c-c7a796c18752"
},
{
"PhotoID": "76d45d22-57c0-43a1-88fc-2ebe33792dc9",
"ImageURL": "http://localhost:4443/shopify-image-repo_public/76d45d22-57c0-43a1-88fc-2ebe33792dc9"
},
{
"PhotoID": "0a9ad443-9bd6-4507-a8dd-24c5fb808671",
"ImageURL": "http://localhost:4443/shopify-image-repo_public/0a9ad443-9bd6-4507-a8dd-24c5fb808671"
},
{
"PhotoID": "3e623bfb-711b-4a57-8f84-7ba9ef299577",
"ImageURL": "http://localhost:4443/7bc29a69-20b7-4043-8c0f-a0d718021b26/3e623bfb-711b-4a57-8f84-7ba9ef299577"
}
]
Get public feed
Endpoint GET /feed/public
Request:
curl --request GET \
--url http://localhost:8080/feed/public
Response:
[
{
"PhotoID": "9ca6bb53-66b3-4f34-b116-6ce67ca0e0eb",
"ImageURL": "http://localhost:4443/shopify-image-repo_public/9ca6bb53-66b3-4f34-b116-6ce67ca0e0eb"
},
{
"PhotoID": "76d45d22-57c0-43a1-88fc-2ebe33792dc9",
"ImageURL": "http://localhost:4443/shopify-image-repo_public/76d45d22-57c0-43a1-88fc-2ebe33792dc9"
},
{
"PhotoID": "0a9ad443-9bd6-4507-a8dd-24c5fb808671",
"ImageURL": "http://localhost:4443/shopify-image-repo_public/0a9ad443-9bd6-4507-a8dd-24c5fb808671"
}
]