Using Hashnode’s One-click OpenAPI spec importer, you can easily import your API docs.
Here’s how you can do it:
-
Go to the docs dashboard.
-
Then click on the
Guidesoption from the left sidebar and then click on+New. Since we are writing API docs, click onNew API reference.
-
A dialog box will open, where you will need to fill the following fields:
-
URL - Your OpenAPI docs URL, with
.jsonor.yamlextension. It should look like:https://companyname.swagger.io/api/v3/openapi.json
-
Name - This is an optional field. If you want, you can give it a name. For example - Pet store
-
Slug - This is an optional field, and you can update the slug to make your API docs direct to something like:
https://companyname-docs.hashnode.space/api/apireference/updatePet

-
-
Once you are done, click on
Import and createand your API reference is ready along with an API playground.