From bbb6bb37f82525b2368d2ed951cfcc5102a070aa Mon Sep 17 00:00:00 2001 From: Cesar Munoz <56847527+LikeTheSalad@users.noreply.github.com> Date: Sun, 20 Oct 2024 15:21:30 +0200 Subject: [PATCH] #2732 feat(stacks): adding save rest api in js --- app/portainer/rest/stack.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/portainer/rest/stack.js b/app/portainer/rest/stack.js index 4bc761552..21432af1f 100644 --- a/app/portainer/rest/stack.js +++ b/app/portainer/rest/stack.js @@ -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' } },