Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681465yNo one said what the data structure in the responses had to be, so... technically you could.
-
Well....
Technically table or dl could be considered a datastructure...
And you could parse it.
Insane? Maybe. But possible. -
Root825525yTotally possible. You have an html document containing every possible api response, and use an anchor tag to display the correct one. Your "api" then is just constructing the correct anchor from input and redirecting.
Nevermind that this would be exabytes of useless data, and giving away all of your customer data on every request.
Hell, just replace this page with the endless digits of Pi, and have your api search through it for the requested data. "404? If your data isn't here, check back in a few hours; we're busy calculating more!" -
If your PM is a guy, ask him if he can give birth to a baby (he's human, right?).
When he says no, ask him if that's because he's not powerful enough? 😂 -
@yellow-dog yes and do some out of worldly authentication through htaccess but! we do not want to resolve to that now, do we? 😅
-
@Root your rambling about pi reminded me of this: https://static.boredpanda.com/blog/...
Related Rants
Rantish story time!
Today I impressed myself. I was told in all seriousness by a PM "couldn't we do this API in HTML?" and kept a straight face. Even though he doubled down, following with "oh, do you think the language isn't powerful enough?".
Good times!
rant
api
html
html-engineering