Browse files

boom

  • Loading branch information...
1 parent 1ffcb86 commit b199f4fa3ca20cb54b0ab956e56101c529039550 @drogus committed Jun 19, 2012
View
7 api/index.html
@@ -44,8 +44,11 @@ <h1 id="stoliczkupl-api">Stoliczku.pl API</h1>
<div id="js-sidebar" class="sidebar-shell">
<div class="js-toggle-list sidebar-module expandable">
<ul>
- <li class="js-topic">
- <h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/">Ogólne</a></h3>
+ <li class="js-topic without-children">
+ <h3><a href="/">Ogólne</a></h3>
+ </li>
+ <li class="js-topic without-children">
+ <h3><a href="/reservations">Rezerwacje</a></h3>
</li>
<li class="js-topic">
<h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/users">Użytkownicy</a></h3>
View
7 index.html
@@ -69,8 +69,11 @@ <h1 id="stoliczku-api">Stoliczku API</h1>
<div id="js-sidebar" class="sidebar-shell">
<div class="js-toggle-list sidebar-module expandable">
<ul>
- <li class="js-topic">
- <h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/">Ogólne</a></h3>
+ <li class="js-topic without-children">
+ <h3><a href="/">Ogólne</a></h3>
+ </li>
+ <li class="js-topic without-children">
+ <h3><a href="/reservations">Rezerwacje</a></h3>
</li>
<li class="js-topic">
<h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/users">Użytkownicy</a></h3>
View
141 reservations/index.html
@@ -0,0 +1,141 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <meta http-equiv="Content-Language" content="en-us" />
+ <meta http-equiv="imagetoolbar" content="false" />
+ <meta name="MSSmartTagsPreventParsing" content="true" />
+ <title>Stoliczku.pl API - Rezerwacje</title>
+ <link href="/css/reset.css" rel="stylesheet" type="text/css" />
+ <link href="/css/960.css" rel="stylesheet" type="text/css" />
+ <link href="/css/uv_active4d.css" rel="stylesheet" type="text/css" />
+ <link href="/shared/css/documentation.css" media="screen" rel="stylesheet" type="text/css">
+ <link href="/shared/css/pygments.css" media="screen" rel="stylesheet" type="text/css">
+ <script src="/shared/js/jquery.js" type="text/javascript"></script>
+ <script src="/shared/js/documentation.js" type="text/javascript"></script>
+</head>
+<body class="api">
+
+ <div id="header-wrapper">
+ <div id="header">
+ <div>
+ <h1><a class="logo" href="/">Stoliczku.pl</a></h1>
+ <ul class="nav">
+ <li><a href="http://stoliczku.pl">Stoliczku.pl</a></li>
+ </ul>
+ </div>
+ </div><!-- #header -->
+ </div><!-- #header-wrapper -->
+
+ <div id="wrapper">
+ <div class="content">
+ <h2 id="stworzenie-nowej-rezerwacji">Stworzenie nowej rezerwacji</h2>
+
+<pre><code>POST /reservations
+</code></pre>
+
+<h3 id="parametry">Parametry</h3>
+
+<dl>
+<dt>seats</dt>
+ <dd>
+ <ul>
+<li>ilość miejsc do rezerwacji</li>
+ </ul>
+</dd>
+ <dt>date</dt>
+ <dd>
+ <ul>
+<li>data w formacie yyyy-mm-dd</li>
+ </ul>
+</dd>
+ <dt>hour</dt>
+ <dd>
+ <ul>
+<li>godzina rezerwacji</li>
+ </ul>
+</dd>
+ <dt>notes</dt>
+ <dd>
+ <ul>
+<li>informacja do przekazania do restauracji</li>
+ </ul>
+</dd>
+ <dt>restaurant_id</dt>
+ <dd>
+ <ul>
+<li>id restauracji, w której powinna zostać złożona rezerwacja</li>
+ </ul>
+</dd>
+</dl><h3 id="przykadowe-parametry">Przykładowe parametry</h3>
+
+<pre><code>{
+ "seats": 2,
+ "date": "2012-02-20",
+ "hour": "15:30",
+ "notes": "Poprosze o stolik przy oknie",
+ "restaurant_id": 118
+}
+</code></pre>
+
+<h3 id="odpowied">Odpowiedź</h3>
+
+<p>Poprawne zapytanie zwróci dane rezerwacji:</p>
+
+<pre class="headers"><code>Status: 200 OK</code></pre>
+<pre class="highlight"><code class="llanguage-javascript">{
+ "id": 18,
+ "notes": "Poprosze o stolik przy oknie",
+ "restaurant_id": 118,
+ "seats": 2,
+ "date": "2012-02-20",
+ "hour": "15:30"
+}</code></pre>
+<p>”</p>
+ </div>
+
+ <div id="js-sidebar" class="sidebar-shell">
+ <div class="js-toggle-list sidebar-module expandable">
+ <ul>
+ <li class="js-topic without-children">
+ <h3><a href="/">Ogólne</a></h3>
+ </li>
+ <li class="js-topic without-children">
+ <h3><a href="/reservations">Rezerwacje</a></h3>
+ </li>
+ <li class="js-topic">
+ <h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/users">Użytkownicy</a></h3>
+ <ul class="js-guides">
+ <li><a href="/users/registration">Rejestracja</a></li>
+ </ul>
+ <ul class="js-guides">
+ <li><a href="/users/activation">Aktywacja</a></li>
+ </ul>
+ </li>
+ <li class="js-topic">
+ <h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/restaurants">Restauracje</a></h3>
+ <ul class="js-guides">
+ <li><a href="/restaurants/display">Wyświetlanie</a></li>
+ </ul>
+ <ul class="js-guides">
+ <li><a href="/restaurants/availability">Dostępność</a></li>
+ </ul>
+ <ul class="js-guides">
+ <li><a href="/restaurants/search">Wyszukiwanie</a></li>
+ </ul>
+ </li>
+ </ul>
+ </div> <!-- /sidebar-module -->
+ <div class="sidebar-module">
+ <p>This website is <a href="http://github.com/drogus/developer.stoliczku.pl" target="_blank">open source</a>. Please help us by forking the project and adding to it.</p>
+ </div>
+ </div><!-- /sidebar-shell -->
+
+ </div><!-- #wrapper -->
+
+ <div id="footer" >
+
+ </div><!-- /#footer -->
+ <!-- test -->
+</body>
+</html>
View
7 restaurants/availability/index.html
@@ -140,8 +140,11 @@ <h3 id="komunikaty-bdw">Komunikaty błędów:</h3>
<div id="js-sidebar" class="sidebar-shell">
<div class="js-toggle-list sidebar-module expandable">
<ul>
- <li class="js-topic">
- <h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/">Ogólne</a></h3>
+ <li class="js-topic without-children">
+ <h3><a href="/">Ogólne</a></h3>
+ </li>
+ <li class="js-topic without-children">
+ <h3><a href="/reservations">Rezerwacje</a></h3>
</li>
<li class="js-topic">
<h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/users">Użytkownicy</a></h3>
View
7 restaurants/display/index.html
@@ -103,8 +103,11 @@ <h3 id="odpowied">Odpowiedź</h3>
<div id="js-sidebar" class="sidebar-shell">
<div class="js-toggle-list sidebar-module expandable">
<ul>
- <li class="js-topic">
- <h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/">Ogólne</a></h3>
+ <li class="js-topic without-children">
+ <h3><a href="/">Ogólne</a></h3>
+ </li>
+ <li class="js-topic without-children">
+ <h3><a href="/reservations">Rezerwacje</a></h3>
</li>
<li class="js-topic">
<h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/users">Użytkownicy</a></h3>
View
10 restaurants/index.html
@@ -30,8 +30,9 @@
<div id="wrapper">
<div class="content">
<h2 id="restauracje">Restauracje</h2>
-
<ul class="js-guides">
+<li><a href="/restaurants/reservations">Składanie rezerwacji</a></li>
+</ul><ul class="js-guides">
<li><a href="/restaurants/display">Wyświetlanie</a></li>
</ul><ul class="js-guides">
<li><a href="/restaurants/availability">Dostępność</a></li>
@@ -43,8 +44,11 @@ <h2 id="restauracje">Restauracje</h2>
<div id="js-sidebar" class="sidebar-shell">
<div class="js-toggle-list sidebar-module expandable">
<ul>
- <li class="js-topic">
- <h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/">Ogólne</a></h3>
+ <li class="js-topic without-children">
+ <h3><a href="/">Ogólne</a></h3>
+ </li>
+ <li class="js-topic without-children">
+ <h3><a href="/reservations">Rezerwacje</a></h3>
</li>
<li class="js-topic">
<h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/users">Użytkownicy</a></h3>
View
7 restaurants/search/index.html
@@ -249,8 +249,11 @@ <h3 id="odpowied-gdy-parametr-availability-jest-dostpy">Odpowiedź gdy parametr
<div id="js-sidebar" class="sidebar-shell">
<div class="js-toggle-list sidebar-module expandable">
<ul>
- <li class="js-topic">
- <h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/">Ogólne</a></h3>
+ <li class="js-topic without-children">
+ <h3><a href="/">Ogólne</a></h3>
+ </li>
+ <li class="js-topic without-children">
+ <h3><a href="/reservations">Rezerwacje</a></h3>
</li>
<li class="js-topic">
<h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/users">Użytkownicy</a></h3>
View
57 shared/css/documentation.css
@@ -223,15 +223,15 @@ div.sidebar-module > ul > li:hover {
div.sidebar-module > ul h3 {
margin: 0px;
color: #666;
- text-shadow: 1px 1px 0px #fff;
+ text-shadow: 1px 1px 0px #fff;
border-bottom: 1px solid #CACACA;
font-size: 14px;
background-color: #e1e1e1;
- background-image: -moz-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -ms-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -o-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#e1e1e1));
- background-image: -webkit-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -moz-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -ms-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -o-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#e1e1e1));
+ background-image: -webkit-linear-gradient(top, #f1f1f1, #e1e1e1);
background-image: linear-gradient(top, #f1f1f1, #e1e1e1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e1e1e1');
}
@@ -257,6 +257,11 @@ div.sidebar-module > ul h3.disable span {
text-decoration: none;
}
+div.sidebar-module > ul li.without-children h3 a,
+div.sidebar-module > ul li.without-children h3.disable span {
+ padding: 8px 0px 8px 46px;
+}
+
div.sidebar-module > ul h3.disable span {
padding-left: 20px;
background-image: url(../images/active-arrow.png);
@@ -378,15 +383,15 @@ div.sidebar-module ul ul li span {
#footer .lower_footer {
position: relative;
- background:url(../images/bg_footer_bottom.png) #fff repeat-x;
+ background:url(../images/bg_footer_bottom.png) #fff repeat-x;
overflow: hidden;
clear:both;
}
#footer .lower_footer .home {
display: block;
position: absolute;
- background: url(../images/footer-logo.png) top left no-repeat;
+ background: url(../images/footer-logo.png) top left no-repeat;
width: 100px;
height: 50px;
text-indent: -5000px;
@@ -395,7 +400,7 @@ div.sidebar-module ul ul li span {
#footer .lower_footer .home_ie {
display: block;
position: absolute;
- background: url(../images/footer-logo.png) top left no-repeat;
+ background: url(../images/footer-logo.png) top left no-repeat;
width: 100px;
height: 50px;
text-indent: -5000px;
@@ -442,12 +447,12 @@ div.sidebar-module ul ul li span {
}
#footer .lower_footer .sponsor .logo {
- float:left;
+ float:left;
margin: 0 10px 0 0;
}
#footer .lower_footer .sponsor a {
- color: #000;
+ color: #000;
}
/* end */
@@ -578,11 +583,11 @@ pre.headers {
border-radius: 3px 3px 0 0;
color: #666;
background-color: #f1f1f1;
- background-image: -moz-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -ms-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -o-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#e1e1e1));
- background-image: -webkit-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -moz-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -ms-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -o-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#e1e1e1));
+ background-image: -webkit-linear-gradient(top, #f1f1f1, #e1e1e1);
background-image: linear-gradient(top, #f1f1f1, #e1e1e1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e1e1e1');
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
@@ -764,11 +769,11 @@ span.bash-output {
background-clip: padding-box;
padding: 6px 10px;
background-color: #f1f1f1;
- background-image: -moz-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -ms-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -o-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#e1e1e1));
- background-image: -webkit-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -moz-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -ms-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -o-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#e1e1e1));
+ background-image: -webkit-linear-gradient(top, #f1f1f1, #e1e1e1);
background-image: linear-gradient(top, #f1f1f1, #e1e1e1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e1e1e1');
color: #666;
@@ -855,11 +860,11 @@ div.expandable > ul h3 {
div.expandable > ul h3 > a {
display: table-cell;
background-color: #e1e1e1;
- background-image: -moz-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -ms-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -o-linear-gradient(top, #f1f1f1, #e1e1e1);
- background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#e1e1e1));
- background-image: -webkit-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -moz-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -ms-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -o-linear-gradient(top, #f1f1f1, #e1e1e1);
+ background-image: -webkit-gradient(linear, left top, left bottom, from(#f1f1f1), to(#e1e1e1));
+ background-image: -webkit-linear-gradient(top, #f1f1f1, #e1e1e1);
background-image: linear-gradient(top, #f1f1f1, #e1e1e1);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#f1f1f1', EndColorStr='#e1e1e1');
}
View
7 users/activation/index.html
@@ -85,8 +85,11 @@ <h3 id="bdy-walidacji">Błędy walidacji</h3>
<div id="js-sidebar" class="sidebar-shell">
<div class="js-toggle-list sidebar-module expandable">
<ul>
- <li class="js-topic">
- <h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/">Ogólne</a></h3>
+ <li class="js-topic without-children">
+ <h3><a href="/">Ogólne</a></h3>
+ </li>
+ <li class="js-topic without-children">
+ <h3><a href="/reservations">Rezerwacje</a></h3>
</li>
<li class="js-topic">
<h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/users">Użytkownicy</a></h3>
View
7 users/index.html
@@ -41,8 +41,11 @@ <h2 id="uytkownicy">Użytkownicy</h2>
<div id="js-sidebar" class="sidebar-shell">
<div class="js-toggle-list sidebar-module expandable">
<ul>
- <li class="js-topic">
- <h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/">Ogólne</a></h3>
+ <li class="js-topic without-children">
+ <h3><a href="/">Ogólne</a></h3>
+ </li>
+ <li class="js-topic without-children">
+ <h3><a href="/reservations">Rezerwacje</a></h3>
</li>
<li class="js-topic">
<h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/users">Użytkownicy</a></h3>
View
7 users/registration/index.html
@@ -144,8 +144,11 @@ <h3 id="bdy-walidacji">Błędy walidacji</h3>
<div id="js-sidebar" class="sidebar-shell">
<div class="js-toggle-list sidebar-module expandable">
<ul>
- <li class="js-topic">
- <h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/">Ogólne</a></h3>
+ <li class="js-topic without-children">
+ <h3><a href="/">Ogólne</a></h3>
+ </li>
+ <li class="js-topic without-children">
+ <h3><a href="/reservations">Rezerwacje</a></h3>
</li>
<li class="js-topic">
<h3><a href="#" class="js-expand-btn collapsed">&nbsp;</a><a href="/users">Użytkownicy</a></h3>

0 comments on commit b199f4f

Please sign in to comment.