body = {
'login' : ...,
'password' : ...
}
response = {
'status' : 201 ,
'token' : ...,
}
body = {
'login' : ...,
'password' : ...
}
response = {
'status' : 202 ,
'token' : ...,
}
response = {
'status' : 202 ,
}
response = {
'status' : 200 ,
'content' : [
{
'id' : ...,
'name' : ...,
'surname' : ...,
'patronymic' : ...,
}
]
}
params = {
'id' : ...,
}
body = {
'name' : ...,
'surname' : ...,
'patronymic' : ...,
}
response = {
'status' : 200 ,
'content' : {
'id' : ...,
'name' : ...,
'surname' : ...,
'patronymic' : ...,
}
}
body = {
'name' : ...,
'description' : ...,
'photos_ids' : [...,],
}
response = {
'status' : 201 ,
'content' : {
'name' : ...,
'description' : ...,
'photos' : [
{
'id' : ...,
'name' : ...,
'description' : ...,
'file' : ...,
'rate' : ...,
'collection_id' : ...,
'author' : {
'id' : ...,
'name' : ...,
'surname' : ...,
'patronymic' : ...,
},
}
],
}
}
params = {
'order_by' : ...,
}
response = {
'status' : 200 ,
'content' : [
{
'name' : ...,
'description' : ...,
'photos' : [
{
'id' : ...,
'name' : ...,
'description' : ...,
'file' : ...,
'rate' : ...,
'collection_id' : ...,
'author' : {
'id' : ...,
'name' : ...,
'surname' : ...,
'patronymic' : ...,
},
}
],
}
]
}
body = {
'name' : ...,
'description' : ...,
}
response = {
'status' : 200 ,
'content' : {
'name' : ...,
'description' : ...,
'photos' : [
{
'id' : ...,
'name' : ...,
'description' : ...,
'file' : ...,
'rate' : ...,
'collection_id' : ...,
'author' : {
'id' : ...,
'name' : ...,
'surname' : ...,
'patronymic' : ...,
},
}
],
}
}
PATCH /collections/photos/append/
body = {
'photos' : [...,],
}
response = {
'status' : 200 ,
'content' : {
'name' : ...,
'description' : ...,
'photos' : [
{
'id' : ...,
'name' : ...,
'description' : ...,
'file' : ...,
'rate' : ...,
'collection_id' : ...,
'author' : {
'id' : ...,
'name' : ...,
'surname' : ...,
'patronymic' : ...,
},
}
],
}
}
DELETE /collections/photos/pop/
body = {
'photos' : [...,],
}
response = {
'status' : 200 ,
'content' : {
'name' : ...,
'description' : ...,
'photos' : [
{
'id' : ...,
'name' : ...,
'description' : ...,
'file' : ...,
'rate' : ...,
'collection_id' : ...,
'author' : {
'id' : ...,
'name' : ...,
'surname' : ...,
'patronymic' : ...,
},
}
],
}
}
params = {
'collection_id' : ...,
}
response = {
'status' : 204 ,
}
POST /collections/photos/
body = {
'id' : ...,
'name' : ...,
'description' : ...,
'file' : ...,
'author_id' : ...,
'collection_id' : ...,
}
response = {
'status' : 201 ,
'content' : {
'id' : ...,
'name' : ...,
'description' : ...,
'file' : ...,
'rate' : ...,
'collection_id' : ...,
'author' : {
'id' : ...,
'name' : ...,
'surname' : ...,
'patronymic' : ...,
},
}
}
response = {
'status' : 200 ,
'content' : [
{
'id' : ...,
'name' : ...,
'description' : ...,
'file' : ...,
'rate' : ...,
'collection_id' : ...,
'author' : {
'id' : ...,
'name' : ...,
'surname' : ...,
'patronymic' : ...,
},
}
]
}
params = {
'photo_id' : ...,
}
body = {
'name' : ...,
'description' : ...,
'file' : ...,
'author_id' : ...,
}
response = {
'status' : 200 ,
'content' : [
{
'id' : ...,
'name' : ...,
'description' : ...,
'file' : ...,
'rate' : ...,
'collection_id' : ...,
'author' : {
'id' : ...,
'name' : ...,
'surname' : ...,
'patronymic' : ...,
},
}
]
}
DELETE /collections/photos/
params = {
'photo_id' : ...,
}
response = {
'status' : 204 ,
}
POST /collections/photos/rate/
body = {
'photo_id' : ...,
'rate' : ...,
}