Skip to content

jsloop42/dnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dnet

A REST server and client using LFE/OTP.

Usage

./repl
lfe> (dnet:start)

APIs

λ curl -X GET "http://localhost:8080/"
{"status": "main"}% 
λ curl -X POST \
  'http://localhost:8080/http' \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "https://jsonip.com/"
}
'
<div>Task scheduled successfully</div>%