-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.xml
93 lines (78 loc) · 2.97 KB
/
config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<api preview="true">
<document title="Sample API" description="Providing sample APIs to the world!"/>
<sections>
<section title="Hello World API" description="A description of the Hello World API">
<request url="/hello/world" verbs="GET,POST,PUT,DELETE,Any verb you like!">
<description>
<![CDATA[An API's description <strong>can</strong> contain <u>HTML</u> tags<br/>
The descriptions can also run multi-line]]>
</description>
</request>
<request url="/hello/components" verbs="GET">
<description>
<![CDATA[Your API can contain some different <strong>components</strong>]]>
</description>
<code title="PHP Example (without line numbers)" showLineNumbers="false">
<![CDATA[<?php
class CodeElement extends BaseElement
{
private $title;
private $code;
private $showLineNumbers;
public function __construct()
{
}
?>
]]>
</code>
<code title="ActionScript 3.0 Example (with line numbers)" showLineNumbers="true">
<![CDATA[package
{
import mx.collections.ArrayList;
import mx.collections.IList;
import mx.core.ClassFactory;
import mx.events.FlexEvent;
import spark.components.CheckBox;
import spark.components.DataGroup;
import spark.events.RendererExistenceEvent;
public class CheckBoxGroup extends DataGroup
{
}
}
]]>
</code>
<alert type="warning" title="Did I grab your attention?">
<![CDATA[You can create alert boxes of four types:
<code>info, warning, success & error</code>]]>
</alert>
<alert type="success" title="See?">
<![CDATA[=)]]>
</alert>
<table title="We have tables, too" columns="Column 1,Column 2">
<row type="info">
<cell>You</cell>
<cell>can</cell>
</row>
<row type="error">
<cell>even</cell>
<cell>add</cell>
</row>
<row type="warning">
<cell>row-level</cell>
<cell>alert styles</cell>
</row>
<row type="success">
<cell>Nice, innit?</cell>
</row>
<row>
<cell>...or you can just</cell>
<cell>leave them vanilla</cell>
</row>
</table>
</request>
</section>
<section title="Infinity API" description="Add as many sections as you like!">
<request url="/infinity?to=beyond" verbs="GET"/>
</section>
</sections>
</api>