TykTechnologies / tyk-sync

Tyk Sync - move Tyk configurations between multiple environments
Other
64 stars 23 forks source link

TT-5555 Adding OAS support #74

Closed tbuchaillot closed 2 years ago

tbuchaillot commented 2 years ago

Description

This PR adds OAS support.

If an API has is_oas set to true, Tyk-sync will use /api/apis/oas endpoint to update the id. For the API creation, the normal /api/apis endpoint seems enough.

We fix the OAS ID modifying the x-tyk-api-gateway.info.dbId field with the new ID from API creation.

How to test it

https://tyktech.atlassian.net/browse/TT-5555

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

tbuchaillot commented 2 years ago

@jeffy-mathew @furkansenharputlu can any of you guys have a look?

tbuchaillot commented 2 years ago

/release to release-1.2

tykbot[bot] commented 2 years ago

Working on it! Note that it can take a few minutes.

tykbot[bot] commented 2 years ago

@tbuchaillot Succesfully merged a257afd708d119405ff5768a6447552268adaf2d to release-1.2 branch.