Send spec url to swagger-client
This commit is contained in:
@@ -184,9 +184,9 @@ export const logRequest = (req) => {
|
|||||||
|
|
||||||
// Actually fire the request via fn.execute
|
// Actually fire the request via fn.execute
|
||||||
// (For debugging) and ease of testing
|
// (For debugging) and ease of testing
|
||||||
export const executeRequest = (req) => ({fn, specActions}) => {
|
export const executeRequest = (req) => ({fn, specActions, specSelectors}) => {
|
||||||
let { pathName, method } = req
|
let { pathName, method } = req
|
||||||
let parsedRequest = Object.assign({}, req)
|
let parsedRequest = Object.assign({ contextUrl: specSelectors.url() }, req)
|
||||||
if ( pathName && method ) {
|
if ( pathName && method ) {
|
||||||
parsedRequest.operationId = method.toLowerCase() + "-" + pathName
|
parsedRequest.operationId = method.toLowerCase() + "-" + pathName
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user