modifying mock api for keywords test
This commit is contained in:
parent
db6c24de5e
commit
28b3072b52
1 changed files with 10 additions and 10 deletions
|
@ -113,8 +113,8 @@ App::get('/v1/mock/tests/bar')
|
||||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('required', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('default', '', new Numeric(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -131,8 +131,8 @@ App::post('/v1/mock/tests/bar')
|
||||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('required', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('default', '', new Numeric(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -149,8 +149,8 @@ App::patch('/v1/mock/tests/bar')
|
||||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('required', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('default', '', new Numeric(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -167,8 +167,8 @@ App::put('/v1/mock/tests/bar')
|
||||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('required', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('default', '', new Numeric(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
@ -185,8 +185,8 @@ App::delete('/v1/mock/tests/bar')
|
||||||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||||
->label('sdk.response.model', Response::MODEL_MOCK)
|
->label('sdk.response.model', Response::MODEL_MOCK)
|
||||||
->label('sdk.mock', true)
|
->label('sdk.mock', true)
|
||||||
->param('x', '', new Text(100), 'Sample string param')
|
->param('required', '', new Text(100), 'Sample string param')
|
||||||
->param('y', '', new Numeric(), 'Sample numeric param')
|
->param('default', '', new Numeric(), 'Sample numeric param')
|
||||||
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
->param('z', null, new ArrayList(new Text(256)), 'Sample array param')
|
||||||
->action(function ($x, $y, $z) {
|
->action(function ($x, $y, $z) {
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue