Skip to content

eurie-inc/echo-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}
     ]

About

Sample Application Structure for Echo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages