/Assets/Samples/WebApi/DuckDuckGoSearchController.cs

https://github.com/bitcake/bitstrap · C# · 11 lines · 10 code · 0 blank · 1 comment · 0 complexity · 59ae32ae0b08fdf8ee20bd7a753315c9 MD5 · raw file

  1. namespace BitStrap.Examples
  2. {
  3. //http://api.duckduckgo.com/?q=goku&format=json
  4. [WebUrl( "" )]
  5. public class DuckDuckGoSearchController : WebController<DuckDuckGoSearchController>
  6. {
  7. [WebUrl( "" )]
  8. [WebAction( WebMethod.GET, "", "format" )]
  9. public WebAction<string> web;
  10. }
  11. }