DZone
Integration Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Integration Zone > Reindexing in WSO2 API-M to Display APIs in Publisher

Reindexing in WSO2 API-M to Display APIs in Publisher

In this article, learn how to reindex in WSO2 API-M to display all the APIs in Publisher after a back-end database password reset.

Suman Mohan user avatar by
Suman Mohan
·
Mar. 28, 22 · Integration Zone · Code Snippet
Like (3)
Save
Tweet
2.02K Views

Join the DZone community and get the full member experience.

Join For Free

WSO2 API-M 3.2.0 uses indexing to display API details in Publisher and DevPortal. Say you have API-M set up and running with Oracle or some other database and you have created some APIs in the Publisher. If the database password expires somehow and you restart the API-M server after the DB password reset, sometimes all the previously created APIs are not visible in Publisher after the server restart. But on checking in the database from the SQL developer or other DB tools, all the APIs can be seen.

To resolve this issue, the API data in the database needs to be reindexed. We can add the below reindexing configuration in the <Product_Home>/repository/conf/deployment.toml file and then restart the API-M server. That should resolve the issue. 

 
[indexing] 
enable = true 
re_indexing = 1

Example: Only four APIs are visible in Publisher after the backend database password reset and API-M server restart.

WSO2 API Manager

All the previously created APIs are present upon checking in the database.

screenshot of database

All the APIs are visible in Publisher after adding the reindexing configuration in deployment.toml and restarting the API-M server.

screenshot of all APIs that are visible


Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Quantum Computers Explained
  • How to Build Microservices With Node.js
  • Version Number Anti-Patterns
  • Python 101: Equality vs. Identity

Comments

Integration Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo