Method answering requests such as api_name?s=these_arguments_are_optional

This method is available as both api_name and alt_name in HTTP. Responds only to the GET and PUT HTTP method.

Property definitions

nitcorn $ MyAction :: bar
	# Method answering requests such as `api_name?s=these_arguments_are_optional`
	#
	# This method is available as both `api_name` and `alt_name` in HTTP.
	# Responds only to the GET and PUT HTTP method.
	fun bar(s: nullable String, i: nullable Int, b: nullable Bool): HttpResponse
	is restful("api_name", "alt_name", GET, PUT) do

		var resp = new HttpResponse(200)
		resp.body = "bar {s or else "null"} {i or else "null"} {b or else "null"}"
		return resp
	end
lib/nitcorn/examples/src/restful_annot.nit:39,2--49,4