4. System Service
Accessed via client.system(). V5 provides only a single health check.
4.1 Methods
| Method | Return Type | HTTP | Endpoint |
|---|---|---|---|
ping() | SystemPingResponseV5 (or null) | GET | /api/v5/ping |
4.2 SystemPingResponseV5 DTO
| Field | Type | Description |
|---|---|---|
ping | boolean | Server response availability (true = normal) |
version | String | Server version (e.g., "5.0") |
4.3 Usage Example
import plantpulse.api.v5.dto.response.SystemPingResponseV5;
SystemPingResponseV5 ping = client.system().ping();
if (ping == null) {
System.err.println("서버 응답 없음 — 네트워크 또는 인증 확인");
return;
}
System.out.println("서버 가용: " + ping.isPing());
System.out.println("서버 버전: " + ping.getVersion());
ping() is well suited for use as a health check immediately after connect() completes.
Next Steps
- Site Service — Registering your first site