Sha256: 5ab95e9e8e0ad1128f76c73751fd2a40975f1dcf3a2271add69a1300ea0aeef9

Contents?: true

Size: 1.65 KB

Versions: 1

Compression:

Stored size: 1.65 KB

Contents

-# coding: utf-8
!!!5
%html
  %head
    %script(language="javascript" src="webservice_tester/jquery.js")
    %script(language="javascript" src="webservice_tester/beautifier.js")
    %script(language="javascript" src="webservice_tester/webservice_tester.js")
    %link(href="webservice_tester/webservice_tester.css" rel="stylesheet" type="text/css")
%body
  .request
    .field
      %label
        URL
      %input#url(type='text')
    .field
      %label
        Method
      .radio-group
        .radio
          %input#GET(type='radio' name='method' value='GET' checked) GET
        .radio
          %input#POST(type='radio' name='method' value='POST') POST
        .radio
          %input#PUT(type='radio' name='method' value='PUT') PUT
        .radio
          %input#DELETE(type='radio' name='method' value='DELETE') DELETE
    .field
      %label
        Headers:
      %textarea#headers
    .field
      %label
        Body:
      %textarea#body
    .actions
      #send
        .default Send
        .loading Loading
    %hr
    .field
      %label
        Status Code:
      %input#status-code(type='text')
    .field
      %label
        Response:
      %textarea#response-body
  .examples
    - if !WebserviceTester.api_versions.blank?
      .version-links
        - WebserviceTester.api_versions.each do |version|
          %a{ href: '?version='+version, class: version == params[:version] ? 'active' : '' }= version

      - if params[:version].blank?
        - version = WebserviceTester.api_versions.first
      - else
        - version = params[:version]

      = haml :webservice, locals: { version: version }

    - else
      = haml :webservice, locals: { version: '' }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webservice_tester-0.2.0 lib/webservice_tester/views/main.haml