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

API Тикетов #59

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

API Тикетов #59

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

Comments

@notarseniy
Copy link
Contributor

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

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

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

GET /api/tickets – Список тикетов

[
  {
    "id": 42,
    "title": "Testificate",
    "type": 1,
    "visibility": 1,
    "status": 1,
    "owner": "Rena4ka",
    "additional": {
      "description": "Long text ( ͡° ͜ʖ ͡°)",
      "product": 1
    },
    "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/tickets/:id – CRUD тикета

{
  "id": 42,
  "title": "Testificate",
  "type": 1,
  "visibility": 1,
  "status": 1,
  "owner": "Rena4ka",
  "additional": {
    "description": "Long text ( ͡° ͜ʖ ͡°)",
    "product": 1
  },
  "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