Sha256: b42b60c1a377cda8997e6c1fb400c4d51a7d194a7449e8395e71cd066a241b2b

Contents?: true

Size: 1.39 KB

Versions: 7

Compression:

Stored size: 1.39 KB

Contents

h2.uk-text-success <i class="uk-icon-#{@menu_icons[@current_item]} uk-icon-medium "></i>&nbsp;&nbsp;REST Client

div.uk-grid
  div.uk-width-1-1
    div.uk-panel.uk-panel-box
      h3.uk-panel-title
        <i class="uk-icon-question-circle"></i> &nbsp;&nbsp;Request
      form.uk-form.uk-form-horizontal#query action="/restclient/query" method="POST"
        label.uk-form-label for="method" Method
        select#method name="method"
          option GET
          option POST
          option DELETE
          option PUT
        div &nbsp;
        label.uk-form-label for="url" Endpoint
        input.uk-form-width-large#url type="text" placeholder="url" name="url"
        div &nbsp;
        label.uk-form-label for="body" Body
        textarea.uk-form-large cols="50" name="body" rows="5" placeholder="body"
        div.uk-align-right
          input.uk-button.uk-button-small-primary type="submit" value="Send"

div.uk-grid
  div.uk-width-1-1
    div.uk-panel.uk-panel-box
      h3.uk-panel-title
        <i class="uk-icon-share-square"></i> &nbsp;&nbsp;Response
        br
        div#result.uk-width-1-1

javascript:
  $('#query').submit(function() {
    console.log($(this).serialize());
    $.ajax({
      data: $(this).serialize(),
      type: $(this).attr('method'),
      url: $(this).attr('action'),
      success: function(response) {
        $('#result').html(response);
      }
    });
    return false;
  });

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
prometheus-splash-0.9.1 lib/splash/webadmin/portal/views/restclient.slim
prometheus-splash-0.9.0 lib/splash/webadmin/portal/views/restclient.slim
prometheus-splash-0.8.6 lib/splash/webadmin/portal/views/restclient.slim
prometheus-splash-0.8.5 lib/splash/webadmin/portal/views/restclient.slim
prometheus-splash-0.8.4 lib/splash/webadmin/portal/views/restclient.slim
prometheus-splash-0.8.3 lib/splash/webadmin/portal/views/restclient.slim
prometheus-splash-0.8.2 lib/splash/webadmin/portal/views/restclient.slim