https://github.com/ggerdsen/sweater_weather
This application allows a user to plan out a trip, and see the weather forecast at the destination based upon their time of arrival. Consumes MapQuest, Unsplash and OpenWeather APIs.
https://github.com/ggerdsen/sweater_weather
api-wrapper rails-application
Last synced: 3 months ago
JSON representation
This application allows a user to plan out a trip, and see the weather forecast at the destination based upon their time of arrival. Consumes MapQuest, Unsplash and OpenWeather APIs.
- Host: GitHub
- URL: https://github.com/ggerdsen/sweater_weather
- Owner: ggerdsen
- Created: 2020-11-08T01:10:03.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-11T07:26:37.000Z (over 5 years ago)
- Last Synced: 2025-02-02T10:43:00.373Z (over 1 year ago)
- Topics: api-wrapper, rails-application
- Language: Ruby
- Homepage:
- Size: 185 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
This application allows a user to plan out a trip, and see the weather forecast at the destination based upon their time of arrival.
# Endpoints
### 1a. Retrieve Weather for a City Request
```
GET /api/v1/forecast?location=denver,co
Content-Type: application/json
Accept: application/json
```
### 1b. Background Image for the City Request
```
GET /api/v1/backgrounds?location=denver,co
Content-Type: application/json
Accept: application/json
```
### 2. User Registration Request
```
POST /api/v1/users
Content-Type: application/json
Accept: application/json
{
"email": "whatever@example.com",
"password": "password",
"password_confirmation": "password"
}
```
### 3. Login Request
```
POST /api/v1/sessions
Content-Type: application/json
Accept: application/json
{
"email": "whatever@example.com",
"password": "password"
}
```
### 4. Road Trip Request
```
POST /api/v1/road_trip
Content-Type: application/json
Accept: application/json
body:
{
"origin": "Denver,CO",
"destination": "Pueblo,CO",
"api_key": "jgn983hy48thw9begh98h4539h4"
}
```