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

API Вопросов #60

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

API Вопросов #60

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

Comments

@notarseniy
Copy link
Contributor

GET /api/questions – Список вопросов
POST /api/questions/new – Новый вопрос
GET POST PUT DELETE /api/questions/:id – CRUD вопроса

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

GET /api/questions – Список вопросов

[
  {
    "id": 42,
    "title": "Testificate",
    "description": "how to quickscope?",
    "owner": "Rena4ka",
    "comments": [
      {
        "id": 1337,
        "message": "yolo",
        "owner": "venus",
        "status": 1,
        "attachements": [
          {
            "id": 42,
            "type": 1,
            "data": "https://help.greencubes.org/uploads/somerandomstring.png"
          }
        ]
      }
    ],
    "attachements": [
      {
        "id": 42,
        "type": 1,
        "data": "https://help.greencubes.org/uploads/somerandomstring.png"
      }
    ]
  }
]

GET /api/questions/:id – CRUD вопроса.

{
  "id": 42,
  "title": "Testificate",
  "description": "how to quickscope?",
  "owner": "Rena4ka",
  "comments": [
    {
      "id": 1337,
      "message": "yolo",
      "owner": "venus",
      "status": 1,
      "attachements": [
        {
          "id": 42,
          "type": 1,
          "data": "https://help.greencubes.org/uploads/somerandomstring.png"
        }
      ]
    }
  ],
  "attachements": [
    {
      "id": 42,
      "type": 1,
      "data": "https://help.greencubes.org/uploads/somerandomstring.png"
    }
  ]
}

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