API для работы со Свалочкой
Базовый урдл http://api.svalko.org/1.0/
НЕ ВЫКЛАДЫВАЙТЕ ЕБАНУТЫЕ КОММИТЫ
request GET glagne/{skip: int, page_size: int}
{
items:[{
id: PSTO id
date: ISO date-time
title: PSTO title
tiser: PSTO tiser
author: name of STUPID POSTER
comments: count of comments
ptaags: list of tags-ptaags
}],
total_count:int
}
request GET glagne/new/{date: ISO date-time}
request GET post/{psto_id: int}
response
{
id: PSTO id
date: iCO date-time
title: PSTO title
tiser: PSTO tiser
author: name of STUPID POSTER
comments_count: count of comments
ptaags: list of tags-ptaags
}
GET post/search/{request}
request
{
// required
q: string,
// optional
skip: int,
page_size: int,
search_in: list of [ptaags, psto, comments]
}
response
{
items:[{
id: PSTO id
date: iCO date-time
title: PSTO title
tiser: PSTO tiser
author: name of STUPID POSTER
comments_count: count of comments
ptaags: list of tags-ptaags
}],
query_param:string,
total_count:int
}
request GET post/comments/{psto_id: int, skip: int, page_size: int}
response
{
items: [{
id: cament id
date: iSO date-time
title: cament title
author: name of STUPID POSTER
text: body of comment
}],
total_count: int
}
POST post/
request
{
author: PSTO AUTHOR
text: PSCO content
}
response
URL of new PSTO
Пердлагаю сде лоть {url: string}
GET from BASE_URL/SPAM
{
object:{
string: random spam message
}
}
POST to BASE_URL/SPAM
{
myspam: custom string of spam
}
Return string “И куда ты спам пстить собрался?”