-
Notifications
You must be signed in to change notification settings - Fork 1
API Documentation
-
Require Authentication:
-
Request
-
Method: GET
-
URL:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: POST
-
URL:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: POST
-
URL:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: PUT
-
URL:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: DELETE
-
URL:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
- Method: GET
- URL: /api/stories/all
- Headers:
- Content-Type: application/json
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
{ "Stories": [ { "Story" : { "UserId" : 1, "Story": "Story Body Goes Here", "Tag": "Education", "Title": "Story Title goes here", "Image": "url", "createdAt": "mm/dd/yyyy", }, "User": { "userId": 1, "firstName": "John", "lastName": "Doe", "profileImage": "url" } } ] }
```
-
Require Authentication:
-
Request
-
Method: GET
-
URL: /api/stories/:username
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: GET
-
URL: /api/stories/:userId/following
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: GET
-
URL: /api/stories/:tag
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: GET
-
URL: /api/stories/:storyId
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: GET
-
URL: /api/stories/trending
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: POST
-
URL: /api/stories/new
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: PUT
-
URL: /api/stories/:storyId
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: DELETE
-
URL: /api/stories/:storyId
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: GET
-
URL: /api/responses/:storyId
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: GET
-
URL: /api/responses/:userId
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: POST
-
URL: /api/responses/:storyId
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: PUT
-
URL: /api/responses/:responseId
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: DELETE
-
URL: /api/responses/:storyId
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: POST
-
URL: /api/:userId/following
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: PUT
-
URL: /api/:userId/following
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: POST
-
URL: /api/claps/:storyId
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: POST
-
URL: /api/claps/:responseId
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: PUT
-
URL: /api/claps/:storyId
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-
-
Require Authentication:
-
Request
-
Method: PUT
-
URL: /api/claps/:userId
-
Body:
-
-
Successful Response
-
Status Code:
-
Headers:
- Content-Type: application/json
-
Body:
-