Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GET /search

Global search

Example URI

Code Block
bash
bash
 http://example.com/restful_api/search?keyword=bermuda&view=blog

Parameters

Parameter

Type

Require ?

Description

keyword

string

yes

Keyword for searching

limit

number

no

Limit return results

page

number

no

Paging return results

view

string

no

Search by item type

Response

Code Block
php
php
{
  "status": "success",
  "data": [
    {
      "item_id": "5",
      "item_title": "Bermuda Triangle",
      "item_time_stamp": "1481594689",
      "item_user_id": "1",
      "item_type_id": "blog",
      "item_photo": "",
      "item_photo_server": "0",
      "item_link": "http://example.com/blog/5/bermuda-triangle/",
      "item_name": "Blog"
    }
  ],
  "messages": []
}