I have a project in my Organization of Programming Languages course and am building a web API using Racket. I have managed to get a server up and running that has multiple landing pages such as
localhost:8080/api/add
localhost:8080/api/subtract
I am new to Racket and have just used PHP in the past to handle GET parameter passing via the URL.
such as...
localhost:8080/api/add/?num1=1&num2=3
num1 would be accesed by PHP with
$_GET[ 'num1' ] ;
How should this be done in Racket? I have not found anything in the Racket documentation that shows an equivalent method. My final intent is to pass JSON strings as the GET parameter json
localhost:8080/api/add/?json={ some json }