I'm creating an API using RapidAPI and when I upload an OpenAPI spec, the web UI API names are populated using the OpenAPI spec operationId
which is often camelCase. How can I get the name to appear as human friendly while preserving the standard camelCase operationId format?
Here's an example:
This is the official OpenAPI PetStore OAS3 example spec:
https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml
Here's an example API:
paths:
/pets:
get:
summary: List all pets
operationId: listPets
tags:
- pets
This gets loaded as the following where the operationId
value listPets
appears in the HTML navigation menu as shown below:
Instead of listPets
, I'd like the left hand nav to be human friendly with spaces like other APIs on RapidAPI. Other OpenAPI solutions use the operation summary
property which is "List all pets" in the OAI Petstore example and would be ideal, however, RapidAPI doesn't seem to support this, at least by default.
An output example is the RapidAPI Community Open Weather Map API which shows a name like "Current Weather Data".
https://rapidapi.com/community/api/open-weather-map
Is there a way to get a human friendly name in the web UI via OpenAPI spec without converting the operationId
format to a non-standard human friendly string? For example, is there another field the RapidAPI can use as a way to tell it to use the summary
property?