Operations Module moved to old repos
This commit is contained in:
1 parent
765659d4a2
commit
9e00cd2468
88 files changed
-84
No files matched your search
@@ -0,0 +1,40 @@
|
||||
import logger from '../config/logger'
|
||||
import axios from 'axios'
|
||||
|
||||
const ecosystemQuery = async (authorization) => {
|
||||
logger.debug('ecosystemQuery -> Entering function')
|
||||
|
||||
let response = await axios({
|
||||
url: process.env.GATEWAY_ENDPOINT,
|
||||
method: 'post',
|
||||
data: {
|
||||
query: `
|
||||
query {
|
||||
web_GetEcosystem {
|
||||
devTeams {
|
||||
codeName
|
||||
displayName
|
||||
host {
|
||||
url
|
||||
storage
|
||||
container
|
||||
accessKey
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
||||
},
|
||||
headers: {
|
||||
authorization: authorization
|
||||
}
|
||||
})
|
||||
|
||||
if (response.data.errors) {
|
||||
throw response.data.errors
|
||||
}
|
||||
|
||||
return response.data.data.web_GetEcosystem
|
||||
}
|
||||
|
||||
export default ecosystemQuery
|
||||
Reference in new issue
Block a user