This documentation is for WSO2 API Manager 2.0.0. View documentation for the latest release.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: https://wso2.org/jira/browse/DOCUMENTATION-6924

...

  1. Sign in to the API Publisher (https://<hostname>:9443/publisher) as apicreator .
  2. In the APIS menu, click Add New API.
  3. Select the option to design a new API and click Start Creating .

  4. Give the information in the table below.

    FieldSample value
    Name
    PhoneVerification
    Context
    /phoneverify
    Version1.0.0
    VisibilityPublic
    API Definition
    • URL pattern: CheckPhoneNumber  

      Note

      Note that this URL Pattern is the name of one of the resources that we are going to invoke from the backend service.

    • Request types: GET, POST

    Click Add and then click Next:  Implement > to move on to the next page.

  5. Select the Managed API option.

  6. Give the following information and click Next:M anage > once you are done.

    FieldSample value
    Endpoint typeHTTP/REST Endpoint
    Production endpoint

    In this guide, we work with a service exposed by the Cdyne services provider. We use their phone validation service, which has SOAP and REST interfaces. Endpoint is http://ws.cdyne.com/phoneverify/phoneverify.asmx. To verify the URL, click the Test button next to it.

    This sample service has two operations: CheckPhoneNumber and CheckPhoneNumbers. Let's use CheckPhoneNumber here.

    Sandbox endpointEndpoint is http://ws.cdyne.com/phoneverify/phoneverify.asmx. To verify the URL, click the Test button next to it.

  7. Provide the following information in the Manage tab. Leave default values for the rest of the parameters in the UI.

    FieldValueDescription
    Subscription Tiers<Select all available tiers>The API can be available for subscription at different levels of service. They allow you to limit the number of successful hits to an API during a given period.

  8. Once you are done, click Save

...