This documentation is for WSO2 API Manager 1.7.0 View documentation for the latest release.
Page Comparison - Adding Documentation Using Swagger (v.21 vs v.24) - API Manager 1.7.0 - WSO2 Documentation

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Log in to API Publisher Web interface (https://localhost:9443/publisher), and go to Add API page. Create a new API with following information by navigating to each tab.
    For
    • Name: PhoneVerification
    • Context: /phoneverify
    • Version: 1.0.0
    • Choose to create a wildcard resource (/*)
    • Endpoint type: HTTP
    • Production Endpoint: http://ws.cdyne.com/phoneverify/phoneverify.asmx
    • Tier availability: Bronze/Gold/Silver/Unlimited
    • Transports: HTTP/HTTPS
    Define API resources for the operations you need to perform.
    Specify None as the Auth Type of OPTIONS

    • Image Added
    Tip

    In the Manage screen, you can specify an authentication type for the methods of the resource that you created earlier. 

    For each of the resource that has HTTP verbs requiring Authentication (i.e., Auth Type is not NONE),

    enable

    enable OPTIONS

    with

     with None

    Auth

     Auth type. For example, as the following screen shot shows, resources with /* URL Pattern has HTTP verbs with Auth Type

    as

    as Application & Application User. Therefore, we must

    give

    give None

    as

     as the Auth Type

    of

    of OPTIONS. This is to support CORS (Cross Origin Resource Sharing) between the API Store and Gateway. But, if no authentication is needed for any of the HTTP verbs, you don't have to

    specify

    specify None

    Auth

     Auth type

    to

    to OPTIONS.

    Image Removed

    Image Added 

  2. Publish the API to the API Store.

...