1.You need to create an api. You can do it via the ui by clicking add api or by clicking “import api” and paste the swagger file content in the box.
If it’s via swagger go through the paths in the endpoint designer and set the configuration you need.
2. Set the with on the api
3. Create a policy and add the api to it.
4. In the portal management create a catalogue and add that policy to it.
5. Click on import document and paste the swagger content in it. https://tyk.io/docs/get-started/with-tyk-cloud/tutorials/create-portal-entry/
Note: In the swagger make sure the hose, authentication and version is set up correctly.
Thanks for the instructions on creating the documentation via the UI. However, I am wondering about the procedure to create documentation entries via the API without the UI
Then you need to attach the document ID to the list of policies in the API Portal.
.then((data) => createDocumentation(userAuthorization, policyId, data))
.tap((data) => {
let documentId = _.get(data, 'Message')
policies.push({
documentation: documentId,
long_description: `This is the long description to the API: ${apiName}`,
name: apiName,
policy_id: policyId,
short_description: `This is the short description to the API: ${apiName}`,
show: true,
version: 'v2',
})
})