https://github.com/annastacia-dev/superheroes
https://github.com/annastacia-dev/superheroes
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/annastacia-dev/superheroes
- Owner: Annastacia-dev
- Created: 2022-11-29T12:32:20.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-29T14:35:18.000Z (over 2 years ago)
- Last Synced: 2025-01-06T19:17:20.917Z (4 months ago)
- Language: Ruby
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
## SUPERHEROES
- This is a simple api to get information about superheroes.
### ROUTES
#### GET /heroes
- This route returns all superheroes.
#### GET /heroes/:id
- This route returns a specific superhero.#### GET /powers
- This route returns all powers.
#### GET /powers/:id
- This route returns a specific power.#### PATCH /powers/:id
- This route updates a power.
- It accepts a JSON body with the following format:
{
"description": "Super Strength"
}#### POST /hero_powers
- This route creates a new hero_power.
- It accepts a JSON body with the following format:
{
"hero_id": 1,
"power_id": 2,
"strength": "Strong"
}
- Strength can be Strong, Weak, or Average#### INFORMATION
* Ruby version
ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux]
* System dependencies
- bundler* Configuration
```bundle install```* Database creation
- ```rails db:create```
- ``` rails db:migrate```
- ``` rails db:seed```* Start server
- ``` rails s```