Closed asaintsever closed 3 years ago
Hi @asaintsever, the API reference docs seem to be out-of-date, sorry about that. We are currently working on improving the docs site to fix this and other issues.
In the meantime, this is the new format to specify inline route information:
apiVersion: devportal.solo.io/v1alpha1
kind: APIProduct
metadata:
name: app-ns1-product
spec:
apis:
- apiDoc:
name: petstore-schema
namespace: app-ns1
openApi:
operations:
- id: addPet
gatewayConfig:
route:
inlineRoute:
backends:
- kube:
name: petstore
namespace: app-ns1
port: 8080
# ...
Works fine. Thanks!
We are working on fixing the generation of the API reference docs. I will close this issue once that is done.
Env
1.5.0-beta10
0.4.8
Issue
Try deploy
APIProduct
below:It will fail with error (log from dev-portal pod):
This
route
field is documented here: https://docs.solo.io/dev-portal/latest/reference/api/apiproduct/#openapioperationselector-openapioperation