Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement apis #5

Open
2 of 13 tasks
xxi511 opened this issue Nov 11, 2020 · 2 comments
Open
2 of 13 tasks

Implement apis #5

xxi511 opened this issue Nov 11, 2020 · 2 comments
Assignees

Comments

@xxi511
Copy link
Collaborator

xxi511 commented Nov 11, 2020

API 大部分都還沒實作(2020/11/11),開工前注意

https://api.devptt.site:5000/

  • POST login

  • GET /api/Article/{board}
  • GET /api/Article/{board}/{file}
  • GET /api/Rank/{board}/{aid}
  • POST /api/Rank/{board}/{aid}

  • GET /api/Board
  • GET /api/Board/{name}
  • GET /api/Board/Search
  • GET /api/Board/Popular
  • GET /api/Board/Favorite/{id}
  • GET /api/Board/Category/{name}
  • GET /api/Board/{name}/Moderators

  • GET /api/User/{id}
@xxi511 xxi511 self-assigned this Nov 27, 2020
@PichuChen
Copy link
Member

我覺得可以從確認 APIClientProtocol 開始,不知道其他人看法如何?

@chhsiao1981
Copy link

chhsiao1981 commented Mar 7, 2021

2021-03-07

目前 https://api.devptt.site:5000 裡已經有以下 api 實作:

User:

  • POST /api/account/attemptregister
  • POST /api/account/register
  • POST /api/account/login
  • GET /api/userid
  • GET /api/user/{user_id}/favorites
  • GET /api/user/{user_id}

Board:

  • GET /api/boards/autocomplete
  • GET /api/boards/byclass
  • GET /api/boards/popular
  • GET /api/boards
  • GET /api/board/{bid}/summary
  • POST /api/class/{cls}/board
  • GET /api/board/{bid}

Article:

  • GET /api/board/{bid}/articles
  • GET /api/board/{bid}/article/{aid}
  • GET /api/board/{bid}/article/{aid}/comments
  • POST /api/board/{bid}/article

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants