For the complete documentation index, see llms.txt. This page is also available as Markdown.

[DELETE] /notices/1,2,3

  • Violates REST API principles.

    • Semantic violation since 1,2,3 is not a resource.

  • It opens up to an arbitrary amount of IDs in the URI.

  • This is also undesired because the controller has to parse the IDs, increasing overhead in the handler.

  • This should be:

    • Three separate calls.

    • OR accept query parameters as a filter

      • ?id[]=1&id[]=2&id[]=3

        • HTTP will automatically construct this format into an array.

      • ?id=1,2,3

        • The controller will need to parse the IDs manually.

Final Suggestion

[DELETE] /notices?id[]=1&id[]=2&id[]=3

Last updated