33 Commits

Author SHA1 Message Date
Loick Piera
b198e240ce Fix null host value in layout.html.twig 2014-02-06 15:12:26 +01:00
Marc J. Schmidt
d7ef725613 Suppressed the auto-scrolling on click and fixed initial-jump issues.
For the initial auto-scrolling to the selected route in location.hash:
 - Fixed typo in the calculation of the offset-top position.
 - Fixed requesting the selected route that has special chars (e.g. "/content/{page}")
 - Fixed for refreshes with F5. It needs a setTimeout workaround to get that working in Webkit.
    It needs also in Firefox a other dom element to fire scrollTop at.

Fixed also some old .delegation calls, which are deprecated in jQuery 1.7.

Why suppressing auto-scrolling on click:
When clicking through all methods it's very annoying when the browser always jumps to the clicked method,
especially when you go through all methods from bottom to up. This jump is unexpected and disturbing.
2013-12-10 03:35:06 +01: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
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
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
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
0eb538083a motd configuration 2013-04-08 11:44:43 +02:00
Jordi Boggiano
abac2a03df Use proper base url by default instead of hardcoded app_dev controller 2013-03-01 21:24:54 +01:00
Jordi Boggiano
71f9ec138a Work around _method requirements allowing multiple methods, fixes #87 2012-11-07 22:34:08 +01:00
Vyacheslav Slinko
52df5ebf47 Allow to configure default request format 2012-10-17 15:27:20 +04:00
Vyacheslav Slinko
3540bcfcd8 Make response format more configurable 2012-10-17 15:15:35 +04:00
Vyacheslav Slinko
8e03ef99fa Make JSON declaration method configurable 2012-10-16 23:41:16 +04:00
Alexander
fc5b8c4e63 Add optional api_key parameter to sandbox 2012-08-23 16:53:08 +02:00
William DURAND
bee518f92e Allow to disable the sandbox, refactor the configuration. Fix #37 2012-07-18 13:21:31 +02:00
William DURAND
208d25f825 Dump all assets in order to correctly render the generated HTML page, even in offline mode. Fix #42 2012-07-18 12:56:11 +02:00
Samuel Gordalina
557e4523de Add content textarea to sandbox
Problem: Its not possible to POST content in the sandbox.
With this change it becomes possible to, e.g.: POST JSON data
to the api.

Note: The content will take precedence over parameters if set.
2012-07-05 19:44:35 +02:00
Samuel Gordalina
ba8d1ae8fc Corrected indentation 2012-07-04 23:42:40 +02:00
Samuel Gordalina
5b78bee151 Moved response headers above response body with a click to expand/shrink 2012-07-04 23:42:38 +02:00
William DURAND
d5ab75fd9e Added button to get raw response in the sandbox 2012-06-28 10:40:33 +02:00
kphoen
e6438d657f Add: sandbox, to easily try API methods 2012-06-27 09:45:06 +02:00
William DURAND
4a72fffbab Improved user experience 2012-04-13 12:23:46 +02:00
William DURAND
a51d25b94f Used Twig instead of plain PHP in the HtmlFormatter. Fixes #1 2012-04-13 11:25:53 +02:00