Skip to content

Instantly share code, notes, and snippets.

@aszx87410

aszx87410/v2.md Secret

Last active Dec 16, 2020
Embed
What would you like to do?
圖書館資訊系統 API v2

Base URL: https://lidemy-http-challenge.herokuapp.com/api/v2

以下 endpoint 都必須經由 HTTP 驗證,驗證方法為傳入 Authorization 的 Header。

首先你必須準備好一組字串,內容為 base64(username:password)
舉例來說,如果 username 是 aaa,password 是 123 的話,就會是字串 aaa:123 拿去做 base64 編碼之後得到的結果
再把這個結果放到 Header 去,最後變成:Authorization: Basic YWFhOjEyMw==
只要帶上這個 Header 就可以驗證身份囉!

(提示:可查詢關鍵字 http basic authorization

POST 以及 PATCH 的 content type 為:application/x-www-form-urlencoded。

說明 Method path 參數 範例
獲取個人資訊 GET /me
獲取系統資訊 GET /sys_info
獲取所有書籍 GET /books q: 查詢書籍 /books?q=hello
獲取單一書籍 GET /books/:id /books/10
新增書籍 POST /books name: 書名, ISBN: 書籍編號
刪除書籍 DELETE /books/:id
更改書籍資訊 PATCH /books/:id name: 書名, ISBN: 書籍編號
@advancedor96

This comment has been minimized.

Copy link

@advancedor96 advancedor96 commented Mar 5, 2019

這個關鍵字查詢 很重要,有必要資訊

@Rainbowrain-TW

This comment has been minimized.

Copy link

@Rainbowrain-TW Rainbowrain-TW commented Mar 16, 2019

這個關鍵字查詢 很重要,有必要資訊

除非本來有做過,不然不 google 不可能會過關的

@hi101072645

This comment has been minimized.

Copy link

@hi101072645 hi101072645 commented May 2, 2019

好玩推推,我每一題都偷看 hint XP

@iamso1

This comment has been minimized.

Copy link

@iamso1 iamso1 commented May 15, 2019

這用postman會過嗎?
我已經傳入了正確的user-agent 但是始終不讓我過Orz

@kunyaoxu

This comment has been minimized.

Copy link

@kunyaoxu kunyaoxu commented May 15, 2019

這用postman會過嗎?
我已經傳入了正確的user-agent 但是始終不讓我過Orz

我用 postman 會過

@anemology

This comment has been minimized.

Copy link

@anemology anemology commented May 18, 2019

Chrome的Postman要設user-agent的時候會出現 Restricted Header (use Postman Interceptor),另外再裝Postman Interceptor,然後在Postman右上角打開Postman Interceptor就可以過了。(不知道是什麼原因)

@iamso1

This comment has been minimized.

Copy link

@iamso1 iamso1 commented May 23, 2019

我用 postman 會過

請問您也有裝Postman Interceptor嗎?

@iamso1

This comment has been minimized.

Copy link

@iamso1 iamso1 commented May 23, 2019

Chrome的Postman要設user-agent的時候會出現 Restricted Header (use Postman Interceptor),另外再裝Postman Interceptor,然後在Postman右上角打開Postman Interceptor就可以過了。(不知道是什麼原因)

好阿雜XD

@kunyaoxu

This comment has been minimized.

Copy link

@kunyaoxu kunyaoxu commented May 23, 2019

我用 postman 會過

請問您也有裝Postman Interceptor嗎?

我是用直接去官網載的 postman

@lofairy

This comment has been minimized.

Copy link

@lofairy lofairy commented Jun 10, 2019

還不錯喔
突破花了約 20 分鐘
第 10 關花最久 XD

@iamso1

This comment has been minimized.

Copy link

@iamso1 iamso1 commented Jun 10, 2019

感覺是不是要抓新版的postman呀...
我用舊版的綠色postman 好像就會蠻多問題

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment