Mido.lv API documentation API Reference

api.mido.lv/v1

Schemes: http, https
Version: v1

Authentication

UserSecurity

in
header
name
X-Access-Token

Authorization

Request SMS verification code

POST /auth/request-code
phone

Internation phone without '+'

type
integer
in
formData
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Code created",
  "data": {
    "phone": 79876543210,
    "code": 12352
  }
}

Check phone

GET /auth/check-code
phone

Internation phone without '+'

type
string
in
query
code

(no description)

type
string
in
query
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "CheckCode resul",
  "data": {
    "exists": true
  }
}

POST /auth/sign-up

phone

Internation phone without '+'

type
integer
in
formData
code

Verification code

type
integer
in
formData
name

Username

type
string
in
formData
password

(no description)

type
string
in
formData
sex

w

type
string
in
formData
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Token created",
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Njk2MTkwNDcsImlkIjoxMiwicGhvbmUiOiI3OTEzNjc2NzY1MSJ9.IvPp0-LH0wC6P9iQWBfV0HwtoWNcI3H3aSSQVct6AyU",
    "user": {
      "id": 12,
      "name": "kotchuprik",
      "phone": 79136767651,
      "sex": "w"
    }
  }
}

Вход

POST /auth/sign-in
phone

Internation phone without '+'

type
integer
in
formData
password

(no description)

type
string
in
formData
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Token created",
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Njk2MTkwNDcsImlkIjoxMiwicGhvbmUiOiI3OTEzNjc2NzY1MSJ9.IvPp0-LH0wC6P9iQWBfV0HwtoWNcI3H3aSSQVct6AyU",
    "user": {
      "id": 12,
      "name": "kotchuprik",
      "phone": 79136767651,
      "sex": "w"
    }
  }
}

Refresh JWT

POST /auth/refresh-token
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Token regenerated",
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0Njk2MTkwNDcsImlkIjoxMiwicGhvbmUiOiI3OTEzNjc2NzY1MSJ9.IvPp0-LH0wC6P9iQWBfV0HwtoWNcI3H3aSSQVct6AyU"
  }
}

Upload and delete photo

Photo upload

POST /photo
file

(no description)

type
file
in
formData
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Photo was uploaded",
  "data": {
    "id": 56,
    "file": "4c428e7956778649.jpg",
    "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
    "width": 640,
    "heigth": 640,
    "items": [
      {
        "id": "integer",
        "preset": "small",
        "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
        "file": "s-4c428e7956778649.jpg",
        "width": 640,
        "heigth": 640,
        "items": []
      }
    ]
  }
}

DELETE /photo

file

Photo ID

type
integer
in
query
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Photo was deleted",
  "data": "object"
}

User counters

GET /counters

200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Counters",
  "data": {
    "unread_messages": 1
  }
}

Advert categories

GET /categories

200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Categories",
  "data": [
    {
      "id": 3,
      "name": "One awesome"
    }
  ]
}

GET /categories/{id}

id

(no description)

type
integer
in
path
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Categories",
  "data": {
    "id": 3,
    "name": "One awesome"
  }
}

Advert search

GET /search

q

Query

type
string
in
query
from

Price from

type
integer
in
query
to

Price to

type
integer
in
query
id

Categories ID

type
integer[]
in
query
count

Count of records. Not more than 20

type
integer , { x ∈ ℤ | x ≤ 20 }
in
query
direction

Direction of list

type
integer , x ∈ { next , prev }
in
query
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Advertisements",
  "data": [
    {
      "id": 242,
      "user_id": 14,
      "user": {
        "id": 8,
        "name": "Igor",
        "phone": 37126668813
      },
      "text": "Each app distributed on the App Store for iMessage will have its own product page that provides information about the app and includes the download link. To learn how to craft an effective product page, see App Store Product Page.",
      "prise": "6",
      "date": "2016-10-11T21:16:22Z",
      "category_id": 1,
      "category": {
        "id": 3,
        "name": "One awesome"
      },
      "photos": [
        {
          "id": 56,
          "file": "4c428e7956778649.jpg",
          "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
          "width": 640,
          "heigth": 640,
          "items": [
            {
              "id": "integer",
              "preset": "small",
              "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
              "file": "s-4c428e7956778649.jpg",
              "width": 640,
              "heigth": 640,
              "items": []
            }
          ]
        }
      ],
      "likes_count": 1,
      "liked_by_me": "boolean",
      "comments_count": 14,
      "sold": "boolean",
      "deleted": "boolean",
      "negotiable": "boolean",
      "condition": "new",
      "show_location": "boolean",
      "location": {
        "latitude": 54.983333,
        "longitude": 73.366667,
        "city": "Омск",
        "country": "Россия",
        "address": "ул Иванова 6"
      }
    }
  ]
}

Complaints

Create complaint

POST /complaints
type

advertisement

type
string
in
formData
owner_id

12

type
integer
in
formData
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Created",
  "data": {
    "id": 3,
    "_type": "advertisement",
    "owner_id": 86,
    "date": "2016-10-09T02:13:27.236722741+03:00",
    "user_id": 14
  }
}

Collections

Get collections list

POST /collections
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Collections",
  "data": [
    {
      "id": 1,
      "place": "крутота",
      "image": "string",
      "order": "integer",
      "advertisements": [
        {
          "id": 242,
          "user_id": 14,
          "user": {
            "id": 8,
            "name": "Igor",
            "phone": 37126668813
          },
          "text": "Each app distributed on the App Store for iMessage will have its own product page that provides information about the app and includes the download link. To learn how to craft an effective product page, see App Store Product Page.",
          "prise": "6",
          "date": "2016-10-11T21:16:22Z",
          "category_id": 1,
          "category": {
            "id": 3,
            "name": "One awesome"
          },
          "photos": [
            {
              "id": 56,
              "file": "4c428e7956778649.jpg",
              "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
              "width": 640,
              "heigth": 640,
              "items": [
                {
                  "id": "integer",
                  "preset": "small",
                  "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
                  "file": "s-4c428e7956778649.jpg",
                  "width": 640,
                  "heigth": 640,
                  "items": []
                }
              ]
            }
          ],
          "likes_count": 1,
          "liked_by_me": "boolean",
          "comments_count": 14,
          "sold": "boolean",
          "deleted": "boolean",
          "negotiable": "boolean",
          "condition": "new",
          "show_location": "boolean",
          "location": {
            "latitude": 54.983333,
            "longitude": 73.366667,
            "city": "Омск",
            "country": "Россия",
            "address": "ул Иванова 6"
          }
        }
      ]
    }
  ]
}

Advertisements

Create advertisement

POST /advertisements
text

My awesome text

type
string
in
formData
price

100.5

type
number
in
query
200 OK

OK

Response Example (200 OK)
{
  "status": 200,
  "message": "AdvertisementsItem",
  "data": {
    "id": 242,
    "user_id": 14,
    "user": {
      "id": 8,
      "name": "Igor",
      "phone": 37126668813
    },
    "text": "Each app distributed on the App Store for iMessage will have its own product page that provides information about the app and includes the download link. To learn how to craft an effective product page, see App Store Product Page.",
    "prise": "6",
    "date": "2016-10-11T21:16:22Z",
    "category_id": 1,
    "category": {
      "id": 3,
      "name": "One awesome"
    },
    "photos": [
      {
        "id": 56,
        "file": "4c428e7956778649.jpg",
        "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
        "width": 640,
        "heigth": 640,
        "items": [
          {
            "id": "integer",
            "preset": "small",
            "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
            "file": "s-4c428e7956778649.jpg",
            "width": 640,
            "heigth": 640,
            "items": []
          }
        ]
      }
    ],
    "likes_count": 1,
    "liked_by_me": "boolean",
    "comments_count": 14,
    "sold": "boolean",
    "deleted": "boolean",
    "negotiable": "boolean",
    "condition": "new",
    "show_location": "boolean",
    "location": {
      "latitude": 54.983333,
      "longitude": 73.366667,
      "city": "Омск",
      "country": "Россия",
      "address": "ул Иванова 6"
    }
  }
}

Get advertisement

GET /advertisements/{id}
id

(no description)

type
string
in
path
id

42

type
string
in
query
200 OK

OK

Response Example (200 OK)
{
  "status": 200,
  "message": "AdvertisementsItem",
  "data": {
    "id": 242,
    "user_id": 14,
    "user": {
      "id": 8,
      "name": "Igor",
      "phone": 37126668813
    },
    "text": "Each app distributed on the App Store for iMessage will have its own product page that provides information about the app and includes the download link. To learn how to craft an effective product page, see App Store Product Page.",
    "prise": "6",
    "date": "2016-10-11T21:16:22Z",
    "category_id": 1,
    "category": {
      "id": 3,
      "name": "One awesome"
    },
    "photos": [
      {
        "id": 56,
        "file": "4c428e7956778649.jpg",
        "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
        "width": 640,
        "heigth": 640,
        "items": [
          {
            "id": "integer",
            "preset": "small",
            "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
            "file": "s-4c428e7956778649.jpg",
            "width": 640,
            "heigth": 640,
            "items": []
          }
        ]
      }
    ],
    "likes_count": 1,
    "liked_by_me": "boolean",
    "comments_count": 14,
    "sold": "boolean",
    "deleted": "boolean",
    "negotiable": "boolean",
    "condition": "new",
    "show_location": "boolean",
    "location": {
      "latitude": 54.983333,
      "longitude": 73.366667,
      "city": "Омск",
      "country": "Россия",
      "address": "ул Иванова 6"
    }
  }
}

Advertisement update

PUT /advertisements/{id}
id

(no description)

type
string
in
path
id

42

type
string
in
query
negotiable

(no description)

type
boolean
in
formData
sold

(no description)

type
boolean
in
formData
200 OK

OK

Response Example (200 OK)
{
  "status": 200,
  "message": "AdvertisementsItem",
  "data": {
    "id": 242,
    "user_id": 14,
    "user": {
      "id": 8,
      "name": "Igor",
      "phone": 37126668813
    },
    "text": "Each app distributed on the App Store for iMessage will have its own product page that provides information about the app and includes the download link. To learn how to craft an effective product page, see App Store Product Page.",
    "prise": "6",
    "date": "2016-10-11T21:16:22Z",
    "category_id": 1,
    "category": {
      "id": 3,
      "name": "One awesome"
    },
    "photos": [
      {
        "id": 56,
        "file": "4c428e7956778649.jpg",
        "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
        "width": 640,
        "heigth": 640,
        "items": [
          {
            "id": "integer",
            "preset": "small",
            "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
            "file": "s-4c428e7956778649.jpg",
            "width": 640,
            "heigth": 640,
            "items": []
          }
        ]
      }
    ],
    "likes_count": 1,
    "liked_by_me": "boolean",
    "comments_count": 14,
    "sold": "boolean",
    "deleted": "boolean",
    "negotiable": "boolean",
    "condition": "new",
    "show_location": "boolean",
    "location": {
      "latitude": 54.983333,
      "longitude": 73.366667,
      "city": "Омск",
      "country": "Россия",
      "address": "ул Иванова 6"
    }
  }
}

Likes

Do like

POST /likes
advertisement_id

42

type
integer
in
formData
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "PostLike",
  "data": "object"
}

Remove like

DELETE /likes
advertisement_id

42

type
integer
in
formData
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "DeleteLike",
  "data": "object"
}

Advert comments

Get advertisement comments

GET /comments
advertisement_id

42

type
integer
in
query
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Comments list",
  "data": [
    {
      "id": 39,
      "advertisement_id": 68,
      "text": "Cats",
      "date": "2016-09-15T14:10:59Z",
      "user": {
        "id": 8,
        "name": "Igor",
        "phone": 37126668813
      }
    }
  ]
}

Do comment

POST /comments
advertisement_id

42

type
integer
in
formData
text

Great bycicle

type
string
in
formData
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Created",
  "data": {
    "id": 139,
    "advertisement_id": 618,
    "text": "Cats",
    "date": "2016-09-15T14:10:59Z",
    "user": {
      "id": 8,
      "name": "Igor",
      "phone": 37126668813
    }
  }
}

Get user list

Get user profile

GET /users/{id}
id

(no description)

type
string
in
path
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "User list",
  "data": [
    {
      "id": 8,
      "name": "Igor",
      "phone": 37126668813
    }
  ]
}

User profile

Get user profile

GET /profile
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "GetProfile",
  "data": {
    "id": 39,
    "name": "awesome",
    "phone": 79994559202,
    "photo": {
      "id": 56,
      "file": "4c428e7956778649.jpg",
      "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
      "width": 640,
      "heigth": 640,
      "items": [
        {
          "id": "integer",
          "preset": "small",
          "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
          "file": "s-4c428e7956778649.jpg",
          "width": 640,
          "heigth": 640,
          "items": []
        }
      ]
    },
    "bio": "eeee"
  }
}

Update user profile

PUT /profile
name

Mr.Seller

type
string
in
formData
photo_id

42

type
integer
in
formData
bio

Great user's bio

type
string
in
formData
sex

w

type
string
in
formData
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "PutProfile",
  "data": {
    "id": 39,
    "name": "awesome",
    "phone": 79994559202,
    "photo": {
      "id": 56,
      "file": "4c428e7956778649.jpg",
      "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
      "width": 640,
      "heigth": 640,
      "items": [
        {
          "id": "integer",
          "preset": "small",
          "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
          "file": "s-4c428e7956778649.jpg",
          "width": 640,
          "heigth": 640,
          "items": []
        }
      ]
    },
    "bio": "eeee"
  }
}

Conversations

Get current user's conversations

POST /conversations
200 OK

OK

Response Example (200 OK)
{
  "status": 200,
  "message": "Conversations",
  "data": [
    {
      "id": 11,
      "new_messages_count": "integer",
      "users": [
        {
          "id": 8,
          "name": "Igor",
          "phone": 37126668813
        }
      ],
      "last_message": {
        "id": 242,
        "sender_id": 14,
        "sender": {
          "id": 14,
          "name": "kotchuprik",
          "phone": 79994559202
        },
        "conversation_id": 11,
        "advertisement_id": 68,
        "advertisement": {
          "id": 242,
          "user_id": 14,
          "user": {
            "id": 8,
            "name": "Igor",
            "phone": 37126668813
          },
          "text": "Each app distributed on the App Store for iMessage will have its own product page that provides information about the app and includes the download link. To learn how to craft an effective product page, see App Store Product Page.",
          "prise": "6",
          "date": "2016-10-11T21:16:22Z",
          "category_id": 1,
          "category": {
            "id": 3,
            "name": "One awesome"
          },
          "photos": [
            {
              "id": 56,
              "file": "4c428e7956778649.jpg",
              "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
              "width": 640,
              "heigth": 640,
              "items": [
                {
                  "id": "integer",
                  "preset": "small",
                  "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
                  "file": "s-4c428e7956778649.jpg",
                  "width": 640,
                  "heigth": 640,
                  "items": []
                }
              ]
            }
          ],
          "likes_count": 1,
          "liked_by_me": "boolean",
          "comments_count": 14,
          "sold": "boolean",
          "deleted": "boolean",
          "negotiable": "boolean",
          "condition": "new",
          "show_location": "boolean",
          "location": {
            "latitude": 54.983333,
            "longitude": 73.366667,
            "city": "Омск",
            "country": "Россия",
            "address": "ул Иванова 6"
          }
        },
        "_type": "question",
        "text": "test2",
        "created_at": "2016-10-06T16:52:15.494594Z",
        "was_read": "boolean"
      },
      "created_at": "2016-10-03T01:57:37Z"
    }
  ]
}

Messages

Get messages of conversation

GET /messages
user_id

User ID (mandatory if conversation_id is empty)

type
integer
in
query
conversation_id

Conversation ID чата (mandatory if user_id is empty)

type
integer
in
query
id

Start ID for pagination

type
integer
in
query
count

Count of records. Not more than 20

type
integer
in
query
direction

Direction of list

type
integer , x ∈ { next , prev }
in
query
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Messages",
  "data": [
    {
      "id": 11,
      "new_messages_count": "integer",
      "users": [
        {
          "id": 8,
          "name": "Igor",
          "phone": 37126668813
        }
      ],
      "last_message": {
        "id": 242,
        "sender_id": 14,
        "sender": {
          "id": 14,
          "name": "kotchuprik",
          "phone": 79994559202
        },
        "conversation_id": 11,
        "advertisement_id": 68,
        "advertisement": {
          "id": 242,
          "user_id": 14,
          "user": {
            "id": 8,
            "name": "Igor",
            "phone": 37126668813
          },
          "text": "Each app distributed on the App Store for iMessage will have its own product page that provides information about the app and includes the download link. To learn how to craft an effective product page, see App Store Product Page.",
          "prise": "6",
          "date": "2016-10-11T21:16:22Z",
          "category_id": 1,
          "category": {
            "id": 3,
            "name": "One awesome"
          },
          "photos": [
            {
              "id": 56,
              "file": "4c428e7956778649.jpg",
              "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
              "width": 640,
              "heigth": 640,
              "items": [
                {
                  "id": "integer",
                  "preset": "small",
                  "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
                  "file": "s-4c428e7956778649.jpg",
                  "width": 640,
                  "heigth": 640,
                  "items": []
                }
              ]
            }
          ],
          "likes_count": 1,
          "liked_by_me": "boolean",
          "comments_count": 14,
          "sold": "boolean",
          "deleted": "boolean",
          "negotiable": "boolean",
          "condition": "new",
          "show_location": "boolean",
          "location": {
            "latitude": 54.983333,
            "longitude": 73.366667,
            "city": "Омск",
            "country": "Россия",
            "address": "ул Иванова 6"
          }
        },
        "_type": "question",
        "text": "test2",
        "created_at": "2016-10-06T16:52:15.494594Z",
        "was_read": "boolean"
      }
    }
  ]
}

Send message

POST /messages
user_id

User ID (mandatory if conversation_id is empty)

type
integer
in
formData
conversation_id

Conversation ID чата (mandatory if user_id is empty)

type
integer
in
formData
advertisement_id

Advertisement ID (optional if type is message)

type
integer
in
formData
type

Count of records. Not more than 20

type
string , x ∈ { message , question , price_request }
in
formData
text

How much is moped?

type
string
in
formData
200 OK
Response Example (200 OK)
{
  "status": 200,
  "message": "Conversations",
  "data": {
    "id": 11,
    "new_messages_count": "integer",
    "users": [
      {
        "id": 8,
        "name": "Igor",
        "phone": 37126668813
      }
    ],
    "last_message": {
      "id": 242,
      "sender_id": 14,
      "sender": {
        "id": 14,
        "name": "kotchuprik",
        "phone": 79994559202
      },
      "conversation_id": 11,
      "advertisement_id": 68,
      "advertisement": {
        "id": 242,
        "user_id": 14,
        "user": {
          "id": 8,
          "name": "Igor",
          "phone": 37126668813
        },
        "text": "Each app distributed on the App Store for iMessage will have its own product page that provides information about the app and includes the download link. To learn how to craft an effective product page, see App Store Product Page.",
        "prise": "6",
        "date": "2016-10-11T21:16:22Z",
        "category_id": 1,
        "category": {
          "id": 3,
          "name": "One awesome"
        },
        "photos": [
          {
            "id": 56,
            "file": "4c428e7956778649.jpg",
            "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
            "width": 640,
            "heigth": 640,
            "items": [
              {
                "id": "integer",
                "preset": "small",
                "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
                "file": "s-4c428e7956778649.jpg",
                "width": 640,
                "heigth": 640,
                "items": []
              }
            ]
          }
        ],
        "likes_count": 1,
        "liked_by_me": "boolean",
        "comments_count": 14,
        "sold": "boolean",
        "deleted": "boolean",
        "negotiable": "boolean",
        "condition": "new",
        "show_location": "boolean",
        "location": {
          "latitude": 54.983333,
          "longitude": 73.366667,
          "city": "Омск",
          "country": "Россия",
          "address": "ул Иванова 6"
        }
      },
      "_type": "question",
      "text": "test2",
      "created_at": "2016-10-06T16:52:15.494594Z",
      "was_read": "boolean"
    }
  }
}

Mark messages as read

PUT /messages/mark/{id}
id

42

type
integer
in
path
200 OK

OK

Schema Definitions

user: object

id: integer
name: string
phone: integer
Example
{
  "id": 8,
  "name": "Igor",
  "phone": 37126668813
}

category: object

id: integer
name: string
Example
{
  "id": 3,
  "name": "One awesome"
}

photos: object

id: integer
file: string
url: string
width: string
heigth: string
items: object[]
Example
{
  "id": 56,
  "file": "4c428e7956778649.jpg",
  "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
  "width": 640,
  "heigth": 640,
  "items": [
    {
      "id": "integer",
      "preset": "small",
      "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
      "file": "s-4c428e7956778649.jpg",
      "width": 640,
      "heigth": 640,
      "items": []
    }
  ]
}

advertisement: object

id: integer
user_id: integer
user: user
text: string
prise: string
date: string
category_id: integer
category: category
photos: object[]
likes_count: integer
liked_by_me: boolean
comments_count: integer
sold: boolean
deleted: boolean
negotiable: boolean
condition: string
show_location: boolean
location: object
Example
{
  "id": 242,
  "user_id": 14,
  "user": {
    "id": 8,
    "name": "Igor",
    "phone": 37126668813
  },
  "text": "Each app distributed on the App Store for iMessage will have its own product page that provides information about the app and includes the download link. To learn how to craft an effective product page, see App Store Product Page.",
  "prise": "6",
  "date": "2016-10-11T21:16:22Z",
  "category_id": 1,
  "category": {
    "id": 3,
    "name": "One awesome"
  },
  "photos": [
    {
      "id": 56,
      "file": "4c428e7956778649.jpg",
      "url": "http://mido.strsqr.com/files/testdir/4c428e7956778649.jpg",
      "width": 640,
      "heigth": 640,
      "items": [
        {
          "id": "integer",
          "preset": "small",
          "url": "http://mido.strsqr.com/files/testdir/s-4c428e7956778649.jpg",
          "file": "s-4c428e7956778649.jpg",
          "width": 640,
          "heigth": 640,
          "items": []
        }
      ]
    }
  ],
  "likes_count": 1,
  "liked_by_me": "boolean",
  "comments_count": 14,
  "sold": "boolean",
  "deleted": "boolean",
  "negotiable": "boolean",
  "condition": "new",
  "show_location": "boolean",
  "location": {
    "latitude": 54.983333,
    "longitude": 73.366667,
    "city": "Омск",
    "country": "Россия",
    "address": "ул Иванова 6"
  }
}