Skip to content

Commit

Permalink
Endpoint for pending invites - Extended response
Browse files Browse the repository at this point in the history
  • Loading branch information
gevorgmansuryan committed Jul 24, 2024
1 parent cbb92e5 commit 8114bfc
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 33 deletions.
6 changes: 1 addition & 5 deletions definitions/InviteDefinitions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@

class InviteDefinitions
{
/**
* @param Invite|\humhub\modules\rest\models\Invite $invite
* @return array
*/
public static function getInvite(Invite $invite)
public static function getInvite(Invite $invite): array
{
return [
'id' => $invite->id,
Expand Down
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Changelog
- Enh #155: Add `requirements.php`
- Fix #164: Disable `mustChangePassword` check for impersonated access tokens
- Enh #170: Added new endpoint `GET /user/invite` for user pending invites
- Enh #171: Extended invite information in response of `GET /user/invite` endpoint

0.9.3 (December 8, 2023)
------------------------
Expand Down
4 changes: 2 additions & 2 deletions docs/html/user.html

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions docs/swagger/user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -774,3 +774,35 @@ definitions:
type: string
readOnly: true
example: [email protected]
firstname:
type: string
readOnly: true
example: John
lastname:
type: string
readOnly: true
example: Doe
language:
type: string
readOnly: true
example: English
space:
readOnly: true
$ref: "space.yaml#/definitions/SpaceShort"
originator:
readOnly: true
$ref: "user.yaml#/definitions/UserShort"
createdBy:
readOnly: true
$ref: "user.yaml#/definitions/UserShort"
updatedBy:
readOnly: true
$ref: "user.yaml#/definitions/UserShort"
createdAt:
type: string
format: datetime
example: "2024-09-11 08:46:40"
updatedAt:
type: string
format: datetime
example: "2024-09-15 08:46:40"
25 changes: 0 additions & 25 deletions models/Invite.php

This file was deleted.

2 changes: 1 addition & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"version": "0.10.0",
"homepage": "https://github.com/humhub/rest",
"humhub": {
"minVersion": "1.16"
"minVersion": "1.16.2"
},
"screenshots": []
}

0 comments on commit 8114bfc

Please sign in to comment.