Oscar Parra
531724e77e
Fix Body As Array
...
Currently, if an array of objects is sent in the body, when the example is created the result will be saved in a '*' key because only '. *' is replaced by '.0', if the bodyParam name starts with '*.' This should indicate that the body itself is an array of objects but not an object with a key '*',
replacement order is important
2020-03-11 08:08:02 -05:00
Marcel Pociot
c089591a74
Apply fixes from StyleCI
2020-03-07 17:13:23 +00:00
Andrey Helldar
266bac6727
Fixed codestyle
2020-01-13 12:48:45 +03:00
Andrey Helldar
6146b5d3ca
Added support for PHP 7.4 and updated dependencies to the latest versions
...
Also see 015ac15d7f
2020-01-13 12:27:33 +03:00
Zekeriya Durmuş
8d0cd9c33b
Add UnitTests
2019-11-08 09:52:54 +03:00
shalvah
4bf2ede494
Rename reqyestHeaders stage to headers for consistency and change order
2019-11-04 22:42:47 +01:00
Shalvah
67a2098949
Merge pull request #624 from robbieaverill/feature/request-header-strategy
...
Add request header strategies to allow extensibility
2019-11-04 22:20:16 +01:00
Marcel Pociot
aa002007bf
Apply fixes from StyleCI
2019-11-02 07:59:29 +00:00
Robbie Averill
53a99ac6ed
Add request header strategies to allow extensibility
...
The default strategy behaves the same way as the original behaviour, which
is to return the headers from the route rules.
Making this into a Strategy means that projects may add their own strategies
to control which headers are shown in various circumstances.
This commit also includes some tidying up of the example request templates
for cases when no headers are required for the request.
2019-10-22 16:01:39 -07:00
Robbie Averill
f27b3708fe
Transformer annotations are now given priority over response annotation strategies
2019-10-22 14:12:45 -07:00
shalvah
d5fb1c0bcd
Reorganize code
2019-10-13 19:34:33 +01:00
shalvah
b9d62968af
Fix style issues
2019-10-10 22:56:29 +01:00
shalvah
0135cca67d
Move groupName, groupDescription, title, description, and authenticated into parsed route metadata
2019-10-10 22:49:03 +01:00
shalvah
d23710171d
Made ResponseCalls strategy only execute if no successful responses exist.
2019-10-10 22:36:50 +01:00
shalvah
da861ff464
Rename key response to responses in parsedRoute
2019-10-10 00:43:52 +01:00
shalvah
048f281fe1
Make response stage additive
2019-10-10 00:37:35 +01:00
shalvah
4c0a753a62
Fix tests
2019-10-10 00:01:52 +01:00
shalvah
6d1834324b
Remove apply.response_calls.headers in favour of apply.headers
2019-10-09 23:45:19 +01:00
Marcel Pociot
7d94de8b16
Apply fixes from StyleCI
2019-10-08 21:16:47 +00:00
shalvah
f0f2aea049
Update tests
2019-10-08 22:13:18 +01:00
Marcel Pociot
9d99fa6b5e
Apply fixes from StyleCI
2019-10-06 17:34:27 +00:00
shalvah
7bc9339f20
urlParam: update tests
2019-10-06 18:33:54 +01:00
shalvah
c7740eae2b
Upgrade dependencies
2019-09-07 17:23:22 +01:00
shalvah
18938eb407
Set status code for transformer response from tag if present
2019-09-07 16:32:59 +01:00
shalvah
ffb3563bfd
Update docs, refactor API
2019-09-05 00:36:48 +01:00
shalvah
4572ffef35
Merge remote-tracking branch 'origin/master' into plugin-arch
...
# Conflicts:
# src/Tools/Generator.php
# src/Tools/Traits/ParamHelpers.php
2019-09-04 23:36:41 +01:00
Sang Nguyen
7ab3127fb5
Add support Laravel 6.0 & remove deprecated functions
2019-09-04 15:04:17 +07:00
shalvah
a5b1fb6a35
Merge remote-tracking branch 'origin/plugin-arch' into plugin-arch
...
# Conflicts:
# src/Tools/Generator.php
2019-09-02 21:51:34 +01:00
shalvah
c3cc56177f
Improve plugin API
2019-09-02 21:46:56 +01:00
Marcel Pociot
1da32f9cba
Apply fixes from StyleCI
2019-09-02 16:20:32 +00:00
shalvah
d209dff999
Move Responses to strategies
2019-09-02 17:05:35 +01:00
shalvah
29df46880c
Move Query and Body Params to strategies
...
TODO: move the "clean" functionality
2019-09-02 00:24:56 +01:00
Shalvah
9d366efec8
Merge pull request #552 from MarnuLombard/feature/examples/exclude_from_examples
...
Allows users to exclude a parameter from having an example
2019-08-31 12:15:55 +01:00
Shalvah
dd840854b1
Update GeneratorTestCase.php
2019-08-31 12:13:39 +01:00
shalvah
5647eda35e
Parse @group tag on method properly - fixes #564 , #561
2019-08-31 11:43:08 +01:00
Marnu Lombard
1f06c37805
Style-ci fixes
2019-08-26 11:32:37 +02:00
Marnu Lombard
910b06f085
Test that all parasm exist in the ...Parameters of a parsed route
...
- The `...Parameters` contain all values
- The `No-example` values are excluded from `cleaned...Parameters`
2019-08-26 11:30:53 +02:00
Marnu Lombard
54afbe20b3
Test using the the cleaned...Parameters for No-example tests
...
- The `...Parameters` contain all values
- The `No-example` values are excluded from `cleaned...Parameters`
2019-08-26 11:26:50 +02:00
Marnu Lombard
725aff30e8
Style-ci fixes
2019-08-26 09:44:11 +02:00
Marnu Lombard
e31dfdf1f1
Add tests for excluding query and body params
...
- Test that a valid result is returned
- Test that all query params are ignored
- Test for non-existence of specific body param
2019-08-26 09:41:04 +02:00
shalvah
abb7ef5b60
Separate endpoint group anem frmo group description and key by group name. Fixes #535
2019-08-25 21:23:11 +01:00
shalvah
b164263158
Add tests on output, config and bindings
2019-06-23 21:06:36 +01:00
Shalvah
34171313d9
Merge pull request #523 from mpociot/update-config
...
Switch to `base_url` config var for base URL in docs and collection
2019-06-08 11:39:45 +01:00
Marcel Pociot
4d0788e0a0
Apply fixes from StyleCI
2019-06-08 10:28:37 +00:00
Zolotov Alexander
66d8fa8c8c
tests fix
2019-05-28 10:34:42 +10:00
Zolotov Alexander
62185f6295
tests fix
2019-05-28 10:17:26 +10:00
Zolotov Alexander
10e5f45829
tests fix
2019-05-28 09:59:37 +10:00
Zolotov Alexander
4d4044d1ea
tests fix
2019-05-28 09:47:55 +10:00
Zolotov Alexander
0b1d43cdbf
add tests
2019-05-28 09:46:50 +10:00
shalvah
3aa1becf03
Inject generator configuration rather than access global state.
2019-05-24 23:06:17 +01:00