serverpod_endpoints_generator

Last updated:

0 purchases

serverpod_endpoints_generator Image
serverpod_endpoints_generator Images
Add to Cart

Description:

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

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.