MCPcopy Create free account
hub / github.com/apache/cloudstack / getAPI

Function getAPI

ui/src/api/index.js:39–55  ·  view source on GitHub ↗
(command, args = {})

Source from the content-addressed store, hash-verified

37]
38
39export function getAPI (command, args = {}) {
40 args.command = command
41 args.response = 'json'
42
43 const sessionkey = vueProps.$localStorage.get(ACCESS_TOKEN) || Cookies.get('sessionkey')
44 if (sessionkey) {
45 args.sessionkey = sessionkey
46 }
47
48 return axios({
49 params: {
50 ...args
51 },
52 url: '/',
53 method: 'GET'
54 })
55}
56
57export function postAPI (command, data = {}) {
58 const params = new URLSearchParams()

Callers 7

main.jsFile · 0.90
installFunction · 0.90
fetchGuiThemeFunction · 0.90
GetInfoFunction · 0.90
ProjectViewFunction · 0.90
RefreshFeaturesFunction · 0.90
UpdateConfigurationFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected