Konrad Podgórski
74d30d9e39
Option to set requirements and parameters directly from ApiDoc annotation
...
Sometimes required parameters are not used through routing but still they are mandatory. I wanted to have API with
resource.json?foo=bar&something=else
format, that was possible through QueryParam annotation or requirements in routing BUT!
There was no way to set dataType or description
This PR solves problem for me.
Side note: if you want to declare e.g. _format requirement through Annotation or any other param that is used in url ({foo} format) then it won't work. Because Bundle still overrides requirements and parameters after the constuctor in ApiDoc is called. This might be solved in separate PR by adding check if given requirements or parameters was already defined.
2013-10-15 15:28:54 +02:00
Florent DUBOST
8f6ac59c97
Adding test for named resource
2013-10-11 16:18:02 +02:00
William Durand
96b40b8a8c
Merge pull request #210 from jhallbachner/validation2
...
Added Support for Validation Component (refactored)
2013-08-13 03:28:09 -07:00
Jordi Boggiano
2a87244869
Fix build
2013-07-05 00:27:42 +02:00
Josh Hall-Bachner
0913157399
Added the initial structure for a Symfony Validation handler that is injected into the parsers.
2013-06-30 23:46:41 -07:00
William Durand
0eb7ec27ec
Merge pull request #152 from adriensamson/issue-147
...
Fix Illegal offset warning in FormTypeParser (closes #147 )
2013-06-18 06:44:06 -07:00
Pierre-Yves LEBECQ
13efea8975
Added support for the jms version annotations in formatters
2013-05-12 14:54:01 +02:00
fieg
06271f824a
added support for JMS Serializer GroupsExclusionStrategy
2013-05-12 14:29:36 +02:00
Ismael Ambrosi
0c416c1788
Fixed tests for deprecated indicator
2013-05-09 23:59:03 -03:00
marapper
80b5162c83
Add @QueryParam default
support
2013-05-06 10:04:13 +02:00
Mario Franco
1dc3380e8e
Refactor tests
2013-05-03 14:37:52 +01:00
Mario Franco
93e83e610c
Added test case
2013-04-16 19:40:29 +01:00
Benjamin Laugueux
5cc7cf212d
Added support for host parameter
2013-04-11 22:03:40 +02:00
Florent DUBOST
772184cfa1
Add some tests for the cache annotation
2013-03-27 16:20:42 +01:00
Pierre-Yves LEBECQ
67db76990e
[Formatter] Fixed MarkdownFormatter.
2013-03-21 14:36:52 +01:00
Adrien SAMSON
eef1b7db0a
Add tests for FormTypeParser
2013-03-19 15:43:30 +01:00
William DURAND
3fe7e15f58
Merge pull request #121 from relaxnow/feature/issue-109-pr2
...
Issue-109: Fixed infinite recursion on JMS Types that reference themselves or their parents
2013-03-16 18:50:45 +01:00
William DURAND
43b8f89845
Merge pull request #123 from fvilpoix/authentication_attribute
...
adding 'authentication' attribute
2013-03-16 18:22:28 +01:00
Jordi Boggiano
efb4bb29dd
Merge remote-tracking branch 'stewe/jms_serlializer_1_0_upgrade'
2013-02-15 13:16:59 +01:00
Jordi Boggiano
e3a8fc6df0
Update for latest FOSRestBundle
2013-02-15 11:37:02 +01:00
Stefano Sala
07bb37ac76
Finish upgrade to jms serializer 1.0
...
Updated deprecated MinLength assertion to Length
Updated array of object parsing
Handled deprecated calls because of using
AbstractType (not sure if it is the best way, though)
2013-02-11 14:42:17 +01:00
fvilpoix
0aa1619c5f
adding 'authentication' attribute
2012-12-26 12:23:28 +01:00
Boy Baukema
fe76b6df67
Fixed infinite recursion on JMS Types that reference themselves or their parents.
2012-12-20 10:12:50 +01:00
Baldur Rensch
ef5cbd9b73
Added padlock icon for secure routes
...
This fixes #115
- Added an https property to the annotation
- Added glyphicon padlock icon
- Updated Templates
- Updated Unit tests
2012-12-10 10:21:04 -08:00
Lukas Kahwe Smith
befeeb3e3f
JMSSerializerBundle 1.0 compatibility
2012-12-04 10:27:33 +01:00
William DURAND
923043cb2a
Improve doc, update README, "return" param becomes "output" to be more
...
consistent
2012-11-19 18:21:12 +01:00
FlorianLB
6b66edbcda
RequestParam annotation create a parameter item
2012-11-14 23:59:06 +01:00
Evan Villemez
8c3466f6ed
abstracted docblock comment extraction, implemented in JmsMetadataParser to get parameter descriptions
2012-08-31 14:57:42 -04:00
Evan Villemez
0af506f151
resolved conflicts
2012-08-28 14:50:40 -04:00
Evan Villemez
504d5125f9
finished up, tests passing, fixed cs
2012-08-27 13:25:03 -04:00
Evan Villemez
2902ac3cbb
working on apidoc return property
2012-08-27 12:56:19 -04:00
Evan Villemez
01fce41a0e
more accurate reporting of arrays and their types
2012-08-27 12:23:23 -04:00
Evan Villemez
9b94ae4b2c
fixed cs
2012-08-27 12:23:23 -04:00
Evan Villemez
185d0e588b
updated JMSMetadataParser to support nested models
2012-08-27 12:23:22 -04:00
William Durand
594c2faf26
Merge pull request #61 from evillemez/jms_parser
...
Implemented JmsMetadataParser
2012-08-23 06:19:33 -07:00
Alexander
911aaae0fd
Remove .{_format} from routes used for resource grouping
2012-08-10 11:38:01 +02:00
Evan Villemez
68767f6c72
fixed cs
2012-08-07 21:57:36 -04:00
Evan Villemez
b71bc8bf3f
started on implementing JmsMetadataParser and tests
2012-08-07 17:50:58 -04:00
Evan Villemez
89f2044581
fixed compiler pass, updated README
2012-07-24 14:39:43 -04:00
Evan Villemez
06e3a2256b
added a ParserInterface, refactored how Parsers are registered in the ApiDocExtractor, changed formType to inputClass in ApiDocExtractor
2012-07-23 12:54:56 -04:00
William DURAND
64988d00c1
Remove hard dependency with KnpMarkdownBundle
2012-07-20 17:07:20 +02:00
William DURAND
cca97cf6af
Refactoring
...
Move logic to extract data in the Extractor
Remove logic in the AbstractFormatter
Use ApiDoc class as data container
Update tests
Add test to prove the bug with FOSRestBundle annotations (\\d+ instead of \d+)
2012-07-20 01:32:16 +02:00
William DURAND
e2e647bb03
Merge branch '1.0.x'
2012-07-13 15:32:51 +02:00
William DURAND
4b1990b688
Fix stuff
2012-07-13 15:31:53 +02:00
William DURAND
f9012ba76b
Update composer, fix tests
2012-07-05 09:58:25 +02:00
William DURAND
519b356374
Merge branch '1.0.x'
...
Conflicts:
Form/Extension/DescriptionFormTypeExtension.php
Parser/FormTypeParser.php
Tests/Fixtures/Form/TestType.php
2012-06-27 10:15:57 +02:00
Christophe Coevoet
5b70c775c0
Added a test for types defined as services
2012-06-21 00:12:21 +02:00
Christophe Coevoet
32b40deda8
Fixed the testsuite
2012-06-20 23:19:34 +02:00
Victor Berchet
383529a607
fix indentation
2012-05-28 10:56:37 +03:00
Victor Berchet
fd00844dc6
[Form] Update to sf2.1
2012-05-27 22:56:01 +02:00