You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+145-2Lines changed: 145 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Bundle it:
17
17
18
18
Add [Twitter bootstrap](http://twitter.github.com/bootstrap) and [Google code pretifyer](http://google-code-prettify.googlecode.com/svn/trunk/README.html) to you CSS manifest file
19
19
20
-
```css
20
+
```js
21
21
//= require bootstrap
22
22
//= require prettify
23
23
```
@@ -32,12 +32,155 @@ Here's what you Javascript manifest file should look like
32
32
//= require api_docs
33
33
```
34
34
35
-
Add your API documentation files to the /doc folder and in your view do:
35
+
Add your API documentation files to the /doc/api folder and in your view do:
36
36
37
37
```ruby
38
38
= render_api_docs %w{login users overview}
39
39
```
40
40
41
+
## The API documentaion files
42
+
43
+
```yaml
44
+
'List':
45
+
url: '/users'
46
+
method: GET
47
+
description: |
48
+
Returns a list of users ordered by relationship:
49
+
is_friends_with
50
+
follows
51
+
params:
52
+
api_key:
53
+
keyword: "a string of one or more words used to filter the users by first_name, last_name, username and email (optional)"
0 commit comments