endpoints static method

Map<String, ApiEndpoint> endpoints()

Implementation

static Map<String, ApiEndpoint> endpoints() => {
      "login": UserManagementApi(
        method: "POST",
        url: "/auth/login",
        validStatusCode: 200,
      ),
      "getUserProfile": UserManagementApi(
        method: "GET",
        url: "/users/profile",
        validStatusCode: 200,
      ),
      "updateUserProfile": UserManagementApi(
        method: "PUT",
        url: "/users/profile",
        validStatusCode: 200,
      ),
      "changePassword": UserManagementApi(
        method: "POST",
        url: "/users/change-password",
        validStatusCode: 200,
      ),
    };