Re:A Collection of Free Public APIs That Is Tested Daily
by pimlottc on Tuesday August 27, 2024 @07:59PM
(#41374606)
I'd like to see isfizzbuzz.xyz.
Ideally, before 11:30 AM ET this Friday.
Re:A Collection of Free Public APIs That Is Tested Daily
by bliteral on Wednesday August 28, 2024 @02:18AM
(#41376515)
https://api.isfizzbuzz.xyz/
Cheers!
Re:A Collection of Free Public APIs That Is Tested Daily
by ikari_pl on Wednesday August 28, 2024 @04:40AM
(#41377377)
so many coding interviews will change forever
Re:A Collection of Free Public APIs That Is Tested Daily
by plingbang on Wednesday August 28, 2024 @06:41AM
(#41378076)
Awesome but seem to fail on some numbers e.g.
https://api.isfizzbuzz.xyz/api/15000000000000000000000000000...
BTW, there are neat divisibility rules which can give you the answer in practically linear time when the number is in decimal: https://en.wikipedia.org/wiki/Divisibility_rule
Re:A Collection of Free Public APIs That Is Tested Daily
by bliteral on Wednesday August 28, 2024 @04:02PM
(#41383625)
Clever! I found another simple alternative though.
Re:A Collection of Free Public APIs That Is Tested Daily
by fragmede on Wednesday August 28, 2024 @07:02PM
(#41385366)
The error response telling me to upgrade to a paid plan isn't in json.
Also, I broke something, maybe in the caching logic. I tried 99999999 then 999999 then 99999 and down, and now I'm currently getting.
~$ curl https://api.isfizzbuzz.xyz/api/9
Invalid number. Please upgrade to a paid plan to use imaginary, non-real, or non-numeric numbers.
also fails on 8.
Re:A Collection of Free Public APIs That Is Tested Daily
by bliteral on Thursday August 29, 2024 @01:19AM
(#41387600)
Whoops, fixed and fixed! And regression tests added.
I had made a silly, silly mistake when I went to restrict numbers longer than 7 digits from the "free plan", I had at the same time disallowed digits larger than 7 as being "valid digits", so anything with an 8 or a 9 had been "invalid".
Re:A Collection of Free Public APIs That Is Tested Daily
by Medox on Tuesday August 27, 2024 @07:01PM
(#41374190)
isprimeapi.xyz would be helpful.
Re:A Collection of Free Public APIs That Is Tested Daily
by Voklen on Wednesday August 28, 2024 @04:57PM
(#41384288)
Just made it, enjoy :) https://api.isprimeapi.xyz/api/isprime/7
Re:A Collection of Free Public APIs That Is Tested Daily
by yakshaving_jgt on Tuesday August 27, 2024 @06:35PM
(#41373972)
I hope someone sets up isthirteenapi.xyz.
Re:A Collection of Free Public APIs That Is Tested Daily
by another2another on Wednesday August 28, 2024 @05:50AM
(#41377770)
Putting the 'micro' into microservices one bit of logic at-a-time :)
Re:A Collection of Free Public APIs That Is Tested Daily
by drexlspivey on Wednesday August 28, 2024 @07:35AM
(#41378386)
And then isevenapi.xyz should call isoddapi.xyz and invert the result to offload all the work to them.
Re:A Collection of Free Public APIs That Is Tested Daily
by Quizzical4230 on Wednesday August 28, 2024 @04:10PM
(#41383713)
Just like the npm package, all it should do is call isevenapi.xyz and invert the result.