DZone
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
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Trending

  • Engineering Production Agentic Systems: Part 1: The Pipeline
  • Real-Time Risk Signals for AI Agent Authorization
  • From APIs to Agents: How Back-End Engineering is Evolving in 2026
  • Designing a Page Object Model + TestNG Hybrid Framework: Patterns That Actually Scale

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.

By 
Suman Mohan user avatar
Suman Mohan
·
Mar. 28, 22 · Code Snippet
Likes (3)
Comment
Save
Tweet
Share
3.9K 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.

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

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

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook