94 Commits

Author SHA1 Message Date
William DURAND
87328e27f5 Merge pull request #206 from dothiv/master
Show authorized roles in key icon tooltip
2013-11-14 11:17:06 +01:00
William Durand
7ac9c1c1b6 Merge pull request #251 from Peekmo/patch-1
Showing default values in sandbox
2013-11-14 01:50:29 -08:00
William Durand
8e41122ca7 Merge pull request #268 from konradpodgorski/feature/optionalRequirementsFields
Optional requirements fields: requirement, dataType and description
2013-11-14 01:41:14 -08:00
Adrien SAMSON
f71ba12d48 Add support for host in sandbox 2013-11-13 17:04:49 +01:00
Konrad Podgórski
4a831c3a20 Requirements fields: requirement, dataType and description can be optional 2013-10-30 16:38:32 +01:00
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
Axel Anceau
ebbbebfab6 Showing default values in sandbox
When a parameter "default" is set for a filter, or a parameter, the field will be fill with this value.
2013-10-03 14:17:48 +02:00
Kevin Saliou
23bc2b6f47 make api method headers anchor links so a speicif method can be refered to through its unique id 2013-09-06 13:42:19 +02:00
Vincent CHALAMON
a1517543e8 Enable PHPDoc @link feature 2013-08-16 19:18:05 +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
475ecf349b Speed up toggling 2013-08-07 12:56:32 +02:00
jsampedro
7f2cff2ac5 Adds custom header Authentication method 2013-07-19 10:05:57 +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
Nils Wisiol
f764773c89 authenticationRoles can be set to appear in the tooltip of the key icon for API calls that require authentication. 2013-06-24 14:27:22 +02:00
François Terrier
9236e9471d using a simpler version 2013-06-20 15:05:02 +02:00
François Terrier
b4bb454518 html encode the url when it is written to the page 2013-06-20 14:29:58 +02:00
William Durand
01044bb7ac Merge pull request #198 from jhallbachner/json
Add BodyFormat Selector and Support Json-Encoded Api Requests In Sandbox
2013-06-18 06:46:45 -07:00
Josh Hall-Bachner
c5beab777f Fixed parameter encoding for GET requests. 2013-06-14 16:15:43 -07:00
Lukas Kahwe Smith
bcecc03139 add missing link to the api doc overview 2013-06-13 12:05:01 +02:00
Josh Hall-Bachner
6ba548e21e Removed stray console.log 2013-06-05 19:20:12 -07:00
Josh Hall-Bachner
c237d65bad Added a helper method to enable deep encoding of nested parameters when encoding requests into JSON. 2013-06-05 18:51:01 -07:00
Josh Hall-Bachner
a9f0613cee Added a configuration parameter to determine the default body format. 2013-06-04 15:30:07 -07:00
Josh Hall-Bachner
705e01625e Added a method to send JSON-encoded data. 2013-06-03 19:11:42 -07:00
Pierre-Yves LEBECQ
13efea8975 Added support for the jms version annotations in formatters 2013-05-12 14:54:01 +02:00
marapper
fd860b43cd Icons as data URI 2013-05-07 22:52:18 +04:00
William Durand
1fac0e0cd3 Default MOTD should be empty 2013-04-12 00:03:47 +03:00
Benjamin Laugueux
5cc7cf212d Added support for host parameter 2013-04-11 22:03:40 +02:00
Benjamin Laugueux
0b7e734594 Added http basic authentication and custom api endpoint.
Fixed test
2013-04-11 13:57:31 +02:00
Jordi Boggiano
8af10934fe Merge pull request #169 from gordalina/fix-response-headers
Reponse headers are inserted into the DOM as HTML instead of Text
2013-04-09 00:20:24 -07:00
Samuel Gordalina
042b7a203c Use text() instead of html() when inserting headers in the DOM 2013-04-08 21:19:24 +01:00
Patryk Szlagowski
e92ad37cc2 motd style 2013-04-08 12:20:43 +02:00
Patryk Szlagowski
0eb538083a motd configuration 2013-04-08 11:44:43 +02:00
Patryk Kala
3b6e9da91a Ability to mark function as deprecated 2013-03-31 20:35:46 +02:00
Florent DUBOST
53b2537aef Add cache annotation extractor 2013-03-26 11:49:12 +01:00
Daniel Ribeiro
32e80af4dc Fixed condition to display resource url (fixes #146)
Signed-off-by: Daniel Ribeiro <drgomesp@gmail.com>
2013-03-20 10:02:20 -03:00
William DURAND
2fd3f33ad8 Fix 8c9b8331d066269d48ca374280937be264767ee6
* tests
* CS
2013-03-17 16:40:39 +01:00
William DURAND
8c9b8331d0 Merge pull request #138 from drgomesp/section-grouping
Section grouping
2013-03-17 16:13:56 +01:00
William DURAND
026fcc4761 Merge pull request #117 from gregholland/master
Add a config option for a default Accept header
2013-03-16 18:53:19 +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
abac2a03df Use proper base url by default instead of hardcoded app_dev controller 2013-03-01 21:24:54 +01:00
drgomesp
381476a2eb Changed html structure and css for sections 2013-02-25 17:27:09 -03:00
drgomesp
5d9accfdb5 #138 Fixed section grouping issue (wrong loop level) 2013-02-21 15:56:10 -03:00
drgomesp
fe96e262ec #138 Changed template to handle the section grouping correctly 2013-02-21 15:47:20 -03:00
Toni Van de Voorde
e0fb5c3afe Support multiple descriptions for a Status Code 2013-02-18 21:07:59 +01:00
Greg Holland
62b30fdb87 Fix spacing & indentation 2013-01-08 16:38:52 -08:00
fvilpoix
066da73b05 change icon for authentication parameter 2013-01-03 09:52:49 +01:00
fvilpoix
0aa1619c5f adding 'authentication' attribute 2012-12-26 12:23:28 +01:00
Greg Holland
fef40329a4 Add a config option for a default sandbox accept header 2012-12-11 17:59:03 -08: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
William DURAND
2f62db82a9 'type' becomes 'dataType' for consistency purpose 2012-11-17 17:41:12 +01:00