Skip to content
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

Optional fields in PivotalTracker #37

Open
paul-mesnilgrente opened this issue Jul 29, 2019 · 2 comments
Open

Optional fields in PivotalTracker #37

paul-mesnilgrente opened this issue Jul 29, 2019 · 2 comments

Comments

@paul-mesnilgrente
Copy link

The pivotal api v5 allows you to add some attributes/associations to the response as GET parameters, you can see it here on the section named "Selecting Attributes to Include in Responses"

Currently the PivotalTracker integration doesn't allow you to do it. Is there a way to do it? I'll be glad to work on a pull request for it or whatever. I need a starting point though and be sure that my work will be integrated if it's worth it :)

@rbren
Copy link
Collaborator

rbren commented Jul 31, 2019

Yup this should be doable. I think you just need to add a fields parameter to the OpenAPI for each operation.

You can look in ./patches for examples of how to patch the OpenAPI spec. Then you should be able to run node scripts/apis-guru --name pivotaltracker to apply the patch.

Hope that helps - if you get stuck feel free to reach out!

@paul-mesnilgrente
Copy link
Author

Nice, I'll have a look this Friday and see if I can do something about it :) I'll keep you posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants