api icon indicating copy to clipboard operation
api copied to clipboard

extend the return of control api call

Open arhimede opened this issue 1 year ago • 2 comments

the call to api.dotkernel.net

can return something like


``` {"message":"Welcome to Dotkernel API!","debug":{"database":"connected","php":"6.4.28"}}

arhimede avatar May 28 '24 15:05 arhimede

Shouldn't this rather be a separate endpoint? Like /status or /health-check?

Easter egg noticed...

alexmerlin avatar May 29 '24 03:05 alexmerlin

can be a separate endpoint , maybe

  • if will be an open endpoint, ( no token required) then can stay in the main/current endpoint and return public and harmless informations: The purpose would be to quickly indicate that after an upgrade, composer update, regenerate cache , etc. operation the APi is still up PHP version will be returned from the x-powered-by header, not from php info

  • if will be a protected endpoint, with token required, then it can return some debug infos , like : what we have now in dot-debugbar, at Request and Config tabs

arhimede avatar May 29 '24 15:05 arhimede