git clone https://github.com/JStans12/stuff_box.git
bundle
Setup database with rake db:{create,migrate,seed}
Run the test suite with rspec
Start a server with rails s
When you sign up for an account with Stuff Box, you will be assigned a token. Any time you make a request to our api, you'll need to send this token along as a parameter. Checkout our list of endpoints below.
POST /uploads/comments
allows you to post a comment on a upload
Parameter Name | Description |
---|---|
upload_id | The id of the file that you want to comment on |
username | Your username |
content | The body of your comment |
token | Your unique user token |
Returns your comment as JSON.
GET /uploads/comments
returns a list of all your personal comments
Parameter Name | Description |
---|---|
username | Your username |
token | Your unique user token |
Returns a list receive a a list of all your comments in JSON.
PUT /uploads/comment
allows you to edit a previous comment that you made
Parameter Name | Description |
---|---|
comment_id | The id of the comment that you want to edit |
username | Your username |
content | The body of your comment |
token | Your unique user token |
Returns your edited comment as JSON.
PUT /uploads/comment
allows you to edit a previous comment that you made
Parameter Name | Description |
---|---|
comment_id | The id of the comment that you want to edit |
username | Your username |
token | Your unique user token |
Returns a success message alerting you that your comment is gone forever.