Need help with echo-sample?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

eurie-inc
147 Stars 33 Forks MIT License 17 Commits 0 Opened issues

Description

Sample Application Structure for Echo

Services available

!
?

Need anything else?

Contributors list

echo-sample

Sample Application Structure for micro Web Application Framework Echo.

HTTP Request Sample

POST

curl -H "Content-Type: application/json" -X POST -d '{"name":"Luis", "number": 9, "position": "FW"}' http://localhost:8888/api/v1/members
curl -H "Content-Type: application/json" -X POST -d '{"name":"Lionel", "number": 10, "position": "FW"}' http://localhost:8888/api/v1/members

=> {"number":10, "name":"Lionel", "position":"FW", "createdAt":1465415304}

GET a record

curl -H "Content-Type: application/json" -X GET http://localhost:8888/api/v1/members/10

=> {"number":10, "name":"Lionel", "position":"FW", "createdAt":1465415304}

GET records

curl -H "Content-Type: application/json" -X GET http://localhost:8888/api/v1/members

=> [

   {"number":9, "name":"Luis", "position":"FW", "createdAt":1465415304},
   {"number":10,"name":"Lionel", "position":"FW", "createdAt":1465415304}
 ]

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.