Repository navigation
Can I write my own client against the server's API, and should it use v1 or v2? #602
Answered
by
lumenpearson
lumenpearson
asked this question in
Q&A
|
I would like to read a class's timetable from my own program, such as a script or another app. The server has |
Answered by
lumenpearson
Oct 17, 2026
Replies: 1 comment
|
State: main at Yes, any client may call a deployment's API. The operator of that deployment decides who gets a code. Build on v2.
More: https://github.com/lumenpearson/lessons/blob/main/docs/api.md#v2-the-contract and https://github.com/lumenpearson/lessons/blob/main/docs/api.md#not-in-v2-on-purpose |
0 replies
Answer selected by
lumenpearson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
State: main at
4c93edb4, 1 November 2026: v0.10.0 in progress, nothing released. The current list of what v2 serves on each transport is at https://github.com/lumenpearson/lessons/blob/main/docs/api.md#v2-the-contract.Yes, any client may call a deployment's API. The operator of that deployment decides who gets a code. Build on v2.
/api/v1once the app moves to v2 (sub-project 5 of #273). v1 has no way to retire an old client.proto/lessons/v2/(packagelessons.v2). Every deployment serves all seventy-five of its unary methods beside v1. The comments in the proto files are the reference. Generate a client from the proto files with Buf, in any languag…