📂 OpenAPI Upload and Management
Learn how to upload and manage your OAS files.
Overview
Creating a comprehensive API reference starts with your OpenAPI Specification (OAS). ReadMe makes it simple to transform your existing OAS file into beautiful, interactive documentation that your developers will actually enjoy using.
Getting Started: Adding Your API Specification
To add your API specification to ReadMe:
- Navigate to your project and click on API Reference from the editor UI
- You'll see three options for creating your API reference:
- Upload File (.yaml or .json)
- Import from URL
- Build an API definition from scratch
Option 1: Upload Your OAS File
If you already have an OpenAPI specification file in YAML or JSON format:
- Click Upload File
- Select your .yaml or .json file
- ReadMe will parse your specification and generate your API reference automatically
Option 2: Import from URL
If your OAS file is hosted online:
- Click Import from URL
- Enter the URL where your specification is hosted
- Click Import
- ReadMe will fetch and parse your specification
Option 3: Build from Scratch
Don't have an OAS file yet? No problem!
- Click Start Building in the "Build an API definition from scratch" section
- Use our intuitive API Designer (formerly called manual editor) to create your API specification
- Add endpoints, parameters, response codes, and examples without writing any YAML or JSON
Managing Your API Definitions
After successfully adding your specification, you'll see it in the left navigation panel. Here's how to manage it:
Viewing Your API Definitions
- Click on API Definitions to see a list of all your uploaded specifications
- Each definition shows:
- Name of your API
- Last update timestamp
- Import method (File Upload, URL, etc.)
Adding Additional API Definitions
Need to add another API or version?
- Click the + Add button in the top right of the API Definitions page
- Choose your preferred import method again (Upload, URL, or Build)
Managing Editing Permissions
To prevent accidental changes to your specification:
- Click the Gear icon next to the Add button
- Toggle the Allow Editing switch off
- This is useful when you manage your OAS file externally and want to prevent changes within ReadMe
Editing Your API Definition
To make changes to your specification:
- Find your API definition in the list
- Click the Ellipses (three dots) menu
- Choose from these options:
- Edit Definition: Make changes to your API configuration
- View OAS: Open your raw OpenAPI Specification in a new tab
- Replace OAS: Upload a new version of your specification
- Delete: Remove this API definition
Editing API Settings
When editing your API definition, you can configure:
- API Title: The display name of your API
- Target Host URL: The base URL for making API calls
- Authentication Type: Configure how developers will authenticate with your API
- None
- API Key
- Basic
- Bearer
Best Practices
- Keep it updated: Whenever your API changes, update your specification to ensure your documentation stays accurate
- Use detailed descriptions: Take advantage of the description fields in your OAS file to provide context
- Include examples: Add request and response examples to help developers understand your API
- Disable editing if you manage your specification externally to prevent conflicting changes
- Use versioning for major API changes to help developers migrate smoothly
By following these steps, you'll create a professional, interactive API reference that helps developers succeed with your API.
Updated 4 days ago