Được TopGit lập chỉ mục từ metadata GitHub: pi-hole/api có 170 sao, viết chủ yếu bằng Rust. The Pi-hole API
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
This repository has been archived. For more information please see https://github.com/pi-hole/FTL/pull/659
Pi-hole API
Work in progress HTTP API for Pi-hole.
The API reads FTL's shared memory so it can directly read the statistics FTL
generates. This API is the replacement for most of FTL's socket/telnet API, as
well as the PHP API of the pre-5.0 web interface.
Currently the project uses Rust nightly. The exact version used is stored
in rust-toolchain. The version should be detected and
used automatically when you run a Rust command in the project directory,
such as cargo check (this is a feature of rustup)
After installing, make sure the Rust tools are on your PATH:
source ~/.cargo/env
Install your distro's build tools
build-essential for Debian distros, gcc-c++ and make for RHEL
distros
Install libsqlite3
libsqlite3-dev for Debian distros, sqlite-devel for RHEL
Fork the repository and clone to your computer (not the Pi-hole). In
production the Pi-hole only needs the compiled output of the project, not its
source code
Checkout the development branch for the latest changes.
Run cargo check. This will download the Rust nightly toolchain and project
dependencies, and it will check the program for errors. If everything was set
up correctly, the final output should look like this:
Finished dev [unoptimized + debuginfo] target(s) in 1m 11s
Run cargo test. This will compile and run the tests. They should all pass
:wink:
If you've never used Rust, you should look at the documentation,
including the Rust Book, before diving too deep into the code.
When you are ready to make changes, make a branch off of development in your
fork to work in. When you're ready to make a pull request, base the PR against
development.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/pi-hole/api là nguồn chính thức.
pi-hole/api có bao nhiêu sao?
pi-hole/api có 170 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/pi-hole/api. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
pi-hole/api có những chủ đề gì?
GitHub topics của pi-hole/api: "pi-hole". TopGit xếp repo vào nhóm mã nguồn mở.
pi-hole/api có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho pi-hole/api. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
pi-hole/api có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho pi-hole/api. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
pi-hole/api còn đang phát triển không?
Commit gần nhất trên pi-hole/api là 6.5 năm trước (theo timestamp GitHub). Repo có 22 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về api?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về api.