#2732 feat(stacks): adding save rest api in js

pull/12341/head
Cesar Munoz 2024-10-20 15:21:30 +02:00
parent 8c368fbf5f
commit bbb6bb37f8
No known key found for this signature in database
GPG Key ID: 1211B71005DDB995
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ function StackFactory($resource, API_ENDPOINT_STACKS) {
get: { method: 'GET', params: { id: '@id' } }, get: { method: 'GET', params: { id: '@id' } },
query: { method: 'GET', isArray: true }, query: { method: 'GET', isArray: true },
create: { method: 'POST', ignoreLoadingBar: true, params: { id: 'create', subaction: '@method', action: '@type' } }, 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 }, update: { method: 'PUT', params: { id: '@id' }, ignoreLoadingBar: true },
associate: { method: 'PUT', params: { id: '@id', swarmId: '@swarmId', endpointId: '@endpointId', orphanedRunning: '@orphanedRunning', action: 'associate' } }, associate: { method: 'PUT', params: { id: '@id', swarmId: '@swarmId', endpointId: '@endpointId', orphanedRunning: '@orphanedRunning', action: 'associate' } },
remove: { method: 'DELETE', params: { id: '@id', external: '@external', endpointId: '@endpointId' } }, remove: { method: 'DELETE', params: { id: '@id', external: '@external', endpointId: '@endpointId' } },