GithubHelp home page GithubHelp logo

arc-archive / raml-docs-response-panel Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 131 KB

Element that displays response documentation for RAML

Home Page: https://advancedrestclient.com/

License: Other

HTML 93.12% JavaScript 4.05% RAML 2.83%
raml api-console documentation

raml-docs-response-panel's Introduction

Build Status

raml-docs-response-panel

<raml-docs-response-panel> Element that displays response documentation for RAML

This element is used in <raml-docs-method-viewer> element. See it's demo for demo.

Example

<raml-docs-response-panel responses="[[raml.responses]]"></raml-docs-response-panel>

The raml.responses is a list of responses for current method. It can be obtained using a raml-path-to-object element or by passing method Definition from RAML's JSON structure. Note, you have to use ARC's <raml-js-parser> since it is also responsoble for transformind parser JSON output to internal data structure.

Element's width and overflow

The code blocks generated by the element can be wide. This is why this element has the CSS overflow property set to auto by default. In this case you can set the max-width or width propety on this element (or any parent element) and it will be respected.

Styling

<raml-docs-response-panel> provides the following custom properties and mixins for styling:

Custom property Description Default
--raml-docs-response-panel Mixin applied to the element {}
--arc-status-code-color-200 Color of the 200 status code (ARC theme option) rgba(56, 142, 60, 1)
--arc-status-code-color-300 Color of the 300 status code (ARC theme option) rgba(48, 63, 159, 1)
--arc-status-code-color-400 Color of the 400 status code (ARC theme option) rgba(245, 124, 0, 1)
--arc-status-code-color-500 Color of the 500 status code (ARC theme option) rgba(211, 47, 47, 1)
--arc-status-code-bgcolor-200 Background color of the 200 status code rgba(56, 142, 60, 0.12)
--arc-status-code-bgcolor-300 Background color of the 300 status code rgba(48, 63, 159, 0.12)
--arc-status-code-bgcolor-400 Background color of the 400 status code rgba(245, 124, 0, 0.12)
--arc-status-code-bgcolor-500 Background color of the 500 status code rgba(211, 47, 47, 0.12)
--raml-docs-response-panel-codes-border-color Border color of the response codes column rgba(0, 161, 223, 0.24)
--no-info-message A mixin applied to the "missing type" paragraph. {}
--raml-docs-response-panel-container A mixin applied to the element's main container {}
--raml-docs-response-panel-codes-content A mixin applied to the element's status codes container {}
--raml-docs-response-panel-docs-content A mixin applied to the element's documentation content container {}

raml-docs-response-panel's People

Contributors

arcauto avatar jarrodek avatar

Watchers

 avatar

raml-docs-response-panel's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.