Comments (5)
Hi @timothymcmackin,
Thank you for contacting us.
You need to integrate the Reference docs into the Developer portal in order for the OpenApiTryIt
component to work as expected:
- Create a file
catfacts.page.yaml
(for example) in your Developer portal with the following content:
type: reference-docs
definitionId: catFacts
settings:
generateCodeSamples:
languages:
- lang: curl
- lang: JavaScript
- lang: Node.js
- Run
yarn clean
- Run
yarn start
Let us know whether it resolved your problem.
from developer-portal-starter.
Thanks @nalesnichok, that fixed the problem. It would be good to add that prerequisite here:
https://redocly.com/docs/developer-portal/guides/step-by-step/#prerequisites
from developer-portal-starter.
Another note for people in the future who may find this item: One issue I had was that if the openapi file was missing something or had a problem, the dev portal wouldn't load and didn't seem to give me an error So if you're having this problem, make sure that your openapi file has all of the necessary things like a servers
object.
from developer-portal-starter.
I have followed the previous steps, Incorrect definitionId popups randomly, sometimes if I run yarn clean and yarn start it starts working again
from developer-portal-starter.
I have found the issue, for some reason if I export a FullWidthLayout in the mdx file, the < OpenApiResponse > element breaks
from developer-portal-starter.
Related Issues (20)
- How to access nested nav items? HOT 3
- Feature Request - Add CSS classes for styling HOT 8
- Components in nav allowed?
- Unable to use UI components (OpenApiCodeSample) when using LandingLayout page template in .mdx file HOT 2
- How to access route changes? HOT 1
- Default logout functionality appends [object, object] to the end of the url causing 404 page on logout HOT 1
- bug: uninformative error messages
- Incorrect error messages: existing files "Could not find" HOT 5
- Cannot find module '@redocly/ui' HOT 5
- i18n HOT 1
- `yarn start` throws error on `\node_modules\yoga-layout-prebuilt\yoga-layout\build\Release\nbind.js:53` HOT 1
- Feature Request: Customize toc HOT 2
- Error parsing assets folder: Unexpected token < in JSON HOT 3
- The build command fails with zero information on errors HOT 1
- creating running via dockerfile HOT 1
- Can we add more syntax highlighting options? HOT 3
- Doubt remove first page HOT 2
- Doubt change nav gradient color theme HOT 1
- Deploying developer-portal-starter to Redocly HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from developer-portal-starter.