packages/insomnia-importers/src/importers/openapi3.js
function importRequest(endpointSchema, id, parentId) {
  const name = endpointSchema.summary || `${endpointSchema.method} ${endpointSchema.path}`;
  return {
    _type: 'request',
    _id: id,
    parentId: parentId,
    name,
    method: endpointSchema.method.toUpperCase(),
    url: '{{ base_url }}' + pathWithParamsAsVariables(endpointSchema.path),
    body: prepareBody(endpointSchema),
    headers: prepareHeaders(endpointSchema),
    parameters: prepareQueryParams(endpointSchema),
  };
}
function importRequest(endpointSchema, id, parentId) {
  const name = endpointSchema.summary || `${endpointSchema.method} ${endpointSchema.path}`;
  return {
    _type: 'request',
    _id: id,
    parentId: parentId,
    name,
    method: endpointSchema.method.toUpperCase(),
    url: '{{ base_url }}' + pathWithParamsAsVariables(endpointSchema.path),
    body: prepareBody(endpointSchema),
    headers: prepareHeaders(endpointSchema),
    parameters: prepareQueryParams(endpointSchema),
  };
}
function importRequest ( endpointSchema , id , parentId ) { const name = endpointSchema . summary || ` ${ endpointSchema . method } ${ endpointSchema . path } ` ; return { _type : 'request' , _id : id , parentId : parentId , name , method : endpointSchema . method . toUpperCase ( ) , url : '{{ base_url }}' + pathWithParamsAsVariables ( endpointSchema . path ) , body : prepareBody ( endpointSchema ) , headers : prepareHeaders ( endpointSchema ) , parameters : prepareQueryParams ( endpointSchema ) , } ; }
Return Insomnia request


@param {Object} endpointSchema - OpenAPI 3 endpoint schema
@param {string} id - id to be given to current request
@param {string} parentId - id of parent category
@returns {Object}
Return Insomnia request