Smartdocs: developer portal (drupal 7) + Apigee X

Hello!

I know that Apigee Edge has an MNGM API for uploading smartdocs to an organization by this URI:
https://api.enterprise.apigee.com/v1/o/{your_org}/apimodels/

I wonder if there is a similar MNGM API for Apigee X?

1 Like

@JohnnyBee

For Apigee X see https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations.apis/create

and use endpoint [https://apigee.googleapis.com/v1](https://apigee.googleapis.com/v1)
Is this you are looking for?

Not exactly.

This doc using-smartdocs-document-apis says that:

“When you create a model in your portal, the model is actually stored in your Edge organization, not in Drupal.”

With Aigee Edge everything works, but what about Apigee X?

Could you share us which endpoint/curl request you are using to create model from Drupal portal?

This one:

curl -v https://api.enterprise.apigee.com/v1/o/{your_org}/apimodels/ -u edge_org_admin@example.com

The same as specified in the documentation.

This is the one for Apigee X:

curl --location ‘https://apigee.googleapis.com/v1/organizations/{your_org}/apis
–header ‘Authorization: Bearer [YOUR_ACCESS_TOKEN]’

Or

curl
‘[https://apigee.googleapis.com/v1/organizations/{your_org}/apis?key=[YOUR_API_KEY](https://apigee.googleapis.com/v1/organizations/{your_org}/apis?key=[YOUR_API_KEY)]’
–header ‘Authorization: Bearer [YOUR_ACCESS_TOKEN]’
–header ‘Accept: application/json’
–compressed

Both worked for me.

Are you saying that these two endpoints:

apigee_edge → https://api.enterprise.apigee.com/v1/o/{your_org}/apimodels

and

apigee_x → https://apigee.googleapis.com/v1/organizations/{your_org}/apis

are the same?

I think both are different,
https://apigee.googleapis.com/v1/organizations/{your_org}/apis this is used for API Proxies.

For Apigee X, api model [/apimodels](https://api.enterprise.apigee.com/v1/o/{your_org}/apimodels/) is not working.

@dchiesa1 Could you help with the endpoint.

1 Like

@JohnnyBee , Apigee X does not have this API. We store the API specs on the portal.

2 Likes

As I thought, thank you