• pixxelkick@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 months ago

    Technichally yes, SQL is an API.

    Not a RESTful one, nor an HTTP one, but SQL over a socket is very much a type of API…

    But I’m guessing we meant an HTTP RESTful API in which case god I hope not

  • sebsch@discuss.tchncs.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    7 months ago
    GET /api/database?query=SELECT+++name+++FROM+++users+++WHERE+++id=42
    

    I’ve seen that exact type of endpoint, hitting databases in production. 🔥