175 Commits

Author SHA1 Message Date
Soltész Balázs
e2c3d7ce94
Make filters always be passed as query string parameters in sandbox requests. 2017-04-28 12:36:27 +02:00
Invis1ble
97c6b1e857 Fixed placeholder translations #889 2016-07-29 09:20:35 +03:00
mellzamora
f5e38a283a Fix error:
Key "statusCodes" for array with keys "method, uri, description, documentation, filters, requirements, parsedResponseMap, https, authentication, authenticationRoles, deprecated, id" does not exist in NelmioApiDocBundle::method.html.twig at line 182.

Sample:

 /**
     * Retrieves the list of categories (paginated) based on criteria.
     *
     * @ApiDoc(
     *  resource=true,
     *  output={"class"="Sonata\DatagridBundle\Pager\PagerInterface", "groups"={"sonata_api_read"}}
     * )
     *
     *
     * @QueryParam(name="page", requirements="\d+", default="1", description="Page for category list pagination")
     * @QueryParam(name="count", requirements="\d+", default="10", description="Number of categories by page")
     * @QueryParam(name="enabled", requirements="0|1", nullable=true, strict=true, description="Enabled/Disabled categories filter")
     * @QueryParam(name="context", requirements="\S+", nullable=true, strict=true, description="Context of categories")
     *
     * @View(serializerGroups="sonata_api_read", serializerEnableMaxDepthChecks=true)
     *
     * @param ParamFetcherInterface $paramFetcher
     *
     * @return PagerInterface
     */
2016-06-16 22:44:56 +08:00
William Durand
9444172abc Merge pull request #857 from zanardigit/master
Add navigation index for resources
2016-06-13 10:01:12 +02:00
Piotr Plenik
12c067154c fix format wrapping 2016-06-02 10:33:39 +02:00
Francesco Abeni
df04b5c871 Add navigation index for resources 2016-05-24 13:13:39 +02:00
miholeus
e141ffd291 added headers support 2016-05-19 14:28:32 +03:00
William Durand
b494d8e1ab Merge pull request #821 from tcz/sandbox_output_improvements
Adding request body and curl command to sandbox
2016-05-11 17:32:04 +02:00
William Durand
9dfd984c68 Merge pull request #832 from ismailbaskin/vich-compat
Allow sending empty file data
2016-05-11 17:16:17 +02:00
William Durand
4660805291 Merge pull request #823 from ImmRanneft/master
Little template fixes for sandbox
2016-05-11 17:15:43 +02:00
William Durand
2d214fc934 Merge pull request #775 from DonPrus/master
Fix problem with cyrillic chars in docs
2016-04-21 17:38:04 +02:00
Tim Hovius
96cfab973c Added translation to description
The labels of a field are usually always translated. But this does not happen in the documentation.
2016-04-19 21:37:22 +02:00
İsmail BASKIN
246babf209 Allow sending empty file data 2016-04-08 15:26:31 +03:00
ImmortaL
df10a4769c Little template fixes for sandbox 2016-03-18 21:23:22 +03:00
tcz
aef6a89329 Adding request body and curl command to sandbox 2016-03-17 16:09:47 +01:00
William Durand
cec5108133 Merge pull request #781 from AlmogBaku/feature/textareaField
Add textarea type for sandbox
2016-02-24 17:50:13 +01:00
William Durand
364ef73680 Merge pull request #791 from Padam87/response-map
Use the response map in the html view
2016-02-24 17:49:33 +01:00
Adam Prager
7919b24971 Use the response map in the html view 2016-01-26 04:36:38 +01:00
AlmogBaku
3bc98723fe Add textarea type for sandbox 2016-01-08 20:34:15 +02:00
Richard
4744de98fb Added xhrFields: { withCredentials: true } to ajaxOptions to enable
browser authentication for cross origin API requests.
2016-01-06 10:00:21 +01:00
Сомов Игорь Андреевич
8aa5e479d1 JSON UNICODE 2015-12-28 17:07:20 +03:00
Jonathan Chan
8b7dfdd913
Let the js library set the proper Content-type header when sending files in sandbox - fixes #501 2015-10-27 17:29:36 +01:00
Toni Van de Voorde
d60da7a734 remove 1 empty line to force new tests on travis 2015-10-22 12:10:09 +02:00
Toni Van de Voorde
f57a8bf7ae revert fix "Added workaround for Firefox not sending LINK in uppercase what then" 2015-08-11 11:32:48 +02:00
staurand
a967fce6c7 Added pipe to escaped symbols of jQuery selector
Pipe symbol needs to be escaped in jQuery selector.
This symbol is added when multiple methods are allowed for a route.
e.g /api/doc#get|post--...
2015-06-17 11:48:31 +02:00
William Durand
a0c0398ca9 Merge pull request #540 from rodrigorigotti/master
Showing 'Documentation' tab makes no sense if the sandbox is disabled.
2015-05-16 12:59:29 +02:00
William Durand
c71fa155d5
Introduce the concept of 'views'
Rewrite #619
2015-05-16 12:17:59 +02:00
Pol
226e38851f Optimization on the regex 2015-04-14 17:10:09 +02:00
Pol
186d673517 Add the commas to the prettified JSON
I recently came across that when copying the prettified response there were no comma separating the elements. This solves this problem.
2015-04-14 17:01:01 +02:00
dtonder
01f4efc4e0 -fixed binding of on-click handler for json-toggler, - fixed css-class naming 2015-03-29 15:06:58 +02:00
dtonder
d73531aeb5 - added javascript for collapsing sections in json-response, - fixed usage of private service-alias (that will be removed by RemovePrivateAliases-compiler pass) 2015-03-29 14:37:06 +02:00
William Durand
6a9ca36bb4 Merge pull request #560 from wodka/patch-1
fix sandbox with host
2015-03-25 23:17:02 +01:00
Almog Baku
752b953a07 fixes: not attaching api_key to query if empty 2015-03-25 14:53:31 +02:00
William Durand
0a1cef77ad
cs 2015-03-06 11:19:08 +01:00
Michael Schramm
10d9172d26 fix sandbox with host
suggested change in https://github.com/nelmio/NelmioApiDocBundle/pull/353 is not working
2014-12-30 00:00:27 +01:00
Rodrigo Rigotti
fa4b8f3805 Showing 'Documentation' tab makes no sense if the sandbox is disabled. 2014-11-05 10:32:48 -02:00
Jeremy Perret
e7d3c803bb Display select to choose http method in sandbox 2014-10-26 12:28:50 +01:00
William Durand
6d50c200ba Merge pull request #498 from jonmchan/honorBodyFormat
Honor body format before uploading file type parameters
2014-10-08 11:36:12 +02:00
William Durand
5950acd73c Merge pull request #490 from ricardclau/store_api_key
Add support for LocalStorage
2014-10-08 11:32:56 +02:00
Jérémie Augustin
01fb243751 fix side effect introduce with list/expand buttons 2014-09-05 11:40:06 +02:00
Emmanuel Vella
2d87ad0fe1 Replace incorrect jQuery.size() method 2014-09-03 15:49:16 +02:00
Ricard Clau
08153a3071 support for localstorage 2014-08-28 23:02:05 +01:00
Jonathan Chan
493e6066b3 Honor body format before uploading file type parameters 2014-08-28 01:48:10 -04:00
Emmanuel Vella
f9d713f9b4 Add query parameters in sandbox request URL 2014-08-26 12:44:11 +02:00
thenetexperts
e1c7e8a5bd adding optional color codes for tags annotation 2014-08-25 11:27:49 +02:00
jaugustin
ae2c62fad1 add show/hide button and list/expand operations buttons on sections
add a new parameter default_sections_opened: false (default)
To start with sections opened or closed
2014-08-23 17:17:46 +02:00
William Durand
6952c4b32c Fix #486 2014-08-21 22:44:19 +02:00
Jeroen De Dauw
83fc7d08bc Only show request format dropdown when there are multiple formats 2014-08-21 04:43:44 +02:00
Markus Thielen
b6f7179b59 Impossible to access an attribute (\"custom_endpoint\") on a NULL variable
My setup obviously does not have a authentication property set. This change fixes the error.
2014-08-18 11:55:01 +02:00
Yosh de Vos
d53028098f Fixed endpoint is undefined in sandbox when custom_endpoint is disabled 2014-08-08 17:55:36 +02:00