Documentation ¶
Overview ¶
Demonstrate a simple Google App Engine app
The curl demo:
curl -i -d '{"Code":"FR","Name":"France"}' http://127.0.0.1:8080/countries curl -i -d '{"Code":"US","Name":"United States"}' http://127.0.0.1:8080/countries curl -i http://127.0.0.1:8080/countries/FR curl -i http://127.0.0.1:8080/countries/US curl -i http://127.0.0.1:8080/countries curl -i -X DELETE http://127.0.0.1:8080/countries/FR curl -i http://127.0.0.1:8080/countries curl -i -X DELETE http://127.0.0.1:8080/countries/US curl -i http://127.0.0.1:8080/countries
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteCountry ¶
func DeleteCountry(w rest.ResponseWriter, r *rest.Request)
func GetAllCountries ¶
func GetAllCountries(w rest.ResponseWriter, r *rest.Request)
func GetCountry ¶
func GetCountry(w rest.ResponseWriter, r *rest.Request)
func PostCountry ¶
func PostCountry(w rest.ResponseWriter, r *rest.Request)
Types ¶
Click to show internal directories.
Click to hide internal directories.