• flandish@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    6 days ago

    i am still convincing lazy “senior” engs to stop using GET endpoints to do stuff. get to “/db_offline” should not set the fucking db offline.

    • Swedneck@discuss.tchncs.de
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 days ago

      I have to wonder if this happens because GET and POST are not super obvious names, like imagine if they were instead READ and WRITE endpoints?
      I don’t think anyone would make the same mistake with the linux filesystem stuff, like you cat /proc/cpuinfo and it erases the information about the processor.