mirror of
https://github.com/gosticks/open-project-flutter-api.git
synced 2025-10-16 11:55:34 +00:00
103 lines
3.5 KiB
Dart
103 lines
3.5 KiB
Dart
//
|
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
//
|
|
// @dart=2.12
|
|
|
|
// ignore_for_file: unused_element, unused_import
|
|
// ignore_for_file: always_put_required_named_parameters_first
|
|
// ignore_for_file: constant_identifier_names
|
|
// ignore_for_file: lines_longer_than_80_chars
|
|
|
|
import 'package:openapi/api.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
|
|
/// tests for MembershipsApi
|
|
void main() {
|
|
// final instance = MembershipsApi();
|
|
|
|
group('tests for MembershipsApi', () {
|
|
// Available projects for memberships
|
|
//
|
|
// Gets a list of projects in which a membership can be created in. The list contains all projects in which the user issuing the request has the manage members permissions.
|
|
//
|
|
//Future<Object> availableProjectsForMemberships() async
|
|
test('test availableProjectsForMemberships', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Create membership
|
|
//
|
|
// Creates a new membership applying the attributes provided in the body. You can use the form and schema to retrieve the valid attribute values and by that be guided towards successful creation. By providing a `notificationMessage` within the `_meta` block of the payload, the client can include a customized message to the user of the newly created membership. In case of a group, the message will be sent to every user belonging to the group. By including `{ \"sendNotifications\": false }` within the `_meta` block of the payload, no notifications is send out at all.
|
|
//
|
|
//Future<Object> createMembership() async
|
|
test('test createMembership', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Delete membership
|
|
//
|
|
// Deletes the membership.
|
|
//
|
|
//Future deleteMembership(int id) async
|
|
test('test deleteMembership', () async {
|
|
// TODO
|
|
});
|
|
|
|
// List memberships
|
|
//
|
|
// Returns a collection of memberships. The client can choose to filter the memberships similar to how work packages are filtered. In addition to the provided filters, the server will reduce the result set to only contain memberships, for which the requesting client has sufficient permissions (*view_members*, *manage_members*).
|
|
//
|
|
//Future<Object> listMemberships({ String filters, String sortBy }) async
|
|
test('test listMemberships', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Membership create form
|
|
//
|
|
//
|
|
//
|
|
//Future membershipCreateForm() async
|
|
test('test membershipCreateForm', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Membership update form
|
|
//
|
|
//
|
|
//
|
|
//Future membershipUpdateForm(int id) async
|
|
test('test membershipUpdateForm', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Update membership
|
|
//
|
|
// Updates the given membership by applying the attributes provided in the body. By providing a `notificationMessage` within the `_meta` block of the payload, the client can include a customized message to the user of the updated membership. In case of a group, the message will be sent to every user belonging to the group. By including `{ \"sendNotifications\": false }` within the `_meta` block of the payload, no notifications is send out at all.
|
|
//
|
|
//Future<Object> updateMembership(int id) async
|
|
test('test updateMembership', () async {
|
|
// TODO
|
|
});
|
|
|
|
// View membership
|
|
//
|
|
//
|
|
//
|
|
//Future<Object> viewMembership(int id) async
|
|
test('test viewMembership', () async {
|
|
// TODO
|
|
});
|
|
|
|
// View membership schema
|
|
//
|
|
//
|
|
//
|
|
//Future<Object> viewMembershipSchema() async
|
|
test('test viewMembershipSchema', () async {
|
|
// TODO
|
|
});
|
|
|
|
});
|
|
}
|