Closed tbuchaillot closed 2 years ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
@jeffy-mathew @furkansenharputlu can any of you guys have a look?
/release to release-1.2
Working on it! Note that it can take a few minutes.
@tbuchaillot Succesfully merged a257afd708d119405ff5768a6447552268adaf2d
to release-1.2
branch.
Description
This PR adds OAS support.
If an API has
is_oas
set totrue
, Tyk-sync will use/api/apis/oas
endpoint to update theid
. 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
Use tyk-sync dump command to dump OAS and tyk APIS Example:
./tyk-sync dump -d="http://localhost:3000" -s="7080fcd212a6489b64f6951f4b60e7b9" -t="examples/oas"
It should dump all the APIs correctly.Manually delete all the APIs from the dashboard.
Use tyk-sync sync command to re-create the APIs Example:
./tyk-sync sync -d="http://localhost:3000" -s="7080fcd212a6489b64f6951f4b60e7b9" -p="examples/oas"
It should create the API's again.Use tky-sync sync command again. It should update the APIs instead of deleting and creating them again.
https://tyktech.atlassian.net/browse/TT-5555