---
# System prepended metadata

title: 1531 week 5 2020t2

---

# 1531 week 5 2020t2
## QA

### Group 1
Discuss the data it might take in:
- GET https://www.youtube.com/watch?v=GfL5zOhpB14 , video id
- POST creates videos on the internet router
- PUT no. of views, no. of subscribers, no. of like/dislike, comments, sort comments
Discuss the data it might return:
- comments, likes/dislikes, subscriber count

### Group 2
Discuss the data it might take in:  
v=GfL5zOhpB14&ab_channel=AboutUNSW
It takes in a video id, channel name.

Routes:
GET - specific video id and link
POST - 

Discuss the data it might return:  
Returns a video, related videos, comments and stats associated with the video.  


### Group 3
Routes:
GET - specific video, youtube logo -> link to home page
POST - search bar
PUT - subscribe, like/dislike, view count 
Discuss the data it might take in
The URL takes in two variables:
v (GfL5zOhpB14): Encoded string which acts as an "identifier" for the video -> index?
ab_channel (AboutUNSW): Channel name string
Discuss the data it might return:

Are there any considerations that need to be made when choosing how to breakup routes?

### Group 4
Route taken:
* GET:
* POST:
* PUT:
Discuss the data it might take in:
GET request: What video you want to watch
v=GfL5zOhpB14
Channel: ab_channel=AboutUNSW
Discuss the data it might return:
If the get request was successful return 200

### Group 5
What routes are taken?

What might be the inputs
What might be the outputs!

GET to obtain user data(youtube login), view count comments, 
GET to know how much is watched
PUT to update viewer count


## Q E

 http://unsw.com/calendar/view?term=t3&week=5#top
 
 # Q F
 
 ```json
 
 {
  "channels": [
    {
      "id" : 3,
      "name" : "Channel 1",
      "messages" : [
        {
          "id" : 1,
          "user_id" : 5,
          "message" : "Hello world"
        },
        {
          "id" : 2,
          "user_id" : 5,
          "message" : "Its me"
        },
        {
          "id" : 3,
          "user_id" : 7,
          "message" : "What are you doing??"
        }
      ]
    },
    {
      "id" : 4,
      "name" : "Channel 2",
      "messages" : []
    }
  ]
}
```

```yaml=
---
channels:
- id: 3
    name: Channel 1
    messages:
    - id: 1
      user_id: 5
      message: Hello world
    - id: 2
      user_id: 5
      message: its me
    - id: 3
      user_id: 7
      message: What are you doing??
- id: 4
  name: Channel 2
  messages: []
```
 
 