eiknat / lemmy-client Goto Github PK
View Code? Open in Web Editor NEWa kotlin multiplaform client api for lemmy
License: GNU Affero General Public License v3.0
a kotlin multiplaform client api for lemmy
License: GNU Affero General Public License v3.0
the ktor http client throws exceptions when receiving non-200 responses.
we don't want to pass these exceptions back to the caller, so we should handle errors gracefully.
There's a pretty base implementation there, it's enough to make us able to send requests, but it's probably not optimal.
For info, please check out ktor's websocket documentation.
Need to add the search forms/responses/http api code
object exists, just has no usable code in it :)
Just a note, that there will be some API changes around how edits, deletes, removes, locks, stickies etc work, once this PR gets merged: LemmyNet/lemmy#997
Viewing a git diff of the docs/src/contributing_websocket_http_api
will show these changes.
Not all callers are going to want to use websockets, we should also provide a standard http route
reuse the same values as here:
https://github.com/LemmyNet/lemmy-js-client/blob/47cc65ad69e856c6af5c7dde2d96be90a9daf4e1/src/interfaces.ts#L62
the forms have these as strings or ints right now, make sure to replace those.
Forgot to remove some imports.
Need to create a User
data class as well
possibly don't need platform specific stuff here, the only thing that really requires that is the base API class, since it will need to handle platform specific coroutines.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.