-
Notifications
You must be signed in to change notification settings - Fork 1
API
- Action (required)
- Takes one of these values: get, image, suggest, report
All parameters available for offentligkonst.se API can be used with the get action.
These parameters are documented at offentligkonst.se API constraints.
Som restrictions implemented in the API to the available parameters are the following:
- Predefined parameters can not be modified
- format parameter must be either json or geojson
These parameters are set inside the API before requesting data from offentligkonst.se API and can not be modified.
- json: compact
- is_inside: false
- is_removed: false
- has_same: false
All parameters available for offentligkonst.se API can be used with the get action.
These parameters are documented at offentligkonst.se API constraints.
These codes can be returned throughout the entire API
- 400 - Bad Request (Used for missing required parameters or bad values provided)
- 405 - Method Not Allowed (Reguest method is not allowed for requested resource)
- 601 - Action Not Recognised (Action parameter provided is not supported)
- 602 - Format Not Recognised (Format parameter provided is not supported)
Returns error codes from offentligkonst.se API.
These are documented at offentligkonst.se API error codes.
- 521 - MYSQL Connect Error (Database connection failed)
- Returns error code and message
// Example response HTTP status code: 521
{
error:{
{
"code": "2002",
"info": "Can't connect to local MySQL server through socket (mysql.sock) (38)"
}
}
}
- 522 - MYSQL Query Error (The Query could not be performed)
- Returns error message
{error: //error message returned from MYSQL}
- Returns error message
- 620 - MediaWiki API Login Failed (Login to MediaWiki API with configured account failed)
- This can occur in the following conditions:
- Bad login token retrieved from the MediaWiki API
- Wrong login data provided in the config file
- Reason is returned in an error message
- This can occur in the following conditions:
- 621 - MediaWiki API Login Blocked (Account has been blocked)
- 610 - MediaWiki API Error (Request to MediaWiki API from within this API returned an error)
- Returns error message returned from the MediaWiki API
// Example response HTTP status code: 610
{
error:{
{
"code": "unknown_action",
"info": "Unrecognized value for parameter 'action': blah",
"*": "See https://en.wikipedia.org/w/api.php for API usage"
}
}
}
- 611 - MediaWiki API Warnings (Request to MediaWiki API from within this API returned warnings)
- Returns warning messages returned from the MediaWiki API
// Example response HTTP status code: 611
{
warnings:{
"main": {
"*": "Unrecognized parameter: 'rmparam'"
},
"query": {
"*": "Unrecognized value for parameter 'list': raremodule"
}
}
}
- 520 - Missing Config File (Needed config files are not available)
- A
local.php
orserver.php
file must be present inapi/config
- see
template.php
for right format
- A
All outputs are formatted in JSON.
###Main Pages
###Javascript files
###Project directories
###About WAKT