While it's not possible to register a public available page, you can register a page using cWebAdmin:AddWebTab. If the http request provides the proper Authentication header you should be able to call it. The Authentication header is filled with the type of authentication (in our case 'Basic') with "<Username>:<Password>" in base64 after it. An account called 'Test' with a password 'Test' would have a header like this: "Authentication: Basic VGVzdDpUZXN0".
It would be pretty cool if we could limit webadmin accounts to specific web tabs. That way we can add accounts that can specifically call such API pages. If we're going with this route we should also make it possible to hide tabs in the webadmin itself, since an admin doesn't want to see an API page. We should also make it possible to change the HTTP status code and headers, but that isn't too hard to do. We just add a second or even third return value or something.
@xoft, any thoughts if this is feasible?
It would be pretty cool if we could limit webadmin accounts to specific web tabs. That way we can add accounts that can specifically call such API pages. If we're going with this route we should also make it possible to hide tabs in the webadmin itself, since an admin doesn't want to see an API page. We should also make it possible to change the HTTP status code and headers, but that isn't too hard to do. We just add a second or even third return value or something.
@xoft, any thoughts if this is feasible?