Skip to content

Releases: mulesoft/api-console

v6.2.6

28 Sep 20:27
9fe2c7d

Choose a tag to compare

Fixes

  • Fixed bug example generation for partial models where some properties would not appear in rendered example if their values were empty strings, false boolean values or 0 integer values
  • Fixed bug in type documentation where enum array properties weren't being rendered correctly
  • Fixed bug where the queryString node was defined on an operation, but the query parameters didn't render in the try it panel
  • Fixed bug where XML example structures did not match the definition in the RAML type
  • Fixed bug where JSON schemas in RAML did not render completely

v6.2.5

31 Aug 12:59

Choose a tag to compare

Fixes
Changing RAML baseUri made query parameters section disappear

  • Duplicated examples in type documentation
  • Query string documentation was missing
  • Media types selector was missing when multiple media types defined in spec
  • Increase space between input and selectors and their labels
  • Table view was not displaying string examples
  • When setting no-auto-encoding annotation to URL elements, components were still being encoded

Features

  • New css variable for text wrapping for navigation items

v6.0.4

23 Jul 15:20

Choose a tag to compare

Bug fixes:

  • Client secret missing on request when authorizing for client_credentials authorizationGrants

v6.2.4

21 Jul 14:15
8942c2f

Choose a tag to compare

Fixes

  • Add scrolling to response codes in documentation to be able to see all possible response code options APIC-335
  • Example generation for partial models now accounts for arrays with only 1 item appearing as a single object in partial model APIC-456
  • Fix issue where documentation pages were listed in navigation with its description content rather than its title APIC-435

Features

  • Add rearrangeEndpoints property to api-documentation component, so it will be passed down to the api-summary if present APIC-383
  • Pass down rearrangeEndpoints value to api-documentation as well

v6.2.3

07 Jul 20:59

Choose a tag to compare

Fixes

APIC-390: when a library is applied, documentation is blank for types
APIC-400: server menu list width should fit dropdown width
APIC-406: URI in api-documentation and api-request-panel component does not update when servers in model change
APIC-417: Duplicate headers and headers from other methods shown in request panel
APIC-426: API Console do not understand readOnly fields when generating examples for OAS3 APIs
APIC-431: A property of type Object is rendered as a String
APIC-439: Library type documentation is blank
APIC-440: Missing response examples

Features

APIC-433: Implement oneOf, anyOf from OAS3

v6.0.3

25 Jun 17:58

Choose a tag to compare

Bug fixes:

  • Client Id and Client secret fields missing for client_credentials authorizationGrants

v6.2.2

12 Jun 20:19
eb48d87

Choose a tag to compare

Bug fixes:

  • xml example with missing "e" at the end (APIC-391)
  • Response Body Type Not Rendering (APIC-429)

Bug fixes & improved OAS 3 support

27 May 18:43
189d5c5

Choose a tag to compare

This release adds multiple fixes for the OAS 3 support release (v6.2.0). Fixes include:

  • Examples generation after AMF model changes
  • Auto selection of a custom server when no servers are defined in an API
  • Support for the partial AMF model when querying for servers
  • api-request event listener is now registered on the request panel instead of the eventsTarget
  • Duplicated content-type header on the request editor
  • XSS via authorization URI
  • Authorization method styling issue
  • Restored support for partial model when getting servers
  • Additional model support when computing servers servers
  • Operation and endpoint servers override base servers when switching to Try It panel
  • Fix display of enum values for array type document
  • Added OAS' external documentation support in the navigation

OAS 3 support

28 Apr 05:00
0ffcc85

Choose a tag to compare

This release adds OAS 3 support to API Console.
The changes are backward compatible. This means that this release only adds functionality to the existing API console without changing or removing existing. The exception is the authorization data attached to the request object but because API Console handles request internally and applies auth data to request object this is not a breaking change. If you read the auth property of the request object then your application may break as now it returns an array to support multi authorization in OAS.

Support for multi-server definitions

This brings a number of changes to how the console processes base URI and server definition:

  • Server is selected automatically to the first server on the list, unless selection is already made.
    The server selector attributes are:
    • baseUri (string): overrides any server definition value
    • allowCustomBaseUri (boolean): When true a custom URI can be provided by the user
    • servers (array): Array of servers to be rendered
    • serverType (string): Currently selected base URI type. (‘server’ when provided in the amf model, ‘uri’ if provided through the custom-base-uri slot and custom if custom URI option is selected)
    • serverValue (string): Current value of the server selector
  • The server selector is rendered:
    • By default in the request editor in full view
    • In the documentation view when the console is rendered in the narrow view and the current view is the documentation
    • In both cases the selector is not rendered when there is less than 2 options to render
  • The api-summary screen now renders a list of base URIs from each server definition. It renders a single base URI (as before) if there’s only one server.

Custom servers

In addition to the server selector now developers can insert a list items as child nodes of the console that will be rendered in the selector. In this case the selector is always rendered.

To the server selector with custom items in it add anypoint-items (or other list items) as children to api-server-selector, api-console, api-documentation or api-request-panel components.

Each anypoint-item must:

  • Have the “slot” attribute set to “custom-base-uri”
  • Have the “value” attribute with the base URI value to add

Example:

<api console>
  <anypoint-item slot=”custom-base-uri” value=”https://base1.com”>Base 1</anypoint-item>
  <anypoint-item slot=”custom-base-uri” value=”https://base2.com”>Base 2</anypoint-item>
</api-console>

New authorization methods

The authorization panel for the request editor was redesigned and rebuilt from scratch to enable OAS’ multi-authorization feature. An OAS API can define a number of authorization definitions that can be applied to the request. This changes the way how the console handles the authorization data provided by the user.

Comparing to the previous version:

  • Authorization data are applied to the request in the moment when the user decide to send the request and not when the data in the editor change
  • The “auth” property of the request object is now an array of all security definitions applied to the request
  • When the authorization settings only manipulate headers or query parameters then this parameters are applied to the request object at the moment of dispatching the “api-request” event
  • Settings for each authorization depends on the type of the security scheme. Learn more in the api-authorization component documentation https://github.com/advanced-rest-client/api-authorization#authorization-settings

OAS’ links and callbacks

API Console now renders links and callback documentation in the method (operation) documentation screen. This is not supported by the request editor at the time as there’s no actual flow in making a request.

Other changes

  • Added support for “no-auto-encoding” annotation. If enabled on an URI parameter, the API Console will not automatically encode the URI parameter value from the specification. For example:
paramName:
  (no-auto-encoding):
    type: string

Deprecation notice

The URL editor is planned to be removed from the request editor. The reason is to simplify the UI and request editing logic. The end-user now can use the server selector to provide the base URI if needed and the rest of URI/query parameters can be defined in the request editor.
Currently we are preparing to gather usage data from the URL editor in the Anypoint platform to recognize possible result of this change. The removal is planned in Q4 2020.

v6.1.1

31 Mar 19:24
cf1fabf

Choose a tag to compare

  • fixed issues with multiple security scheme names in the navigation by adding name of the scheme to the type
  • upgrading AMF processor helper to better support OAS 3 features and build background for OAS 3 full support
  • upgraded lit-html and lit-element libraries to the latest version
  • upgraded dev dependencies