Template:RESTfulExample
From ePrize Developers Wiki
(Difference between revisions)
(→Example: {{{title}}}) |
|||
(17 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
- | == {{{title}}} == | + | == Example: {{{title}}} == |
{{ #if: {{{summary|}}} | | {{ #if: {{{summary|}}} | | ||
=== Summary === | === Summary === | ||
- | |||
{{{summary}}} | {{{summary}}} | ||
| }} | | }} | ||
Line 9: | Line 8: | ||
{{ #if: {{{request|}}} | | {{ #if: {{{request|}}} | | ||
=== Request === | === Request === | ||
- | |||
{{ #expandafter:pre|| | {{ #expandafter:pre|| | ||
{{{request}}} | {{{request}}} | ||
Line 17: | Line 15: | ||
{{ #if: {{{response|}}} | | {{ #if: {{{response|}}} | | ||
=== Response === | === Response === | ||
- | + | {{ #if: {{{responsecode|}}} | | |
HTTP Status Code: {{{responsecode}}} | HTTP Status Code: {{{responsecode}}} | ||
+ | | }} | ||
+ | |||
+ | {{ #if: {{{responseloc|}}} | | ||
+ | HTTP Redirect Location: {{{responseloc}}} | ||
+ | | }} | ||
{{ #expandafter:pre|| | {{ #expandafter:pre|| | ||
- | {{{response}}} | + | {{{response}}} |
}} | }} | ||
+ | | }} | ||
+ | |||
+ | {{ #if: {{{extranotes|}}} | | ||
+ | ==== Notes ==== | ||
+ | {{{extranotes}}} | ||
+ | | }} |