You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 line
1.9 KiB

  1. !!!
  2. %html
  3. %head
  4. %meta{:charset => "utf-8"}
  5. / Always force latest IE rendering engine (even in intranet) and Chrome Frame
  6. %meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
  7. %title Swagger API Explorer
  8. %link{:href => "http://fonts.googleapis.com/css?family=Droid+Sans:400,700", :rel => "stylesheet", :type => "text/css"}
  9. %link{:href => "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/smoothness/jquery-ui.css", :media => "screen", :rel => "stylesheet", :type => "text/css"}
  10. %link{:href => "stylesheets/screen.css", :media => "screen", :rel => "stylesheet", :type => "text/css"}
  11. %script{:src => "javascripts/app.js", :type => "text/javascript"}
  12. %script{:src => "javascripts/swagger-service.js", :type => "text/javascript"}
  13. %script{:src => "javascripts/swagger-ui.js", :type => "text/javascript"}
  14. %body
  15. #header
  16. = link_to("swagger", "http://swagger.wordnik.com", :id => "logo")
  17. %form#api_selector
  18. .input= text_field_tag :baseUrl, :placeholder => "http://example.com/api", :id => 'input_baseUrl'
  19. .input= text_field_tag :apiKey, :placeholder => "api_key", :id => 'input_apiKey'
  20. .input= link_to('Explore', "#", :id => "explore")
  21. = yield
  22. #content_message
  23. Enter the base URL of the API that you wish to explore, or try
  24. = link_to("swagr.api.wordnik.com/v4", "#", :onclick => "$('#input_baseUrl').val('http://swagr.api.wordnik.com/v4'); apiSelectionController.showApi(); return false;")
  25. or
  26. = link_to("petstore.swagger.wordnik.com/api", "#", :onclick => "$('#input_baseUrl').val('http://petstore.swagger.wordnik.com/api'); apiSelectionController.showApi(); return false;") + "."
  27. %p#colophon{:style => 'display:none'}
  28. Sexy API documentation from
  29. = link_to("Swagger", "http://swagger.wordnik.com") + "."