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

Openapi spec and generated library #112

Merged
merged 7 commits into from
Jul 16, 2021
Merged

Openapi spec and generated library #112

merged 7 commits into from
Jul 16, 2021

Conversation

engelke
Copy link
Contributor

@engelke engelke commented Jul 16, 2021

Complete spec and library created.

* Markdown API docs

* Refactored all resource methods to one package

* Restored accidentally deleted resources/base

* Partial separation of db access from methods

* DB separated from method handlers

* Added first test

* More tests

* API functionally complete per current spec

* Reformatted by black

* Delete ,

Inadvertent rename, later restored

* Address PR #92 comments

* Used existing helper method more often

* Respond to PR review
@engelke engelke requested a review from ace-n July 16, 2021 21:58
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jul 16, 2021
Copy link
Contributor

@ace-n ace-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM - but this is a massive PR, so I only skimmed it.

(I assume there's no sense in splitting this up into smaller PRs.)

client-libs/python/README.md Show resolved Hide resolved
client-libs/python/README.md Show resolved Hide resolved
print("Exception when calling DefaultApi->approvers_get: %s\n" % e)

# create an instance of the API class
api_instance = swagger_client.DefaultApi(swagger_client.ApiClient(configuration))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we reuse previous api_instances here?

If not, we should add a comment explaining that.

(Feel free to ignore this comment if you decide - per my comment below - to split this up into multiple code blocks!)

client-libs/python/README.md Show resolved Hide resolved
@engelke
Copy link
Contributor Author

engelke commented Jul 16, 2021

Everything in the client-libs directory is currently autogenerated. Looking into ways to override some of it, but we will leave it as is for now.

* Api cleanup (#92)

* Markdown API docs

* Refactored all resource methods to one package

* Restored accidentally deleted resources/base

* Partial separation of db access from methods

* DB separated from method handlers

* Added first test

* More tests

* API functionally complete per current spec

* Reformatted by black

* Delete ,

Inadvertent rename, later restored

* Address PR #92 comments

* Used existing helper method more often

* Respond to PR review

* Unit tests (#94)

* Unit tests

* Adding directory

* Using alpine image and installing pytest

* Using slim image instead

* Adding descriptive ID's for the steps

* productivity(terraform): correct terraform violations via PR suggestions (#98)

* productivity(terraform): correct terraform violations via PR suggestions (fixes #50)

* Switch to secrets.GITHUB_TOKEN

Co-authored-by: Dina Graves Portman <dinagraves@google.com>

Co-authored-by: Dina Graves Portman <dinagraves@google.com>

* Update decisions.md (#108)

New decision record

* Terraform and setup.sh (#93)

Initial terraform setup.

Co-authored-by: Dina Graves Portman <dinagraves@google.com>
Co-authored-by: Adam Ross <adamross@google.com>
@engelke engelke requested a review from dinagraves as a code owner July 16, 2021 23:13
@engelke engelke merged commit 14ad729 into main Jul 16, 2021
@engelke engelke deleted the openapi branch July 16, 2021 23:41
grayside added a commit that referenced this pull request Jul 22, 2021
* OpenAPI spec and generated Python library

* More operations in spec

* Api cleanup (#92) (#101)

* Markdown API docs

* Refactored all resource methods to one package

* Restored accidentally deleted resources/base

* Partial separation of db access from methods

* DB separated from method handlers

* Added first test

* More tests

* API functionally complete per current spec

* Reformatted by black

* Delete ,

Inadvertent rename, later restored

* Address PR #92 comments

* Used existing helper method more often

* Respond to PR review

* OpenAPI complete, not finished

* Client library generated

* Update branch to match main (#113)

* Api cleanup (#92)

* Markdown API docs

* Refactored all resource methods to one package

* Restored accidentally deleted resources/base

* Partial separation of db access from methods

* DB separated from method handlers

* Added first test

* More tests

* API functionally complete per current spec

* Reformatted by black

* Delete ,

Inadvertent rename, later restored

* Address PR #92 comments

* Used existing helper method more often

* Respond to PR review

* Unit tests (#94)

* Unit tests

* Adding directory

* Using alpine image and installing pytest

* Using slim image instead

* Adding descriptive ID's for the steps

* productivity(terraform): correct terraform violations via PR suggestions (#98)

* productivity(terraform): correct terraform violations via PR suggestions (fixes #50)

* Switch to secrets.GITHUB_TOKEN

Co-authored-by: Dina Graves Portman <dinagraves@google.com>

Co-authored-by: Dina Graves Portman <dinagraves@google.com>

* Update decisions.md (#108)

New decision record

* Terraform and setup.sh (#93)

Initial terraform setup.

Co-authored-by: Dina Graves Portman <dinagraves@google.com>
Co-authored-by: Adam Ross <adamross@google.com>

Co-authored-by: Dina Graves Portman <dinagraves@google.com>
Co-authored-by: Adam Ross <adamross@google.com>
@grayside grayside added this to the v0.5.0 milestone Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants