File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121| --- | --- | --- | --- | --- | --- | --- | --- |
2222| 4/4 | DummyJSON User Search | 是,` q=em ` | 是,` skip=0 ` | 是,` limit=10 ` | 是,body ` total ` | 四项都支持,适合作为搜索 + 分页 + 总量示例。 | <l >https://dummyjson.com/users/search?q=em&limit=10&skip=0 </l > |
2323| 4/4 | GitHub Search | 是,` q=stars:%3E100000 ` | 是,` page=1 ` | 是,` per_page=5 ` | 是,body ` total_count ` | 四项都支持,注意 GitHub Search 有接口限流。 | <l >https://api.github.com/search/repositories?q=stars:%3E100000&page=1&per_page=5 </l > |
24+ | 4/4 | JSONPlaceholder | 是,` q=voluptas ` | 是,` _start=0 ` 或 ` _page=1 ` | 是,` _limit=10 ` | 是,header ` X-Total-Count ` | 支持分页和总量,但 total 在响应头,不在 body。 | <l >https://jsonplaceholder.typicode.com/posts?q=voluptas&_start=0&_limit=10 </l ><br ><l >https://jsonplaceholder.typicode.com/posts?q=voluptas&_page=1&_limit=10 </l > |
2425| 4/4 | MockAPI.io 包装版示例 | 是,` search= ` | 是,` page=1 ` | 是,` limit=10 ` | 是,body ` total ` | 四项都支持;当前响应是 ` data + total ` 包装结构。 | <l >https://61273138c2e8920017bc0b3c.mockapi.io/api/users?page=1&limit=10&search= </l > |
2526| 3/4 | PokéAPI | 否 | 是,` offset=0 ` | 是,` limit=10 ` | 是,body ` count ` | 不支持列表搜索参数,但分页和总量完整。 | <l >https://pokeapi.co/api/v2/pokemon?offset=0&limit=10 </l > |
2627| 3/4 | MockAPI.io 免费版 | 是,` search= ` | 是,` page=1 ` | 是,` limit=10 ` | 否,body 为数组 | 请求参数齐全,但响应没有 total,不能直接渲染完整分页器。 | <l >https://660d2bd96ddfa2943b33731c.mockapi.io/api/users?page=1&limit=10&search= </l > |
27- | 3 /4 | JSONPlaceholder | 否 | 是, ` _start=0 ` 或 ` _page=1 ` | 是,` _limit =10` | 是,header ` X-Total-Count ` | 支持分页和总量,但 total 在响应头,不在 body 。 | <l >https://jsonplaceholder.typicode.com/posts?_start =0&_limit =10 </ l >< br >< l > https://jsonplaceholder.typicode.com/posts?_page=1&_limit=10 </l > |
28+ | 2½ /4 | Platzi Fake Store | 否。但支持指定字段过滤搜索,如 ` title=鸿蒙 ` | 是, ` offset=0 ` | 是,` limit =10` | 否,body 为数组 | 只适合作为 offset/limit 列表加载示例 。 | <l >https://api.escuelajs.co/api/v1/products?offset =0&limit =10&title=鸿蒙 </l > |
2829| 2/4 | Random User | 否 | 是,` page=1 ` | 是,` results=10 ` | 否,body 仅有 ` info.page ` 、` info.results ` | 适合模拟分页加载,不适合需要总页数的分页器。 | <l >https://randomuser.me/api/?page=1&results=10&seed=abc </l > |
29- | 2/4 | Platzi Fake Store | 否 | 是,` offset=0 ` | 是,` limit=10 ` | 否,body 为数组 | 只适合作为 offset/limit 列表加载示例。 | <l >https://api.escuelajs.co/api/v1/products?offset=0&limit=10 </l > |
You can’t perform that action at this time.
0 commit comments