api_responses
API Response Objects
These are JSON Responses from APIs
AwareDatetime
#
Bases: datetime
Datetime Aware Timestamp Parsing
Source code in camply/containers/api_responses.py
__get_validators__()
classmethod
#
validate(v)
classmethod
#
Validate Date Strings Into
Parameters:
Name | Type | Description | Default |
---|---|---|---|
v |
Union[str, datetime]
|
|
required |
Returns:
Type | Description |
---|---|
datetime
|
|
Source code in camply/containers/api_responses.py
CampsiteAvailabilityResponse
#
Bases: CamplyModel
https://ridb.recreation.gov/api/v1/campsites/
Source code in camply/containers/api_responses.py
CampsiteResponse
#
Bases: CoreRecDotGovResponse
https://ridb.recreation.gov/api/v1/campsites/
Source code in camply/containers/api_responses.py
CoreRecDotGovResponse
#
Bases: CamplyModel
Core Response from Recreation.gov
Date
#
Bases: date
Date Parsing
Source code in camply/containers/api_responses.py
__get_validators__()
classmethod
#
validate(v)
classmethod
#
Validate Date Strings Into
Parameters:
Name | Type | Description | Default |
---|---|---|---|
v |
Union[str, date]
|
|
required |
Returns:
Type | Description |
---|---|
date
|
|
Source code in camply/containers/api_responses.py
FacilityResponse
#
Bases: CamplyModel
/api/v1/facilities/
Source code in camply/containers/api_responses.py
validate_parentrecid(val)
#
GenericResponse
#
RecDotGovCampsite
#
Bases: CamplyModel
Recreation.gov Campsite Object
Source code in camply/containers/api_responses.py
RecDotGovCampsiteResponse
#
Bases: CamplyModel
Parent Response from Campsite Metadata
Source code in camply/containers/api_responses.py
RecDotGovSearchResponse
#
Bases: CamplyModel
Parent Response from Search Results
Source code in camply/containers/api_responses.py
RecDotGovSearchResult
#
Bases: CamplyModel
Recreation.gov Search Result Object
Source code in camply/containers/api_responses.py
RecreationAreaResponse
#
Bases: CamplyModel
https://ridb.recreation.gov/api/v1/campsites/
Source code in camply/containers/api_responses.py
TourDailyAvailabilityBookingWindow
#
Bases: CamplyModel
https://ridb.recreation.gov/api/v1/tours/
Source code in camply/containers/api_responses.py
TourDailyAvailabilityBookingWindows
#
Bases: CamplyModel
https://ridb.recreation.gov/api/v1/tours/
Source code in camply/containers/api_responses.py
TourDailyAvailabilityResponse
#
Bases: CamplyModel
https://ridb.recreation.gov/api/v1/tours/
Source code in camply/containers/api_responses.py
TourMonthlyAvailabilityResponse
#
Bases: CamplyModel
https://ridb.recreation.gov/api/v1/tours/
Source code in camply/containers/api_responses.py
TourResponse
#
Bases: CoreRecDotGovResponse
https://ridb.recreation.gov/api/v1/tours/
Source code in camply/containers/api_responses.py
UnawareDatetime
#
Bases: datetime
Datetime Unaware Timestamp Parsing
Source code in camply/containers/api_responses.py
__get_validators__()
classmethod
#
validate(v)
classmethod
#
Validate Date Strings Into
Parameters:
Name | Type | Description | Default |
---|---|---|---|
v |
Union[str, datetime]
|
|
required |
Returns:
Type | Description |
---|---|
datetime
|
|
Source code in camply/containers/api_responses.py
XantCampgroundDetails
#
Bases: CamplyModel
Yellowstone Campground Details OBject
Source code in camply/containers/api_responses.py
XantPerGuest
#
XantRates
#
Bases: CamplyModel
Yellowstone Rates Object
Source code in camply/containers/api_responses.py
XantResortData
#
Bases: CamplyModel
Main Yellowstone API Response Wrapper
Source code in camply/containers/api_responses.py
parse_datetime(value)
#
Parse Poorly Formatted Date Strings