Guindex HTTP API
contact
create
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
name required | Name of message poster |
email required | Email of message poster (for sending replies) |
subject required | Subject of message |
message required | Message body |
contributors
list
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
page | A page number within the paginated result set. |
read
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this user. |
partial_update
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this user. |
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
usingEmailAlerts | Does this contributor have email alerts enabled? |
usingTelegramAlerts | Does this contributor have Telegram alerts enabled? |
pending_price_creates
list
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
page | A page number within the paginated result set. |
read
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this guinness pending create. |
partial_update
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this guinness pending create. |
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
approved | Is contribution approved? |
rejectReason | Reason for rejecting contribution |
pending_pub_creates
list
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
page | A page number within the paginated result set. |
read
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this pub pending create. |
partial_update
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this pub pending create. |
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
approved | Is contribution approved? |
rejectReason | Reason for rejecting contribution |
pending_pub_patches
list
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
page | A page number within the paginated result set. |
read
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this pub pending patch. |
partial_update
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this pub pending patch. |
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
approved | Is contribution approved? |
rejectReason | Reason for rejecting contribution |
pubs
list
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
page | A page number within the paginated result set. |
name | |
closed | |
servingGuinness | |
county | |
creator | |
search | A search term. |
create
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
name required | Pub name |
county | County pub is located in |
longitude required | Longitude of pub location |
latitude required | Latitude of pub location |
closed | Is pub permanently closed? |
servingGuinness | Is pub serving Guinness? |
read
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this pub. |
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
name | |
closed | |
servingGuinness | |
county | |
creator | |
search | A search term. |
partial_update
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this pub. |
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
name | |
closed | |
servingGuinness | |
county | |
creator | |
search | A search term. |
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
name | Pub name |
county | County pub is located in |
longitude | Longitude of pub location |
latitude | Latitude of pub location |
closed | Is pub permanently closed? |
servingGuinness | Is pub serving Guinness? |
prices > list
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
pub_pk required |
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
page | A page number within the paginated result set. |
prices > create
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
pub_pk required |
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
price required | Price |
starRating | Star rating (i.e. quality of pint) |
prices > read
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
pub_pk required | |
id required |
rest-auth
facebook > create
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
access_token | |
code |
facebook > connect > create
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
access_token | |
code |
login > create
Check the credentials and return the REST Token if the credentials are valid and authenticated. Calls Django Auth login method to register User ID in Django session framework
Accept the following POST parameters: username, password Return the REST Framework Token Object's key.
Request Body
The request body should be a "application/json"
encoded object, containing the following items.
Parameter | Description |
---|---|
username | |
email | |
password required |
statistics
list
Query Parameters
The following parameters should be included as part of a URL query string.
Parameter | Description |
---|---|
page | A page number within the paginated result set. |
read
Path Parameters
The following parameters should be included in the URL path.
Parameter | Description |
---|---|
id required | A unique integer value identifying this statistics singleton. |