iOS: read the API in protobuf #468

Closed
opened 2026-11-16 14:22:56 -08:00 by rays · 1 comment
Owner

Since #465 ipx answers every /api route in protobuf for a client sending Accept: application/x-protobuf, with the messages in crates/wire/proto/ipx.proto. The app's native calls (API.get in Badge and CarScreen: /api/feeds, /api/entries, /api/feeds/{id}/entries; Playback's /api/me and position saves through Outbox) still ask for JSON. Switching them needs SwiftProtobuf in ios/project.yml and Swift generated from ipx.proto with protoc-gen-swift, which only the Mac can do. The page in the web view stays on JSON.

Since #465 ipx answers every /api route in protobuf for a client sending Accept: application/x-protobuf, with the messages in crates/wire/proto/ipx.proto. The app's native calls (API.get in Badge and CarScreen: /api/feeds, /api/entries, /api/feeds/{id}/entries; Playback's /api/me and position saves through Outbox) still ask for JSON. Switching them needs SwiftProtobuf in ios/project.yml and Swift generated from ipx.proto with protoc-gen-swift, which only the Mac can do. The page in the web view stays on JSON.
rays added the enhancement label 2026-11-16 14:22:56 -08:00
rays added duplicate and removed enhancement labels 2026-11-16 16:05:40 -08:00
Author
Owner

Duplicate of #469, done in baa6661.

Duplicate of #469, done in baa6661.
rays closed this issue 2026-11-16 16:05:41 -08:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: rays/ipx#468