Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

API Пользователей #61

Open
notarseniy opened this issue Dec 20, 2014 · 1 comment
Open

API Пользователей #61

notarseniy opened this issue Dec 20, 2014 · 1 comment
Labels
Milestone

Comments

@notarseniy
Copy link
Contributor

GET /api/users/:user – Страница пользователя

GET PUT /api/user – Неполный CRUD текущего пользователя.
GET DELETE /api/user/notifs – Неполный CRUD оповещений пользователя.
GET PUT /api/user/settings – Неполный CRUD настроек пользователя.

@notarseniy notarseniy added this to the «Beta» milestone Dec 20, 2014
@notarseniy
Copy link
Contributor Author

Описания методов

GET /api/users/:user – Пользователь.
GET PUT /api/user – Неполный CRUD текущего пользователя.

{
  "username": "nzh",
  "reg_date": 1322829960,
  "lastseen": 1418825749,
  "last_ip": "81.88.223.153",
  "last_hwid": "WRONGID:6b1pqhghdc",
  "last_tickets_url": "https://api.greencubes.org/api/tickets?username=nzh",
  "last_questions_url": "https://api.greencubes.org/api/questions?username=nzh",
  "statistics": {
    "tickets_opened": 28,
    "tickets_solved": 18,
    "comments_tickets_sent": 42,
    "comments_with_statuses_sent": 18
  }
}

GET /api/user/notifs – Оповещения пользователя.

[
    {
        "type": 3,
        "ticket": {
            "id": 542,
            "title": "Некорректные ссылки на изображения"
        }
    }
]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

1 participant