Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

feat: improve swagger basepath handling #269

Merged
merged 2 commits into from
Jul 25, 2017
Merged

Conversation

nhardman
Copy link
Contributor

If swagger basePath is found, create a basePath variable and add the the value from the swagger. Withing the route handling code, the basePath variable is concatenated to the remaining part of the route that was specified in the swagger. This makes the code easier to read, especially if the basepath is very long. In the case where no basepath is specified, the variable is not created.

@nhardman nhardman requested a review from tunniclm July 24, 2017 10:33
@codecov-io
Copy link

codecov-io commented Jul 24, 2017

Codecov Report

Merging #269 into develop will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #269      +/-   ##
===========================================
+ Coverage    90.02%   90.04%   +0.02%     
===========================================
  Files           11       11              
  Lines         1243     1246       +3     
===========================================
+ Hits          1119     1122       +3     
  Misses         124      124
Impacted Files Coverage Δ
refresh/index.js 91.58% <100%> (+0.06%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 395e39e...13c45f6. Read the comment docs.

@tunniclm tunniclm merged commit 810ba5e into develop Jul 25, 2017
@tunniclm tunniclm deleted the rework-swagger-basepath branch July 25, 2017 19:36
@tunniclm tunniclm added this to the 2.7.0 milestone Jul 27, 2017
tunniclm added a commit that referenced this pull request Aug 31, 2017
Release 2.8.0

### Bug Fixes

* default toolchain type clone ([e0bb80d](e0bb80d))
* override default toolchain type ([4f8b681](4f8b681))
* **package:** update generator-ibm-cloud-enablement to version 0.0.57 ([#284](#284)) ([fb308fc](fb308fc))

### Features

* decouple path reformatting from swaggerize ([349cec4](349cec4))
* improve swagger basepath handling ([#269](#269)) ([810ba5e](810ba5e))
* intial kubernetes support ([8df16e6](8df16e6))
* intial kubernetes support ([b6a259c](b6a259c))
* kubernetes helm support ([d1ab81a](d1ab81a))
* kubernetes helm support ([692ed5f](692ed5f))
* kubernetes support ([25341ea](25341ea))
* kubernetes support ([4227a7a](4227a7a))
* kubernetes support ([d1b7b49](d1b7b49))
* kubernetes support ([694a263](694a263))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants