trident_generator 1.0.2 icon indicating copy to clipboard operation
trident_generator: ^1.0.2 copied to clipboard

API generator like retrofit.

trident_generator #

trident_generator can generate restful api by simple ways, use with trident, a example is [telebot](https://pub .dev/packages/telebot).

Part Example from telebot #

@Trident()
abstract class TelegramBotClient {
  
  @GET("/getUpdates")
  Future<List<Update>> getUpdates(
      {@Query("offset") int offset,
      @Query("limit") int limit,
      @Query("timeout") int timeout,
      @Query("allowed_updates") List<String> allowedUpdates});

  @GET("/setWebhook")
  Future<bool> setWebhook(
      {@Query("url") @required String url,
      @Query("certificate") File certificate,
      @Query("max_connections") int maxConnections,
      @Query("allowed_updates") List<String> allowedUpdates});

  @GET("/deleteWebhook")
  Future<bool> deleteWebhook();

  @GET("/getWebhookInfo")
  Future<WebhookInfo> getWebhookInfo();

  @GET("/getMe")
  Future<User> getMe();
}
0
likes
50
pub points
0%
popularity

Publisher

unverified uploader

API generator like retrofit.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.Apache-2.0 (LICENSE)

Dependencies

analyzer, build, dartpoet, dio, json_annotation, named_mode, source_gen, trident, xfile

More

Packages that depend on trident_generator