mirror of https://github.com/portainer/portainer
#2732 feat(stacks): adding save rest api in js
parent
8c368fbf5f
commit
bbb6bb37f8
|
@ -12,6 +12,7 @@ function StackFactory($resource, API_ENDPOINT_STACKS) {
|
|||
get: { method: 'GET', params: { id: '@id' } },
|
||||
query: { method: 'GET', isArray: true },
|
||||
create: { method: 'POST', ignoreLoadingBar: true, params: { id: 'create', subaction: '@method', action: '@type' } },
|
||||
save: { method: 'POST', ignoreLoadingBar: true, params: { id: 'save', subaction: '@method', action: '@type' } },
|
||||
update: { method: 'PUT', params: { id: '@id' }, ignoreLoadingBar: true },
|
||||
associate: { method: 'PUT', params: { id: '@id', swarmId: '@swarmId', endpointId: '@endpointId', orphanedRunning: '@orphanedRunning', action: 'associate' } },
|
||||
remove: { method: 'DELETE', params: { id: '@id', external: '@external', endpointId: '@endpointId' } },
|
||||
|
|
Loading…
Reference in New Issue