Petals BC REST

provide automatic API documentation

Details

  • Type: New Feature New Feature
  • Status: New New
  • Resolution: Unresolved
  • Affects Version/s: 1.3.0-BC
  • Fix Version/s: None
  • Component/s: Consumer mode
  • Security Level: Public
  • Description:
    Hide

    bc-soap displays the list of services exposed but bc-rest does not.

    Clear documentation of the APIs deployed is a plus for users and avoids a tedious job of maintaining documentation.

    the openapi initiative offers a standard for documenting APIs.
    Swagger-ui provides a user-friendly display of documentation.

    It is possible to automate the generation of this documentation and to expose it with swagger-ui (as spring can do for example).

    swagger-ui can be started on a port different from the bc-rest (so as not to reserve a specific endpoint). The port is configurable via a parameter at the start of the bc-rest (for example -D swaggerPort = 8088)
    ideally the documentation update is done with each loading or unloading of a su rest "consumes".
     
    This documentation must be configurable

    • a global parameter to activate or deactivate automatic documentation on the instance
    • a parameter in jbi:consume (as rest:service-base-path)
    • one parameter per operation

    thank you

    Show
    bc-soap displays the list of services exposed but bc-rest does not. Clear documentation of the APIs deployed is a plus for users and avoids a tedious job of maintaining documentation. the openapi initiative offers a standard for documenting APIs. Swagger-ui provides a user-friendly display of documentation. It is possible to automate the generation of this documentation and to expose it with swagger-ui (as spring can do for example). swagger-ui can be started on a port different from the bc-rest (so as not to reserve a specific endpoint). The port is configurable via a parameter at the start of the bc-rest (for example -D swaggerPort = 8088) ideally the documentation update is done with each loading or unloading of a su rest "consumes".   This documentation must be configurable
    • a global parameter to activate or deactivate automatic documentation on the instance
    • a parameter in jbi:consume (as rest:service-base-path)
    • one parameter per operation
    thank you
  • Environment:
    all petals container with started bc-rest

Issue Links

Activity

There aren't workflow transitions executed yet.

People

Dates

  • Created:
    Tue, 28 Jan 2020 - 09:27:52 +0100
    Updated:
    Tue, 28 Jan 2020 - 11:31:11 +0100