neomatrix369/RESTAPIUnifier

Refactor buildFinalURLWithTheAPIKey method

carlosvillademor opened this issue · 0 comments

org.neomatrix369.apiworld.URLBuilder.buildFinalURLWithTheAPIKey method needs refactoring.

The validation part is done in both private methods buildFinalURLWithTheAPIKey and validateAPIKey.

All we want to do is add the APIKey to the url if it is valid or fail otherwise.

@carlosvillademor, I'm working on this.