-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kris Lemberg
committed
Apr 4, 2015
1 parent
d792eac
commit 3b5cbfe
Showing
18 changed files
with
214 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
account | ||
======= | ||
|
||
.. http:method:: GET /api/3.0/account | ||
.. http:get:: /api/3.0/account | ||
.. http:response:: Retrieve a list detailing all staff accounts in your system. | ||
Retrieve a list detailing all staff accounts in your system. | ||
|
||
.. literalinclude:: ../examples/response/account.json | ||
:language: js | ||
:language: json | ||
:linenos: | ||
:emphasize-lines: 21-35 | ||
:emphasize-lines: 21-35 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,32 @@ | ||
booking/index | ||
------------- | ||
.. http:method:: GET /api/3.0/booking/index | ||
.. http:get:: /api/3.0/booking/index | ||
:optparam string status_id: The current status of a booking. | ||
:optparam integer customer_id: The customer id associated with the booking. | ||
:optparam string customer_email: The customer email associated with the booking. | ||
:optparam string/timestamp start_date: The date the booking starts on (i.e. check-in). | ||
:optparam string/timestamp end_date: The date the booking starts on (i.e. check-in). | ||
:optparam integer limit: The limit of bookings to return per page (default: 100). | ||
:optparam integer page: The page of results to return. | ||
Retrieve a listing of bookings in the system. | ||
|
||
.. http:response:: Retrieve a listing of bookings in the system. | ||
Details returned on *individual* bookings in the response: | ||
:query string status_id: The current status of a booking. | ||
:query integer customer_id: The customer id associated with the booking. | ||
:query string customer_email: The customer email associated with the booking. | ||
:query string/timestamp start_date: The date the booking starts on (i.e. check-in). | ||
:query string/timestamp end_date: The date the booking starts on (i.e. check-in). | ||
:query integer limit: The limit of bookings to return per page (default: 100). | ||
:query integer page: The page of results to return. | ||
|
||
:data integer booking_id: The internal index of a booking. | ||
:data string code: The unique booking reference code. | ||
:data string status_id: The status code of the booking. | ||
:data string status_name: The display name of the booking status. | ||
:data timestamp created_date: The date/time the booking was created. | ||
:data float total: The full value of the booking. | ||
:data float tax_total: The sum of the taxes applied to the booking. | ||
:data float paid_total: The amount the customer has paid on the booking. | ||
:data string customer_name: The full name of the booking contact. | ||
:data string customer_email: The email address of the booking contact. | ||
:data string summary: A brief description of the contents of the booking. | ||
:data string date_desc: A string describing the booked dates/times. | ||
:data string token: A customer token for the booking, can be used to build links to customer portions of the reservation system. | ||
:>jsonarr integer booking_id: The internal index of a booking. | ||
:>jsonarr string code: The unique booking reference code. | ||
:>jsonarr string status_id: The status code of the booking. | ||
:>jsonarr string status_name: The display name of the booking status. | ||
:>jsonarr timestamp created_date: The date/time the booking was created. | ||
:>jsonarr float total: The full value of the booking. | ||
:>jsonarr float tax_total: The sum of the taxes applied to the booking. | ||
:>jsonarr float paid_total: The amount the customer has paid on the booking. | ||
:>jsonarr string customer_name: The full name of the booking contact. | ||
:>jsonarr string customer_email: The email address of the booking contact. | ||
:>jsonarr string summary: A brief description of the contents of the booking. | ||
:>jsonarr string date_desc: A string describing the booked dates/times. | ||
:>jsonarr string token: A customer token for the booking, can be used to build links to customer portions of the reservation system. | ||
|
||
.. literalinclude:: ../../examples/response/booking-index.json | ||
:language: js | ||
:language: json | ||
:linenos: | ||
:emphasize-lines: 23-39 | ||
:emphasize-lines: 23-39 |
Oops, something went wrong.