Skip to content

Commit 8a2b91a

Browse files
committed
Improve documentation
1 parent 303bf91 commit 8a2b91a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/api/base_api.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ import 'package:stelaris/api/paginated_result.dart';
99
/// This class assumes that the API endpoints and request/response formats follow a specific and consistent pattern across all models using this base.
1010
///
1111
/// For example, it expects the following endpoint structure for each model type:
12-
/// - GET /<endpoint>
13-
/// - POST /<endpoint>
14-
/// - GET /<endpoint>/all
15-
/// - POST /<endpoint>/update
16-
/// - DELETE /<endpoint>/delete/<id>
12+
/// - GET `/endpoint`
13+
/// - POST `/endpoint`
14+
/// - GET `/endpoint/all`
15+
/// - POST `/endpoint/update`
16+
/// - DELETE `/endpoint/delete/{id}`
1717
///
1818
/// Only use this base class when your API strictly adheres to this pattern for all CRUD operations. If your endpoints or data formats differ, consider implementing a custom service instead.
1919
///

lib/api/converter/paginated_result_converter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import 'package:freezed_annotation/freezed_annotation.dart';
22
import 'package:stelaris/api/model/data_model.dart';
33
import 'package:stelaris/api/paginated_result.dart';
44

5-
/// A generic JSON converter for any PaginatedResult<T>.
5+
/// A generic JSON converter for any PaginatedResult`<T>`.
66
/// - T must extend DataModel. The converter does not require T to have fromJson or toJson methods; instead, these must be provided via function parameters.
77
/// It requires two functions to be passed to its constructor:
88
/// - [fromJsonT]: A function that can convert a JSON map into an object of type T.

0 commit comments

Comments
 (0)