Today I used Express JS to make a simple API. First I initialized a repository with Node Pacakge Maanger and installed Express. From there, I wrote a little Javascript file that created the API and instructed it to listen on port 8080. From there I could define a GET method on the URI "coder" which returned a JSON object. From there, I downloaded a tool called Insomnia to help me query the API in a nice developer environment. Within Insomnia I sent my GET request, and got my JSON object as a response with a nice 200 OK code!
Tuesday, December 13, 2022
51/365: API With Express
Subscribe to:
Post Comments (Atom)
190: Sablier
The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...
-
The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...
-
The ZKasino project recently exit scammed over 33 million dollars worth of Ethereum. he recent debacle surrounding ZKasino offers valuable...
-
In addition to its native SDK, Hedera also supports smart contracts in a platform compatible with the Ethereum Virtual Machine. This allows ...
No comments:
Post a Comment