Sha256: 659bf152b4d94a3ffbba5caeff249b0435623deac3f2760df301d43b71d41804

Contents?: true

Size: 1.24 KB

Versions: 5

Compression:

Stored size: 1.24 KB

Contents

h2 <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.uk-form-large#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"
        dev.uk-align-right
          input.uk-button.uk-button-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

5 entries across 5 versions & 1 rubygems

Version Path
prometheus-splash-0.8.1 lib/splash/webadmin/portal/views/restclient.slim
prometheus-splash-0.8.0 lib/splash/webadmin/portal/views/restclient.slim
prometheus-splash-0.7.0 lib/splash/webadmin/portal/views/restclient.slim
prometheus-splash-0.6.1 lib/splash/webadmin/portal/views/restclient.slim
prometheus-splash-0.6.0 lib/splash/webadmin/portal/views/restclient.slim