GET weekmenu Test
http://apfy.me/mpi.mashie.com/burken/weekmenu
Fetch the weekly menus for uppsala preschools
Original path | https://mpi.mashie.com/public/menu/uppsala+kommun/9f1e3914?country=se |
Transformation data | Show XSLT |
Validation data | Show XSDs |
Require https? | No |
Automatically follow redirects? | No |
Added | 2018-05-16 |
Modified | - |
Last successed fetch | 2019-02-16 |
Last successed parse | 2019-02-16 |
Request headers
Parameter | Description | Required | Validation |
---|---|---|---|
x-apfy-param-week | False |
Example request with Curl
curl -H "x-apfy-authorization: [Your API key]" \ -H "x-apfy-param-week: [Optional]" \ http://apfy.me/mpi.mashie.com/burken/weekmenu
Refer to the parameter-pane for more information about specific parameters
To get JSON-response instead of XMl add: -H "x-apfy-accept: application/json"
APFy.me - Response codes. If you're not getting any data, start by analyzing the response code to understand what might be wrong.
Example XML-response Example JSON-responseExtra info
APFy.me status codes
The normal HTTP-header:status will always contain the status code from the source server. APFy.me will add it's own status code in the x-apfy-status-header to give you information about how we handled the request.
See below which status codes you might get when calling APFy.me.
- Status 0 = All good
- Status 100 - 320 = Something is wrong with your request, correct it and try again.
- Status 330 - 340 = Something went wrong on the source server.
- Status 400 - 500 = The XSLT or XSD is malformed or failed to load.
- Status 510 = You will still get data but it failed to validate.
- 0 = Success
- 100 = API Key missing
- 110 = API Key malformed
- 120 = API Key does not exist
- 130 = API Key request limit reached
- 200 = Https required
- 210 = Request url malformed
- 220 = API method not found
- 300 = Wrong Http-verb
- 310 = Invalid request parameters
- 320 = Invalid request headers
- 330 = Request to the source server failed
- 340 = Bad response from the source server
- 400 = Failed to load XSLT
- 410 = XSL Transform failed
- 500 = Failed to load XSD
- 510 = Validation failed
- 9000 = Unknown error