1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00

Updated platform API

This commit is contained in:
eldadfux 2019-08-18 18:22:03 +03:00
parent d6c5b0beb3
commit 23d0932acf
2 changed files with 8 additions and 8 deletions

View file

@ -20,9 +20,9 @@ ENV _APP_STATSD_HOST telegraf
ENV _APP_STATSD_PORT 8125
ENV _APP_SMTP_HOST smtp
ENV _APP_SMTP_PORT 25
ENV _APP_SMTP_SECURE ''
ENV _APP_SMTP_USERNAME ''
ENV _APP_SMTP_PASSWORD ''
#ENV _APP_SMTP_SECURE ''
#ENV _APP_SMTP_USERNAME ''
#ENV _APP_SMTP_PASSWORD ''
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

View file

@ -1084,8 +1084,8 @@ $utopia->post('/v1/projects/:projectId/platforms')
->param('projectId', null, function () {return new UID();}, 'Project unique ID.')
->param('type', null, function () {return new WhiteList(['web', 'ios', 'android', 'unity']);}, 'Platform name')
->param('name', null, function () {return new Text(256);}, 'Platform name')
->param('key', null, function () {return new Text(256);}, 'Package name for android or bundle ID for iOS', true)
->param('store', null, function () {return new Text(256);}, 'App store or Google Play store ID', true)
->param('key', '', function () {return new Text(256);}, 'Package name for android or bundle ID for iOS', true)
->param('store', '', function () {return new Text(256);}, 'App store or Google Play store ID', true)
->param('url', '', function() {return new URL();}, 'Platform client URL', true)
->action(
function($projectId, $type, $name, $key, $store, $url) use ($response, $consoleDB)
@ -1138,9 +1138,9 @@ $utopia->put('/v1/projects/:projectId/platforms/:platformId')
->param('projectId', null, function () {return new UID();}, 'Project unique ID.')
->param('platformId', null, function () {return new UID();}, 'Platform unique ID.')
->param('name', null, function () {return new Text(256);}, 'Platform name')
->param('key', null, function () {return new Text(256);}, 'Package name for android or bundle ID for iOS', true)
->param('store', null, function () {return new Text(256);}, 'App store or Google Play store ID', true)
->param('url', [], function () {return new URL();}, 'Platform client URL', true)
->param('key', '', function () {return new Text(256);}, 'Package name for android or bundle ID for iOS', true)
->param('store', '', function () {return new Text(256);}, 'App store or Google Play store ID', true)
->param('url', '', function () {return new URL();}, 'Platform client URL', true)
->action(
function($projectId, $platformId, $name, $key, $store, $url) use ($response, $consoleDB)
{