-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 50: Store LSSS requests in an internal queue (UI)
- Loading branch information
Showing
23 changed files
with
1,066 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,166 +1,215 @@ | ||
// CONVENTION: must match model name, case sensitive | ||
var apiMapping = { | ||
Product: { | ||
validations: true, | ||
lazy: true, | ||
channel: '/channel/products', | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products', | ||
'method': '', | ||
'httpMethod': 'GET' | ||
}, | ||
create: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products', | ||
'method': '', | ||
'httpMethod': 'POST' | ||
}, | ||
update: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products', | ||
'method': '', | ||
'httpMethod': 'PUT' | ||
}, | ||
remove: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products', | ||
'method': '', | ||
'httpMethod': 'DELETE' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'products' | ||
} | ||
}, | ||
User: { | ||
lazy: true, | ||
channel: '/channel/users', | ||
instantiate: { | ||
'endpoint': '/private/queue', | ||
'controller': 'users', | ||
'method': 'credentials' | ||
}, | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'users' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'users' | ||
}, | ||
update: { | ||
'endpoint': '/private/queue', | ||
'controller': 'users', | ||
'method': 'update' | ||
} | ||
}, | ||
RemoteProductManager: { | ||
validations: true, | ||
lazy: true, | ||
channel: '/channel/remote-product-manager', | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'remote-product-manager', | ||
'method': '', | ||
'httpMethod': 'GET' | ||
}, | ||
create: { | ||
'endpoint': '/private/queue', | ||
'controller': 'remote-product-manager', | ||
'method': '', | ||
'httpMethod': 'POST' | ||
}, | ||
update: { | ||
'endpoint': '/private/queue', | ||
'controller': 'remote-product-manager', | ||
'method': '', | ||
'httpMethod': 'PUT' | ||
}, | ||
remove: { | ||
'endpoint': '/private/queue', | ||
'controller': 'remote-product-manager', | ||
'method': '', | ||
'httpMethod': 'DELETE' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'remote-product-manager' | ||
}, | ||
types: { | ||
'endpoint': '/channel', | ||
'controller': 'remote-product-manager', | ||
'method': 'types/', | ||
'httpMethod': 'GET' | ||
}, | ||
scaffolding: { | ||
'endpoint': '/channel', | ||
'controller': 'remote-product-manager', | ||
'method': 'scaffolding/:type/', | ||
'httpMethod': 'GET' | ||
} | ||
}, | ||
Status: { | ||
validations: true, | ||
lazy: true, | ||
channel: '/channel/status', | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'status', | ||
'method': '', | ||
'httpMethod': 'GET' | ||
}, | ||
create: { | ||
'endpoint': '/private/queue', | ||
'controller': 'status', | ||
'method': '', | ||
'httpMethod': 'POST' | ||
}, | ||
update: { | ||
'endpoint': '/private/queue', | ||
'controller': 'status', | ||
'method': '', | ||
'httpMethod': 'PUT' | ||
}, | ||
remove: { | ||
'endpoint': '/private/queue', | ||
'controller': 'status', | ||
'method': '', | ||
'httpMethod': 'DELETE' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'status' | ||
} | ||
}, | ||
RemoteProducts: { | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products/remote' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'products/remote' | ||
} | ||
}, | ||
ProductsStats: { | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products/stats' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'products/stats' | ||
} | ||
}, | ||
ActiveSprints: { | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'sprints/active' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'sprints/active' | ||
} | ||
Product: { | ||
validations: true, | ||
lazy: true, | ||
channel: '/channel/products', | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products', | ||
'method': '', | ||
'httpMethod': 'GET' | ||
}, | ||
create: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products', | ||
'method': '', | ||
'httpMethod': 'POST' | ||
}, | ||
update: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products', | ||
'method': '', | ||
'httpMethod': 'PUT' | ||
}, | ||
remove: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products', | ||
'method': '', | ||
'httpMethod': 'DELETE' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'products' | ||
} | ||
}, | ||
FeatureRequest: { | ||
validations: false, | ||
channel: '/channel/internal/request', | ||
push: { | ||
'endpoint': '/private/queue', | ||
'controller': 'internal/request', | ||
'method': 'push', | ||
'httpMethod': 'PUT' | ||
}, | ||
}, | ||
InternalRequest: { | ||
validations: true, | ||
lazy: true, | ||
channel: '/channel/internal/request', | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'internal/request', | ||
'method': '', | ||
'httpMethod': 'GET' | ||
}, | ||
create: { | ||
'endpoint': '/private/queue', | ||
'controller': 'internal/request', | ||
'method': '', | ||
'httpMethod': 'POST' | ||
}, | ||
update: { | ||
'endpoint': '/private/queue', | ||
'controller': 'internal/request', | ||
'method': '', | ||
'httpMethod': 'PUT' | ||
}, | ||
submitFeatureProposal: { | ||
'endpoint': '/private/queue', | ||
'controller': 'internal/request', | ||
'method': '', | ||
'httpMethod': 'PUT' | ||
}, | ||
remove: { | ||
'endpoint': '/private/queue', | ||
'controller': 'internal/request', | ||
'method': '', | ||
'httpMethod': 'DELETE' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'internal/request' | ||
} | ||
}, | ||
User: { | ||
lazy: true, | ||
channel: '/channel/users', | ||
instantiate: { | ||
'endpoint': '/private/queue', | ||
'controller': 'users', | ||
'method': 'credentials' | ||
}, | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'users' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'users' | ||
}, | ||
update: { | ||
'endpoint': '/private/queue', | ||
'controller': 'users', | ||
'method': 'update' | ||
} | ||
}, | ||
RemoteProductManager: { | ||
validations: true, | ||
lazy: true, | ||
channel: '/channel/remote-product-manager', | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'remote-product-manager', | ||
'method': '', | ||
'httpMethod': 'GET' | ||
}, | ||
create: { | ||
'endpoint': '/private/queue', | ||
'controller': 'remote-product-manager', | ||
'method': '', | ||
'httpMethod': 'POST' | ||
}, | ||
update: { | ||
'endpoint': '/private/queue', | ||
'controller': 'remote-product-manager', | ||
'method': '', | ||
'httpMethod': 'PUT' | ||
}, | ||
remove: { | ||
'endpoint': '/private/queue', | ||
'controller': 'remote-product-manager', | ||
'method': '', | ||
'httpMethod': 'DELETE' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'remote-product-manager' | ||
}, | ||
types: { | ||
'endpoint': '/channel', | ||
'controller': 'remote-product-manager', | ||
'method': 'types/', | ||
'httpMethod': 'GET' | ||
}, | ||
scaffolding: { | ||
'endpoint': '/channel', | ||
'controller': 'remote-product-manager', | ||
'method': 'scaffolding/:type/', | ||
'httpMethod': 'GET' | ||
} | ||
}, | ||
Status: { | ||
validations: true, | ||
lazy: true, | ||
channel: '/channel/status', | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'status', | ||
'method': '', | ||
'httpMethod': 'GET' | ||
}, | ||
create: { | ||
'endpoint': '/private/queue', | ||
'controller': 'status', | ||
'method': '', | ||
'httpMethod': 'POST' | ||
}, | ||
update: { | ||
'endpoint': '/private/queue', | ||
'controller': 'status', | ||
'method': '', | ||
'httpMethod': 'PUT' | ||
}, | ||
remove: { | ||
'endpoint': '/private/queue', | ||
'controller': 'status', | ||
'method': '', | ||
'httpMethod': 'DELETE' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'status' | ||
} | ||
}, | ||
RemoteProducts: { | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products/remote' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'products/remote' | ||
} | ||
}, | ||
ProductsStats: { | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'products/stats' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'products/stats' | ||
} | ||
}, | ||
ActiveSprints: { | ||
all: { | ||
'endpoint': '/private/queue', | ||
'controller': 'sprints/active' | ||
}, | ||
listen: { | ||
'endpoint': '/channel', | ||
'controller': 'sprints/active' | ||
} | ||
} | ||
}; |
Oops, something went wrong.