Commit Graph

100 Commits

Author SHA1 Message Date
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
shalvah
7bc9339f20 urlParam: update tests 2019-10-06 18:33:54 +01:00
shalvah
20dbba94f5 Add better support for arrays and objects in bodyparameters 2019-10-06 17:48:02 +01:00
shalvah
18938eb407 Set status code for transformer response from tag if present 2019-09-07 16:32:59 +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
Nicholas Catanchin
35a7ee8f6a #543 Add test for https url, fixture 2019-09-05 04:25:06 +10:00
shalvah
7ae97a0081 Clean up 2019-09-02 21:56:00 +01: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
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
Marcel Pociot
77ed9943f8 Apply fixes from StyleCI 2019-08-31 10:43:25 +00:00
shalvah
5647eda35e Parse @group tag on method properly - fixes #564, #561 2019-08-31 11:43:08 +01: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
Marcel Pociot
69121bb200 Apply fixes from StyleCI 2019-08-25 20:42:15 +00: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
Daniel Alm
6bc4b53f8c Add support for query parameters in the bash template and ensure that all query parameters are URL-encoded. 2019-07-29 11:33:01 +02:00
Daniel Alm
573e9efb63 Include query parameters and headers in the generated Postman collection. (#537)
* Include query parameters in the generated Postman collection.

* Style fixes

* Also include headers in the Postman collection.

* Also include JSON content type headers for good measure.

* Update the tests.

* Add a test to validate the body parameters in a Postman collection.

* Remove the "Content-Type" header again, as we are actually sending content as form data.

* Add a query test and make the tests more deterministic.

* PR fixes.
2019-07-16 10:42:46 +01:00
shalvah
c0492eeae1 Fix tests 2019-07-11 20:40:11 +01:00
Marcel Pociot
9be9cd2ecb Apply fixes from StyleCI 2019-06-23 20:25:02 +00:00
shalvah
b164263158 Add tests on output, config and bindings 2019-06-23 21:06:36 +01:00
shalvah
793f15ace8 Fix tests 2019-05-02 21:30:54 +01:00
shalvah
cc5c7f6a7b Use bound URL in doc examples (closes #478) 2019-04-22 22:26:11 +01:00
yusuke nakazawa
cf5f422051 test: add withMultipleFormRequestParameters 2019-03-11 15:56:45 +09:00
Marcel Pociot
e259d779ae Apply fixes from StyleCI 2019-02-27 20:46:58 +00:00
Michael Wallner
6de096a161 code style 2019-02-16 01:34:35 +01:00
Michael Wallner
1265719bf4 fallback to method docblock if FormRequest subclass has no docblock 2019-02-16 01:10:41 +01:00
Michael Wallner
84e425d964 allow bodyParams to be noted in a FormRequest subclass 2019-02-16 00:59:46 +01:00
Shalvah
e98c7f4df0 Merge pull request #443 from ewerkema/name
Specify more Postman parameters
2019-01-25 19:45:03 +01:00
Ezra Obiwale
59f6ca9478 Added array example for dot-noted parameters 2019-01-08 09:46:25 +01:00
Ezra Obiwale
bc1e4db94c Added url query array parameter example 2019-01-08 09:42:34 +01:00
Ezra Obiwale
77b7083d98 Added tests 2019-01-07 00:46:36 +01:00
Enrico Werkema
8ac4b33b21 Fix custom app url in Postman collection
The Postman collection currently doesn't use the APP_URL environment variable. This can be forced in the URL Laravel Facade
2019-01-04 15:38:10 +01:00
Enrico Werkema
14afe077e9 Specify more Postman parameters
Name and description of Postman collection can be specified
2019-01-04 15:14:30 +01:00
franko4don
a6333b0d3a added tests for modifying response file by adding a json beside file storage path in responseFile tag 2018-12-16 22:09:44 +01:00
Shalvah
68507895e0 Merge branch 'master' into feat/natsort 2018-12-12 21:48:35 +01:00
An Phan
b73114f47a Fix CS 2018-12-11 18:09:50 +01:00
An Phan
b530057e68 Support partial resource controller (fixes #426) 2018-12-11 18:04:25 +01:00
An Phan
817f882ed8 Sort the groups naturally (fixes #423) 2018-12-11 17:48:51 +01:00
Michał Golon
c14b9ab538 Update tests 2018-11-30 20:36:57 +01:00
Shalvah
3ffd1cc4fa Merge pull request #411 from Potelo/javascript-fetch
Use javascript fetch instead of jquery
2018-11-28 21:09:03 +01:00
Gabriel Peixoto
12da3ca253 Use javascript fetch instead of jquery. resolve #330 2018-11-27 20:10:08 -03:00
Gabriel Peixoto
faf1182535 Fix test 2018-11-27 18:51:33 -03:00
Gabriel Peixoto
1e7b7cc853 Revert to use storage_path 2018-11-27 18:34:37 -03:00
Gabriel Peixoto
68fb2ee96a Use Storage Facade to load the file, using the default driver (config/filesystems.php) 2018-11-27 17:17:19 -03:00
Gabriel Peixoto
b0744fbc44 Test: get response from stored json file 2018-11-26 21:35:13 -03:00
shalvah
c7e49529af Add support for specifying example parameters (closes #391) 2018-10-26 09:38:04 +01:00
shalvah
8628be4c12 Fix issues with rendering example requests 2018-10-26 08:47:17 +01:00