Last updated:
0 purchases
serverpod endpoints generator
Serverpod Endpoints Generator #
[![style: very good analysis][very_good_analysis_badge]][very_good_analysis_link]
[![License: MIT][license_badge]][license_link]
Endpoint generator for serverpod
Installation 💻 #
Install via dart pub add:
dart pub add serverpod_endpoints_annotation
dart pub add serverpod_endpoints_generator --dev
copied to clipboard
#
to generate an endpoint you must create a dart file eg user.dart under lib/src/endpoints/ dir
STEP1 #
//user.dart
import 'package:serverpod_endpoints_annotation/serverpod_endpoints_annotation.dart';
@EndpointGen(model:User)
class UserModelAdmin extends ModelAdmin{
//
}
copied to clipboard
STEP2 #
run build runner command
dart run build_runner build -d
then user.gen_endpoint.dart will be generated
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.