iOS: read the API in protobuf #468
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
Duplicate of #469, done in
baa6661.