Removing parameters
for XRPC procedures
#2406
Replies: 1 comment 2 replies
-
One common use for query parameters on an HTTP Alternatives for upload metadata are adding additional HTTP headers; using multipart/form uploads; and putting upload bodies in JSON using base64 encoding (or similar). None of those feel like great options. As an aside, a related question is whether atproto would ever support the proposed HTTP |
Beta Was this translation helpful? Give feedback.
-
The Lexicon spec currently allows both
query
andprocedure
endpoints to specify aparameters
type. This means that aprocedure
(HTTP POST) could specify two input types: one for the URI query string (parameters
) and one for the request body (input
).In practice, this doesn’t seem to be in use anywhere in the Bluesky-published lexicons – there are 66
query
entries withparameters
, 46procedure
s with aninput
, but 0procedure
s withparameters
.Is there a rationale for permitting both
parameters
andinput
onprocedure
endpoints? I’m working on an AT protocol / Bluesky client in Rust, and I could simplify code generation and make it more idiomatic if I could assume that aprocedure
will only specify aninput
, and neverparameters
. (The atrium project already makes this assumption.)Beta Was this translation helpful? Give feedback.
All reactions