Skip to content

Commit

Permalink
chore: add more example calls
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Jun 8, 2024
1 parent d1a5f99 commit 442e7a5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/alice_chopper/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ class _MyAppState extends State<MyApp> {
userId: 1,
);

postService.getExamplePost('1');
postService.createExamplePost(post);
postService.getExamplePost('1');
postService.updateExamplePost('1', post);
postService.deleteExamplePost('1');
postService.updateExamplePost('123456', post);
postService.getExamplePost('123456');
postService.deleteExamplePost('123456');
}

void _runHttpInspector() {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ abstract class ExamplePostsService extends ChopperService {
@Path() String id,
@Body() ExamplePost body,
);

@Delete(path: '/{id}', timeout: Duration(seconds: 10))
Future<Response<void>> deleteExamplePost(@Path() String id);
}

0 comments on commit 442e7a5

Please sign in to comment.