Skip to content

Latest commit

 

History

History
202 lines (143 loc) · 8.92 KB

File metadata and controls

202 lines (143 loc) · 8.92 KB

Integrator Lab 5 - API Developer Portal

In this lab you will discover how to customize and configure 3scale’s Developer Portal.

Audience: API Owners, Product Managers, Developers, Architects

Overview

The focal point of your developers experience is the API developer portal, and the level of effort you put into it will directly correlate to the level of success of your API program, and API developer engagement.

Why Red Hat?

Red Hat 3scale API Management Solution provides a built-in, state-of-the-art CMS portal, making it very easy to create your own branded hub with a custom domain to manage developer interactions, and help increase API adoption.

You can customize the look and feel of the entire Developer Portal to match your own branding. You have complete control over every element of the portal, so you can make it as easy as possible for developers to learn how to use your API.

Credentials:

Your username is: {user-username}
Your password is: openshift

3scale Admin Console
3scale Developer Portal

Customizing Developer Portal

  1. Switch to the web browser windown, displaying the console for the Red Hat 3scale API Management Platform.

  2. Log in to 3scale Admin web console using {user-username} and password: openshift. Click on Sign in.

    01-login.png
  3. Click on the Audience drop down and expand the Developer Portal menu.

    3scale-dev-portal-content.png
  4. Click on the Visit Developer Portal to take a look of how your developer portal looks like.

  5. You can see there is a default portal with information on your API, and how to signup. Unfortunately the API information is incorrect.

    12-devportal-overview.png

    We will edit our portal to update it with the correct information, and we will add the cool shadowman logo.

  6. Go back to your admin portal browser tab and scroll down to the content sub-sections and select the Main layout menu option.

    12-main-layout.png
  7. First look for the navbar section of the main HTML. Replace the {{ provider.name }} for the shadowman image link:

    <img src="https://www.redhat.com/profiles/rh/themes/redhatdotcom/img/logo.png" style=“width:150px;height:30px;border:0;” alt="{{ provider.name }}">
    13-custom-logo.png
  8. Click the Publish button at the bottom of the editor to save the changes and made them available in the site.

    14-publish-devportal.png
  9. Go back to browse the top of the content sub-sections and find the Homepage section.

    15-homepage-devportal.png
  10. Change all the code Echo references in the homepage code for Office Locations, using your browser’s Find+Replace functionality. Don’t bother changing the echo URL’s though.

  11. In line 124, change provider.services.api.application_plans to provider.services.location.application_plans

    15-homepage-devportal.png
  12. Click the Publish button.

  13. Refresh your Developer Portal’s browser tab to check the changes. Your Developer Portal should now look like this:

    16-updated-devportal.png

Were you able to customize the developer portal?

Try to redo this section, if any problem persists have your instructor check the Kubernetes pod that contains the 3scale API Management application.

Register New Accounts Using Developer Portal

  1. Take the place of one of your developers and signup for the Location Basic plan.

    16a-signup-limited.png
  2. Fill in your information and an email to register as a developer. Click on the Sign up button.

  3. The system will try to send a message with an activation link.

    16bb-signup-thankyou.png

    Currently the lab environment doesn’t have a configured email server, so we won’t be able to receive the email.

  4. Go back to your Accounts > Listing menu and navigate to Developers to activate the new account. Find your user under the Accounts and click the Activate link.

    16cc-activate-account.png

Were you able to activate your user account?

Try to redo this section, if any problem persists have your instructor check the Kubernetes pod that contains the 3scale API Management application.

Your user is now active and can log into the portal.

Login to the Developer Portal

  1. As your portal is not currently public, you will need your portal code to login. You can get the code in your admin portal by navigating to: Audience > Developer Portal > Domains & Access. Copy the Developer Portal Access Code value.

    16d-access-portal.png
  2. Open a new Incognito/Private browser window to test the Developer Portal login. Navigate to:

  3. Type your portal code to finish the login.

    16e-ingress-code.png
  4. Sign in to the portal with the username & password created in the previous section.

    16f-dev-signin.png
  5. You will land in the developers homepage, where you can click on See your applications & other credentials link.

    16f-dev-signin.png
  6. Retrieve your newly created Client ID and Client Secret.

    16g-user-credentials.png
  7. Edit the Redirect URL and enter the value http://www-{user-username}.{openshift-app-host}/

Were you able to customize the developer portal?

Try to redo this section, if any problem persists have your instructor check the Kubernetes pod that contains the 3scale API Management application.

Congratulations! You have successfully customized your Developer Portal and completed a Sign Up process.

Summary

In this lab you discovered how to add a developer facing experience to your APIs. Developers in your organization or outside of it can now register, gain access to API keys and develop sample applications.

You can now proceed to Lab 6

Notes and Further Reading

Red Hat 3scale Developer Portal’s CMS consists of a few elements:

  • Horizontal menu in the Admin Portal with access to content, redirects, and changes

  • The main area containing details of the sections above

  • CMS mode, accessible through the preview option

09-developer-portal.png

Liquid is a simple programming language used for displaying and processing most of the data from the 3scale system available for API providers. In 3scale, it is used to expose server-side data to your API developers, greatly extending the usefulness of the CMS while maintaining a high level of security.