Skip to content

svalko/svalko-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

API для работы со Свалочкой

Базовый урдл http://api.svalko.org/1.0/

НЕ ВЫКЛАДЫВАЙТЕ ЕБАНУТЫЕ КОММИТЫ

Получение псто на глагне

request GET glagne/{skip: int, page_size: int}

response

{
  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}

response

Получение единичкогова псто

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 “И куда ты спам пстить собрался?”

About

Rebuild of Svalko: You will [not] approve.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •