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

Update php-sdk to v2 #13

Merged
merged 15 commits into from
Mar 30, 2023
Merged

Update php-sdk to v2 #13

merged 15 commits into from
Mar 30, 2023

Conversation

0-sv
Copy link
Contributor

@0-sv 0-sv commented Mar 23, 2023

Description

Since we released api v2 we need to update our sdk.

It might be beneficial for us to generate the sdk since we have a proper swagger file. I attempted to do that and the results look good, I am able to query GetAvailability from platform using the generated sdk.

Motivation and context

@ggeorgiadis, @gpopides and me agreed to meet to discuss the results and there are some pros and cons for taking this approach. Since we have only an internal consumer and we would like this to scale such that we can generate also a sdk with our desired output for other languages we are taking this approach where we generate the sdk. It means we lose control over the output but since it is convenient to generate we are accepting that.

How has this been tested?

  1. Run make gen to see the results
  2. Manual testing using platform and seeing a successful connection.

Screenshots (if appropriate)

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@0-sv 0-sv added the enhancement New feature or request label Mar 23, 2023
@0-sv 0-sv self-assigned this Mar 23, 2023
@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #2771: [php-sdk] Update to v2.

Copy link
Member

@ggeorgiadis ggeorgiadis left a comment

Choose a reason for hiding this comment

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

Nice man, I've left a few comments below

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
composer.json Outdated Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
.openapi-generator-ignore Show resolved Hide resolved
@0-sv 0-sv requested a review from ggeorgiadis March 27, 2023 12:33
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
lib/Api/BookingsApi.php Show resolved Hide resolved
@0-sv 0-sv requested a review from ggeorgiadis March 28, 2023 15:11
@0-sv 0-sv merged commit 5d5e90e into master Mar 30, 2023
@0-sv 0-sv deleted the feature/sc-2771/php-sdk-update-to-v2 branch March 30, 2023 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants