-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable field for API Identification #24
Comments
will look into it. For now, you can get this to work by running delete and create options so that it doesn't create a new spec altogether |
Thant you for the fast answer. I've submitted a pull request with a implementation proposal. |
will take a look |
Hi @ssvaidyanathan. |
@giteshk - what do you think of this PR? Need your help reviewing this |
I like the idea. |
Can you also update the https://github.com/apigee/apigee-smartdocs-maven-plugin/blob/master/samples/Drupal8/DevPortal/pom.xml file with the proposed field change and set the default to |
@giteshk |
I have verified the jsonapi endpoint and it works as expected. |
@nandoan - Thanks for the contribution I have reviewed the code and provided some feedback. Please take a look |
Using the API title (extracted from the Openapi specification) is not the best option in some scenarios. When a developer makes a correction to the title this plugin creates a new API in Drupal portal because it is unable to find the existent one.
It would be nice to have an optional parameter to define witch field must be used as the API ID. With this change, after creating a custom field in Drupal and populating it using the apicatalog-config.json:
And the apigee-smartdocs-maven-plugin could be changed to use this field to locate the existent API instead of the title.
pom.xml
Ideally, the default behavior (when the new parameter isn't supplied) should be the current one: the title is used as the identifier.
The text was updated successfully, but these errors were encountered: