MDL-41720 some refactoring - api endpoint now not required, instead url to mediawiki root is required in input.