Skip to content

Commit 727fada

Browse files
faizxoneco
authored andcommitted
description of count field, changes default readme (#7)
* description of count field, changes default readme * build * useless articles everywhere * build last commit
1 parent ce47061 commit 727fada

3 files changed

Lines changed: 11 additions & 111 deletions

File tree

README.md

Lines changed: 3 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,5 @@
1-
<p align="center">
2-
<img src="https://raw.githubusercontent.com/lord/img/master/logo-slate.png" alt="Slate: API Documentation Generator" width="226">
3-
<br>
4-
<a href="https://travis-ci.org/lord/slate"><img src="https://travis-ci.org/lord/slate.svg?branch=master" alt="Build Status"></a>
5-
</p>
1+
API documentation of [UCLAPI](https://uclapi.com)
62

7-
<p align="center">Slate helps you create beautiful, intelligent, responsive API documentation.</p>
3+
The full API is open sourced at [https://github.com/uclapi/uclapi](https://github.com/uclapi/uclapi).
84

9-
<p align="center"><img src="https://dl.dropboxusercontent.com/u/95847291/github%20images/slate/slate_screenshot_new.png" width=700 alt="Screenshot of Example Documentation created with Slate"></p>
10-
11-
<p align="center"><em>The example above was created with Slate. Check it out at <a href="https://lord.github.io/slate">lord.github.io/slate</a>.</em></p>
12-
13-
Features
14-
------------
15-
16-
* **Clean, intuitive design** — With Slate, the description of your API is on the left side of your documentation, and all the code examples are on the right side. Inspired by [Stripe's](https://stripe.com/docs/api) and [Paypal's](https://developer.paypal.com/webapps/developer/docs/api/) API docs. Slate is responsive, so it looks great on tablets, phones, and even in print.
17-
18-
* **Everything on a single page** — Gone are the days when your users had to search through a million pages to find what they wanted. Slate puts the entire documentation on a single page. We haven't sacrificed linkability, though. As you scroll, your browser's hash will update to the nearest header, so linking to a particular point in the documentation is still natural and easy.
19-
20-
* **Slate is just Markdown** — When you write docs with Slate, you're just writing Markdown, which makes it simple to edit and understand. Everything is written in Markdown — even the code samples are just Markdown code blocks.
21-
22-
* **Write code samples in multiple languages** — If your API has bindings in multiple programming languages, you can easily put in tabs to switch between them. In your document, you'll distinguish different languages by specifying the language name at the top of each code block, just like with Github Flavored Markdown.
23-
24-
* **Out-of-the-box syntax highlighting** for [over 100 languages](https://github.com/jneen/rouge/wiki/List-of-supported-languages-and-lexers), no configuration required.
25-
26-
* **Automatic, smoothly scrolling table of contents** on the far left of the page. As you scroll, it displays your current position in the document. It's fast, too. We're using Slate at TripIt to build documentation for our new API, where our table of contents has over 180 entries. We've made sure that the performance remains excellent, even for larger documents.
27-
28-
* **Let your users update your documentation for you** — By default, your Slate-generated documentation is hosted in a public Github repository. Not only does this mean you get free hosting for your docs with Github Pages, but it also makes it simple for other developers to make pull requests to your docs if they find typos or other problems. Of course, if you don't want to use GitHub, you're also welcome to host your docs elsewhere.
29-
30-
Getting started with Slate is super easy! Simply fork this repository and follow the instructions below. Or, if you'd like to check out what Slate is capable of, take a look at the [sample docs](http://lord.github.io/slate).
31-
32-
Getting Started with Slate
33-
------------------------------
34-
35-
### Prerequisites
36-
37-
You're going to need:
38-
39-
- **Linux or OS X** — Windows may work, but is unsupported.
40-
- **Ruby, version 2.2.5 or newer**
41-
- **Bundler** — If Ruby is already installed, but the `bundle` command doesn't work, just run `gem install bundler` in a terminal.
42-
43-
### Getting Set Up
44-
45-
1. Fork this repository on Github.
46-
2. Clone *your forked repository* (not our original one) to your hard drive with `git clone https://github.com/YOURUSERNAME/slate.git`
47-
3. `cd slate`
48-
4. Initialize and start Slate. You can either do this locally, or with Vagrant:
49-
50-
```shell
51-
# either run this to run locally
52-
bundle install
53-
bundle exec middleman server
54-
55-
# OR run this to run with vagrant
56-
vagrant up
57-
```
58-
59-
You can now see the docs at http://localhost:4567. Whoa! That was fast!
60-
61-
Now that Slate is all set up on your machine, you'll probably want to learn more about [editing Slate markdown](https://github.com/lord/slate/wiki/Markdown-Syntax), or [how to publish your docs](https://github.com/lord/slate/wiki/Deploying-Slate).
62-
63-
If you'd prefer to use Docker, instructions are available [in the wiki](https://github.com/lord/slate/wiki/Docker).
64-
65-
Companies Using Slate
66-
---------------------------------
67-
68-
* [NASA](https://api.nasa.gov)
69-
* [IBM](https://docs.cloudant.com/api.html)
70-
* [Sony](http://developers.cimediacloud.com)
71-
* [Mozilla](http://localforage.github.io/localForage/)
72-
* [Best Buy](https://bestbuyapis.github.io/api-documentation/)
73-
* [Travis-CI](https://docs.travis-ci.com/api/)
74-
* [Greenhouse](https://developers.greenhouse.io/harvest.html)
75-
* [Woocommerce](http://woocommerce.github.io/woocommerce-rest-api-docs/)
76-
* [Appium](http://appium.io/slate/en/master)
77-
* [Dwolla](https://docs.dwolla.com/)
78-
* [Clearbit](https://clearbit.com/docs)
79-
* [Coinbase](https://developers.coinbase.com/api)
80-
* [Parrot Drones](http://developer.parrot.com/docs/bebop/)
81-
* [Fidor Bank](http://docs.fidor.de/)
82-
* [Scale](https://docs.scaleapi.com/)
83-
84-
You can view more in [the list on the wiki](https://github.com/lord/slate/wiki/Slate-in-the-Wild).
85-
86-
Need Help? Found a bug?
87-
--------------------
88-
89-
[Submit an issue](https://github.com/lord/slate/issues) to the Slate Github if you need any help. And, of course, feel free to submit pull requests with bug fixes or changes.
90-
91-
Contributors
92-
--------------------
93-
94-
Slate was built by [Robert Lord](https://lord.io) while interning at [TripIt](https://www.tripit.com/).
95-
96-
Thanks to the following people who have submitted major pull requests:
97-
98-
- [@chrissrogers](https://github.com/chrissrogers)
99-
- [@bootstraponline](https://github.com/bootstraponline)
100-
- [@realityking](https://github.com/realityking)
101-
- [@cvkef](https://github.com/cvkef)
102-
103-
Also, thanks to [Sauce Labs](http://saucelabs.com) for helping sponsor the project.
104-
105-
Special Thanks
106-
--------------------
107-
- [Middleman](https://github.com/middleman/middleman)
108-
- [jquery.tocify.js](https://github.com/gfranko/jquery.tocify.js)
109-
- [middleman-syntax](https://github.com/middleman/middleman-syntax)
110-
- [middleman-gh-pages](https://github.com/edgecase/middleman-gh-pages)
111-
- [Font Awesome](http://fortawesome.github.io/Font-Awesome/)
5+
Any and all contributions are welcome! If you spot a tpyo or error, feel free to fix it and submit a pull request :)

build/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,11 @@ <h4 id="response">Response</h4>
670670
<td><code class="prettyprint">45699</code></td>
671671
<td>Phone number (UCL extension)</td>
672672
</tr>
673+
<tr>
674+
<td>count</td>
675+
<td><code class="prettyprint">1197</code></td>
676+
<td>Total number of bookings matching the query. The <code class="prettyprint">count</code> field will only be in the first response to a query</td>
677+
</tr>
673678
</tbody></table>
674679

675680
<h3 id="paginated-request">Paginated Request</h3>

source/index.html.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: UCL API Reference
33

44
language_tabs:
55
- shell : Shell
6-
- python : Python
6+
- python : Python
77
- javascript : JavaScript
88

99
toc_footers:
@@ -274,6 +274,7 @@ roomname | `Cruciform Building B.3.05` | The name of the room. It often includes
274274
siteid | `044` | Every room is inside a site (building). All sites have ids.
275275
weeknumber | `8` | The week the booking is in.
276276
phone | `45699` | Phone number (UCL extension)
277+
count | `1197` | Total number of bookings matching the query. The `count` field will only be in the first response to a query
277278

278279
### Paginated Request
279280
**Endpoint:** `https://uclapi.com/roombookings/bookings`
@@ -436,4 +437,4 @@ This documentation is all open sourced at [https://github.com/uclapi/apiDocs](ht
436437

437438
The full API is open sourced at [https://github.com/uclapi/uclapi](https://github.com/uclapi/uclapi).
438439

439-
Any and all contributions are welcome! If you spot a tpyo or error, feel free to fix it and submit a pull request :)
440+
Any and all contributions are welcome! If you spot a tpyo or error, feel free to fix it and submit a pull request :)

0 commit comments

Comments
 (0)