You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using this library with React and Vue and it's working great but now I may need to connect a Flutter app with my Laravel APIs, has someone had the necessity to use the Typescript SDK on mobile, I think is possible with React native but Flutter has been growing in popularity and I think an SDK for it will keep my APIs and Client apps web and mobile on sync.
Let me know your thoughts, I can create a prototype and work on it if anyone is interested.
Example idea 💡
import 'orion.dart';
import 'model.dart';
import 'post.dart';
void main() async {
Orion.init('https://jsonplaceholder.typicode.com');
// Retrieve a list of posts
List<Map<String, dynamic>> posts = await Post(attributes: {}).query().get();
// Create a new post
Post newPost = Post(attributes: {'title': 'New Post', 'body': 'Post content'});
await newPost.$save();
print(newPost.attributes['title']);
// Retrieve a post
Map<String, dynamic> post = await Post(attributes: {}).query().find(1);
print(post['title']);
// Update a post
newPost.attributes['title'] = 'Updated Post Title';
await newPost.$save();
// Delete a post
await newPost.$destroy();
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been using this library with React and Vue and it's working great but now I may need to connect a Flutter app with my Laravel APIs, has someone had the necessity to use the Typescript SDK on mobile, I think is possible with React native but Flutter has been growing in popularity and I think an SDK for it will keep my APIs and Client apps web and mobile on sync.
Let me know your thoughts, I can create a prototype and work on it if anyone is interested.
Example idea 💡
Beta Was this translation helpful? Give feedback.
All reactions