• kibiz0r@midwest.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    25 days ago

    Does ReST mean anything anymore? It was originally a set of principles guiding the development of the HTTP 1.1 spec. Then it meant mapping CRUD to HTTP verbs so application-agnostic load balancers could work right. And now I guess it’s just HTTP+JSON?

  • Buckshot@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    24 days ago

    I got dumped with fixing some bugs in a project written by a contractor who had literally done this but with extra steps.

    Backend was sql server and c#/asp.

    There was an api endpoint that took json, used xslt to transform to xml. Then called the stored procedure specified in request passing the xml as a parameter.

    The stored procedure then queried the xml for parameters, executed the query, and returned results as xml.

    Another xslt transformed that to json and returned to the client.

    It was impressive how little c# there was.

    Despite holding all the business logic, the sql was not in source control.

      • Buckshot@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        23 days ago

        Yeah, maybe the contractor thought he’d get more work fixing it but he was long gone by the time I got it so i never met him

        One of bugs I got was performance because the search didn’t work, with about 600,000 assets in database it would timeout searching for one by exact match on ID. It took 45 minutes to return 1 result.

  • balsoft@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    25 days ago

    I would honestly prefer it if more websites just did that and gave you access to whatever they have about you in their database. Would be much easier to figure out which data they actually store about me. If you set up the access lsits appropriately it could be OK from the security perspective too (of course better to do it over something other than SQL, but who am I to judge).

  • Blackmist@feddit.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    24 days ago

    I did this just to reduce network latency. It’s not for public use, and tbh, I don’t think you can even get at it from outside the VPN.