...
- Go to
<APIM_HOME>/repository/deployment/server/jaggeryapps/store/site/conf
directory, open thesite.json
file and set thetagWiseMode
attribute as true. - Go to the API Publisher and add tags to APIs with the suffix "-group" to APIs (e.g., Workflow APIs-group, Integration APIs-group, Quote APIs-group.)
- Restart the server.
- Log in to the API Store and note the APIs listed under their groups. You can click on a group to check what the APIs are inside it.
Customizing the API group
If you want to change the descriptions and the thumbnail images that come by default, do the following:
- Log in to the Management Console and click the Resources > Browse menu to open the registry.
- Create a collection named
tags
under the registry location/_system/governance/apimgt/applicationdata
. - Give read permission to the
system/wso2.anonymous.role
role. - Add each tag as collections under the tags collection (e.g., Workflow APIs-group, Integration APIs-group, Quote APIs-group.)
- Navigate to each tag collection and upload the following:
- description.txt with the description of the tag
- thumbnail.png for the thumbnail image
- Back in the API Store, note the changes you did in the registry.
Customizing error Pages
In API Manager store/publisher and admin webapps, jaggery.conf is the Jaggery configuration file specifies the application specific configurations. In that file we can find following code block which have configured the error pages.
Code Block |
---|
"errorPages":
{
"401":"/site/pages/error-pages/401.html",
"403":"/site/pages/error-pages/403.html",
"404":"/site/pages/error-pages/404.html",
"500":"/site/pages/error-pages/500.html"
} |
If such a specified error occurs due to an operation or page redirection inthe web application, it redirects to the specified html page. As an example, if you request for https://localhost:9443/store/site/conf.site.json, it gives a 403 response, it serves the html page site/pages/error-pages/403.html specified above.
Code Block |
---|
<html>
<head>
</head>
<body>
<h2>Error 403 : Forbidden</h2>
<br/>
<p>
<h4>You don't have permission to access anything with that kind of request. </h4>
</body>
</html> |
These error pages are located in <API-M_HOME>/repository/deployment/server/jaggeryapps/store/site/pages/error-pages directory. You can customize these html pages according to your preference (adding css, javasccript or jquery functionalities). And also you can create your own html pages to be viewed for errors occured by adding it to the jaggery.conf.