I tried to make my Micro.blog API Client with simple - yet testable - interfaces 👨‍💻. Uploading a photo’s straight-forward:

let mediaRequest = MicropubRequestFactory.makeUploadRequest(
    media: .jpeg(jpegData)
)
let uploadResponse = try await client.run(mediaRequest)
Otavio Cordeiro @otaviocc