https://github.com/freeshineit/go_web_video
go golang web video httprouter REST
https://github.com/freeshineit/go_web_video
go go-web golang httprouter video
Last synced: over 1 year ago
JSON representation
go golang web video httprouter REST
- Host: GitHub
- URL: https://github.com/freeshineit/go_web_video
- Owner: freeshineit
- Created: 2018-08-18T07:54:57.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-18T07:59:08.000Z (almost 8 years ago)
- Last Synced: 2025-01-13T20:26:01.847Z (over 1 year ago)
- Topics: go, go-web, golang, httprouter, video
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# web_voide
## api设计
### user 用户
| name | url | medthod | status code |
|--------------------|-----------|:-----------:|---------------|
|创建用户(注册) | /user | post | 201、400、500 |
|用户登录 | /user/:username | post | 200、400、500|
|获取用户基本信息 | /user/:username | get | 200、400、401、403、500|
|用户注销 | /user/:username | delete | 204、400、401、403、500|
### video 视频
| name | url | medthod | status code |
|--------------------|---------------------------------|:-----------:|------------------------|
|视频列表 | /user/:username/videos | get | 200、400、500 |
|播放视频 | /user/:username/videos/:vid-id | get | 200、400、500 |
|删除视频 | /user/:username/videos/vid-id | delete | 204、400、401、403、500 |
### comment 评论
| name | url | medthod | status code |
|--------------|----------------------------------------|:-----------:|------------------------|
|评论 | /videos/:vid-id/comments | get | 200、400、500 |
|提交评论 | /videos/:vid-id/comments | post | 201、400、500 |
|删除评论 | /videos/:vid-id/comments/:comment-id | delete | 204、400、401、403、500 |