Available export formats
- OpenAPI 3.0: Standard API documentation format
- Postman Collections: Import into Postman or Insomnia
- TypeScript Types: Type-safe interfaces for frontend code
- React Query Hooks: Ready-to-use data fetching hooks
- React Components: Auto-generated view components
- Axios Clients: HTTP client with type safety
Exporting to OpenAPI
Convert your Apicentric service to an OpenAPI 3.0 specification:What gets exported
- All endpoints with methods and paths
- Response schemas and status codes
- Request body schemas
- Path, query, and header parameters
- Response examples
- API metadata (title, version, description)
Example export
Given this Apicentric service:users-api.yaml
openapi.json
Exporting to Postman
Create a Postman collection:Generating TypeScript types
Export type-safe TypeScript interfaces:src/types/api.ts
Generating React Query hooks
Export ready-to-use React Query hooks:src/hooks/useUsersApi.ts
Generating React view components
Export complete React components:src/components/UsersView.tsx
Batch exporting
Export multiple formats at once:CI/CD integration
GitHub Actions
Automate exports on every commit:.github/workflows/export.yml
Troubleshooting
Missing types in export
Ensure your service has proper schema definitions:Export fails with validation error
Validate your service first:Generated code has TypeScript errors
Check your response body formats are valid JSON:Next steps
Import specs
Import OpenAPI and Postman specs
Contract testing
Verify exports match real APIs
Request validation
Add validation to your services
Creating mocks
Learn about service definitions