nss-day-cohort-29 / reactive-nutshell-starrywick

reactive-nutshell-starrywick created by GitHub Classroom
0 stars 0 forks source link

Nutshell API #5

Open jisie opened 5 years ago

jisie commented 5 years ago

The Nutshell API should expose the following resources for use by clients

/users
/articles
/events
/tasks
/friends
/messages
zwcrawford commented 5 years ago
{
    "users": [
      {
        "id": 1,
        "username": "Cooley",
        "email": false
      }
    ],
    "messages": [
      {
        "id": 1,
        "userId": 2,
        "message": "message"
      }
    ],
    "news": [
      {
        "id": 1,
        "userId": 2,
        "url": "url",
        "title": "title",
        "synopsis": "synopsis"
      }
    ],
    "events": [
        {
        "id": 1,
        "userId": 2,
        "name": "Event Name",
        "eventDate": "2019/01/28",
        "location": "NSS"
        }
    ],
    "friends": [
      {
        "connectionId": 1,
        "userId": 2,
        "otherFriendId": "url"
      }
    ],
    "tasks": [
      {
        "id": 1,
        "userId": 2,
        "task": "task",
        "dueDate": "2019-01-28",
        "complete": false
      }
    ]
 }