Dynamic ApiQL documentation

ApiQL project

This is an demo project of the ApiQL.net application.
The advantage of using this application is to build rest API (including documentation) for your existing MySQL database.

..and YES! ONLY in few minutes!!!

Generated endpoint: /_documentation. API examples below use https://v2.apiql.net/.

Overview

ApiQL exposes configured MySQL tables as REST-style endpoints. This documentation is generated at runtime, so endpoint and column changes become visible after editing the JSON config and restarting the service.

Service

ItemValue
Documentation URL/_documentation
Endpoint modeallowed_actions
Configured endpoints2
Default page size10
Max page size100

Response shape

{
  "error": false,
  "status_text": "OK",
  "status_code": 200,
  "status_msg": "OK",
  "endpoint_name": {
    "page_info": {},
    "data": []
  }
}

Authentication

Requests must include a valid token in the query string. This service validates tokens from the configured MySQL token table and accepts only tokens with status = "valid".

curl "https://v2.apiql.net/endpoint_name?token=your_token"

Query options

OptionFormatPurpose
Paginationpage=2&limit=20Returns a paginated list. limit cannot exceed the configured maximum.
Fieldsfield[table.column]=aliasSelects specific fields and optionally aliases them.
Filterfilter[column]=valueAdds exact-match filters.
Searchsearch[column]=valueAdds LIKE searches.
Sortsort[column]=ASCSorts by a column. Accepted values are ASC and DESC.
Groupgroup[column]=columnAdds a GROUP BY expression.
Mergemerge[other_table.id]=table.other_idAdds an inner join between two tables.
Addadd[other_table.foreign_id]=idLoads one related row and adds it to each list item.

/author

listaddeditdelete

Columns

FieldTypeNullKeyDefaultExtra
idintNOPRIauto_increment
authorvarchar(200)NO
cityvarchar(100)YES
country_codevarchar(2)NO
emailvarchar(150)NO
linkedin_linkvarchar(250)YES
github_linkvarchar(200)YES
facebook_linkvarchar(250)YES

List records

curl "https://v2.apiql.net/author?token=your_token&page=1&limit=10"

Get one record

curl "https://v2.apiql.net/author/1?token=your_token"

Filter, search and sort

curl "https://v2.apiql.net/author?token=your_token&filter[author]=value&sort[id]=DESC"

Select fields

curl "https://v2.apiql.net/author?token=your_token&field[author.author]=author"

/information

listaddeditdelete

Columns

FieldTypeNullKeyDefaultExtra
idintNOPRIauto_increment
propertyvarchar(100)NO
valuelongtextYES

List records

curl "https://v2.apiql.net/information?token=your_token&page=1&limit=10"

Get one record

curl "https://v2.apiql.net/information/1?token=your_token"

Filter, search and sort

curl "https://v2.apiql.net/information?token=your_token&filter[property]=value&sort[id]=DESC"

Select fields

curl "https://v2.apiql.net/information?token=your_token&field[information.property]=property"