-
Notifications
You must be signed in to change notification settings - Fork 10
Endpoints reference
(call image service, port : 8080 )
POST localhost:8080/album?userid=jyoti
RequestBody:
{
"name":<abumName>
,
"description": <desc>
}
QueryParam :
"userid" : <userId>
(call googleDriveService PORT: 9090)
POST localhost:9090/image/upload/<albumGoogleDriveId>
Path variable : <albumGoogleDriveId>
QueryParam :
"userid" : <userId>
"file": <attach file>
(call imageService PORT: 8080)
Get all albums for given userId
GET localhost:8080/album?userid=jyoti
QueryParam :
"userid" : <userId>
GET localhost:8080/all
(call imageService PORT: 8080)
GET localhost:8080/album/<albumGoogleId>
/image
(call googleDriveService PORT: 9090)
GET localhost:9090/image/<imageGoogleId>
(call imageService PORT: 8080)
PUT localhost:8080/album/<albumGoogleId>
/image
QueryParam :
"userid" : <userId>
RequestBody:
{
"name":<abumName>
,
"description": <desc>
}
(call imageService PORT: 8080)
PUT localhost:8080/image/<imageGoogleId>
/image
QueryParam :
"userid" : <userId>
RequestBody:
{
"name":<imageName>
,
}
(call imageService PORT: 8080)
PUT localhost:8080/album/<albumGoogleId>
/collaborator/<collaboratorid>
QueryParam :
"userid" : <userId>
(call imageService PORT: 8080)
PUT localhost:8080/album/<albumGoogleId>
/collaborator
QueryParam :
"userid" : <userId>
RequestBody:
{
"ids":<collaborator id list>
,
}
(call imageService PORT: 8080)
DELETE localhost:8080/album/<albumGoogleId>
/collaborator/<collaboratorid>
QueryParam :
"userid" : <userId>
(call imageService PORT: 8080)
DELETE localhost:8080/album/<albumGoogleId>
/collaborator
QueryParam :
"userid" : <userId>
RequestBody:
{
"ids":<collaborator id list>
,
}
(call imageService PORT: 8080)
PUT localhost:8080/album/<albumGoogleId>
/collaborator/<collaboratorid>
QueryParam :
"userid" : <userId>
(call imageService PORT: 8080)
PUT localhost:8080/album/<albumGoogleId>
/collaborator
QueryParam :
"userid" : <userId>
-> logged in User : used to update modifiedBy field
RequestBody:
{
"ids":<collaborator id list>
,
}
(call imageService PORT: 8080)
DELETE localhost:8080/album/<albumGoogleId>
/collaborator/<collaboratorid>
QueryParam :
"userid" : <userId>
logged in User : used to update modifiedBy field
(call imageService PORT: 8080)
DELETE localhost:8080/album/<albumGoogleId>
/collaborator
QueryParam :
"userid" : <userId>
logged in User : used to update modifiedBy field
RequestBody:
{
"ids":<collaborator id list>
,
}
(call imageService PORT: 8080)
DELETE localhost:8080/album/<albumGoogleId>
QueryParam :
"userid" : <userId>
logged in User : used to update modifiedBy field
(call imageService PORT: 8080)
DELETE localhost:8080/album
QueryParam :
"userid" : <userId>
logged in User : used to update modifiedBy field