Ich bin eine E-PAT Beispielinstanz. Alle meine APIs sind unter /api
Erhaltene Buchungen bis jetzt: bookings.txt
Erhaltene Formulare bis jetzt: formdata.txt
Response-Type if none specified: application/json
Auth is provided via a AUTH-TOKEN header. The requesting application has to send the following header with every request to the API:
Where [epattoken] is the API token issued by the EPAT instance.
For this mock, also EPAT-AUTH-TOKENs provided via GET are accepted for easier development and testing. They are implicitly included in the following example calls (for dev, it is now simpy the string epat hashed as MD5, 41b25014ca8536b93e3034a692119742).
Forms-app API
GET /api/?appcode=forms&action=formsReturns a list of available forms with their public attributes
List of forms with only public attributes, keyed by formid
GET /api/?appcode=forms&action=forms&secret=[formsecret]&entity=[formid]Returns metadata the form with id formid
Form object with all privates attributes if formsecret is correct
No response with HTTP error code 403 if formsecret is incorrect
No response with HTTP error code 404 if no form with the specified formid exists
formid 1 with correct secret)
formid 1 with incorrect secret)
formid 5000)
GET /api/?appcode=forms&action=forms&secret=[formsecret]&entity=[formid]&field=[formfield]Returns the content of the field formfield. Usually formfield is html to get the form's HTML-code
Content of field formfield if formsecret is correct
No response with HTTP error code 403 if formsecret is incorrect
No response with HTTP error code 404 if no form with the specified formid exists
html of form with formid 1 with correct secret. Note Contains no body/head parts)
html of form with formid 1 with incorrect secret)
html of form with non existing formid 5000)
POST /api/?appcode=forms&action=submit&secret=[formsecret]&entity=[formid]Transmits form data for form specified by formid
bodyjson_decode on it) with the following fields:formIdformid)formDatasignaturehtmlchecksumA object with a field success indicating the success of the submission
No response with HTTP error code 403 if formsecret is incorrect
No response with HTTP error code 404 if no form with the specified formid exists
Booking-app API
GET /api/booking/categoriesReturns list of all booking categories
GET /api/booking/servicesReturns list of all bookable services
categorycategory is provided, only services of this category are returned.GET /api/booking/providersReturns list of all providers that provide bookable services
serviceservice is provided, only providers that provide the service specified by this service id are returned.GET /api/booking/slotsReturns a list of free slots
serviceservice is provided, only slots for the service specified by this service id are returned.providersservice is provided, only slots are returned, where the specified providers are free.POST /api/booking/bookingrequestCreates a new booking request, returns result of saving the request.
salutation[NONE, MR, MS]firstnamelastnameemailtelservice_idcare_provider_idslot_fromslot_to