jasperoost
Member
Hello people,
I recently installed XF 2.1 on my test board because of the new API.
Currently I have an external site that utilizes data from XF, it just queries the database now
but I thought it would be nice to replace that with the API.
In this post Mike mentions that the API can be extended, I would like to add my own endpoint for something not present in the API.
I've been digging around in the code a bit to see how stuff is routed but I can't figure out how I would add an endpoint.
So my question is, can anyone show me a basic example on how to do this? (in the form of an add-on).
Looking forward to replies.
I recently installed XF 2.1 on my test board because of the new API.
Currently I have an external site that utilizes data from XF, it just queries the database now
but I thought it would be nice to replace that with the API.
There isn't an endpoint for that currently, so it'd be worth making a specific suggestion about it. It might appear in a future build (though the API is also extendable if you have need for a particular endpoint).
In this post Mike mentions that the API can be extended, I would like to add my own endpoint for something not present in the API.
I've been digging around in the code a bit to see how stuff is routed but I can't figure out how I would add an endpoint.
So my question is, can anyone show me a basic example on how to do this? (in the form of an add-on).
Looking forward to replies.