?
avatar nikosdion
nikosdion
4 Nov 2019

Please assign to @wilsonge per the discussion in gh-26925.

The API application currently implements HTTP verbs in a mostly RESTful manner but it's missing an implementation for OPTIONS.

Per "Build APIs You Won't Hate" by Phil Sturgeon, chapter 5 HATEOAS, "Discovering Resource Programmatically" we should respond to the OPTIONS verb with an HTTP header similar to
Allow: GET, HEAD, POST
thereby relaying the supported HTTP verbs for the resource.

I suspect this should be possible to implement by inspecting the routes for each resource.

Note that the supported routes need not be ACL'ed, e.g. you should return the DELETE verb even if the current user is not authorized to delete the resource as long as the resource supports deletion.

avatar nikosdion nikosdion - open - 4 Nov 2019
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Nov 2019
avatar nikosdion nikosdion - change - 22 Oct 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-10-22 13:57:41
Closed_By nikosdion
avatar nikosdion nikosdion - close - 22 Oct 2020
avatar pjdevries
pjdevries - comment - 6 Nov 2020

@nikosdion Why did you close this issue?

avatar wilsonge
wilsonge - comment - 24 Nov 2020

This is getting fixed as part of #31379

Add a Comment

Login with GitHub to post a comment