- This API exposes user notification data for this Small Notifications App
- It's built using Rails 5.2.8 with a Postgres database
- Ruby version 2.7.2
- Clone this repo
- run
bundle install
with the project directory
- If you don't have Postgres setup, follow these instructions here
- rails db:setup
- rails db:seed
bundle exec rspec
rails s -p 5000
Notifications
GET /api/v1/user/notifications
{
"data": [
{
"id": "1",
"type": "notifications",
"attributes": {
"content": "Your articles of incorporation are complete!",
"formatted_time": "Sat May 21"
}
},
{
"id": "2",
"type": "notifications",
"attributes": {
"content": "Your application for EIN has been successfully completed",
"formatted_time": "Sat May 21"
}
},
{
"id": "3",
"type": "notifications",
"attributes": {
"content": "Your application for EIN has been successfully completed",
"formatted_time": "Sat May 21"
}
}
]
}