<%= render :partial => "/platform/developer/common/header" %> <%= javascript_include_tag("platform/api_explorer.js") %> <%= stylesheet_link_tag("platform/api_explorer.css") %>
<%=tr("#{Platform::Config.site_info[:title]} API Explorer", nil) %>
<% if Platform::Config.api_explorer_app? %>
<%=tr("Access Token:")%> <%=text_field_tag(:access_token, "", :style=>"width:600px;")%>   <%=link_to_function("X", "Platform.element('access_token').value = '';")%>
<% end %>
<%=select_tag("api_version", options_for_select(Platform::Config.api_supported_version_options, @api_version), :onChange=>"switchApiVersion()")%> <%=select_tag("request_method", options_for_select(['GET', 'POST', 'PUT', 'DELETE'], params[:method] || 'GET'), :style=>"", :onChange=>"switchRequestMethod()")%>
http://<%=Platform::Config.api_base_url%>/ <%=text_field_tag(:api_path, params[:path], :style=>"width:500px;border:0px;padding:0px;margin:0px;font-size:12px;vertical-align:middle;", :onKeyUp=>"if (event.keyCode == 13) {api_history_index=-1; submitRequest();}")%> <%=link_to_function(image_tag("platform/arrow_down.gif"), "toggleApiOptions(this)")%>
<%=link_to_function(tr("+ add a param"), "addPostField('', '')")%>
<%=link_to_function('<<', "makePreviousCall()", :class=>"button super gray small", :id => "history_previous") %> <%=link_to_function('>>', "makeNextCall()", :class=>"button super gray small", :id => "history_next") %> <%=link_to_function(image_tag("platform/arrow_down.gif", :style=>"vertical-align:middle"), "toggleApiHistory(this)", :class=>"button super gray small")%>
<%=link_to_function(image_tag("platform/clipboard_icon.gif", :style=>"height:14px;"), "copyToClipboard(this)", :class=>"button super gray small", :id => "") %> <%=link_to_function(image_tag("platform/world_link.png", :style=>"height:14px;"), "copyUrlToClipboard(this)", :class=>"button super gray small", :id => "") %> <%=link_to_function(image_tag("platform/minus_node.png", :style=>"height:14px;"), "expandAllResultObjects(false)", :class=>"button super gray small", :id => "") %> <%=link_to_function(image_tag("platform/plus_node.png", :style=>"height:14px;"), "expandAllResultObjects(true)", :class=>"button super gray small", :id => "") %>
<%= render :partial => "/platform/developer/common/footer" %>