rmict.nl
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
nikolasdimi@lemmy.world to Programmer Humor@programming.devEnglish · 26 days ago

Promoting your API tool - Guide for founders on Reddit

lemmy.world

message-square
24
link
fedilink
210

Promoting your API tool - Guide for founders on Reddit

lemmy.world

nikolasdimi@lemmy.world to Programmer Humor@programming.devEnglish · 26 days ago
message-square
24
link
fedilink
  • RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    77
    arrow-down
    1
    ·
    26 days ago

    Just use curl dammit!

    • rovingnothing29@lemmy.world
      link
      fedilink
      English
      arrow-up
      30
      arrow-down
      1
      ·
      26 days ago

      -Curl “https://justuse.org/curl/”

      -Returns a ton of html stuff

      Can’t even comply with their own argument.

      • RustyNova@lemmy.world
        link
        fedilink
        arrow-up
        13
        ·
        26 days ago

        Follow redirects? curl -L

        • Skullgrid@lemmy.world
          link
          fedilink
          arrow-up
          3
          arrow-down
          1
          ·
          26 days ago

          Follow redirects? curl -L

          still gives HTML

          • RustyNova@lemmy.world
            link
            fedilink
            arrow-up
            9
            arrow-down
            1
            ·
            26 days ago

            Yeah? That’s what the response is. What do you expect?

            • Scrubbles@poptalk.scrubbles.tech
              link
              fedilink
              English
              arrow-up
              4
              ·
              26 days ago

              I think they’re point is that curl is great but then you have to have a way to render it to know if it’s correct. With apis you can use jq, but yeah a dump of html isn’t really useful to humans

              • floquant@lemmy.dbzer0.com
                link
                fedilink
                arrow-up
                19
                arrow-down
                1
                ·
                26 days ago

                Yeah but we’re talking about API tools, not web browsers. People are using postman to see JSON, XML, or whatever horrible format the devs on the other side chose to use, not to render HTML graphically. If you query an HTML page using curl, you should get the HTML back, I don’t see what’s the problem

              • RustyNova@lemmy.world
                link
                fedilink
                arrow-up
                4
                ·
                26 days ago

                Oh. Fair enough. The intent for curl is definitely to display the HTML as it’s whole point.

                Anyways.

                curl -L -o “/tmp/your.html” https://justuse.org/curl && librewolf “/tmp/your.html”

                • ‹Hexa«Back›@lemmy.blahaj.zone
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  26 days ago

                  librewolf is overkill I was expecting to hear something like links2

                  • RustyNova@lemmy.world
                    link
                    fedilink
                    arrow-up
                    1
                    ·
                    25 days ago

                    Yeah, but It’s more that you probably already have a browser open, so it’s better to just reuse the resources

                    Also, just replace it with your favourite browser. It should also just work

              • Skullgrid@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                26 days ago

                I tried the suggestion and saw that the original complaint persisted.

                I didn’t think anything to be honest.

              • RustyNova@lemmy.world
                link
                fedilink
                arrow-up
                1
                ·
                26 days ago

                deleted by creator

            • Skullgrid@lemmy.world
              link
              fedilink
              arrow-up
              3
              ·
              26 days ago

              I tried the suggestion and saw that the original complaint persisted.

              I didn’t expect anything to be honest.

      • NullPointer@programming.dev
        link
        fedilink
        English
        arrow-up
        12
        ·
        26 days ago

        here ya go.

        curl cheat.sh/curl

    • mesa@piefed.social
      link
      fedilink
      English
      arrow-up
      5
      ·
      26 days ago

      It would be fun to create a CURL converter. Just simple aliases or conversion tool.

      I just looked it up, looks like there may be something like it here: https://github.com/christianhelle/curlgenerator

      I like the look of this: https://www.createopenapi.com/

    • Hazzard@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      25 days ago

      As much as I think that’s correct a lot of the time, something like Bruno has value too. Implementing complicated auth for an annoying service once and reusing it across several pre-written requests, useful features like a GUI and history to see prior responses from an endpoint, being able to share the “collection” in the repo as examples/developer tools that’s maintained alongside the code, writing docs with each request to explain its usage, this stuff does add value that isn’t trivial to do with curl.

    • blobii@lemmygrad.ml
      link
      fedilink
      arrow-up
      1
      ·
      20 days ago

      I still use curl 🥹

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 133 users / day
  • 4.19K users / week
  • 9.7K users / month
  • 18.2K users / 6 months
  • 1 local subscriber
  • 30.8K subscribers
  • 1.33K Posts
  • 30.2K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org