Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group Search API #268

Merged
merged 2 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions openapi/components/paths/groups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,26 @@ info:
description: Group Docs Here
paths:
/groups:
get:
summary: Search Group
description: Searches Groups by name or shortCode
operationId: searchGroups
tags:
- groups
parameters:
- in: query
name: query
schema:
type: string
required: false
description: Query to search for, can be either Group Name or Group shortCode
- $ref: ../parameters.yaml#/offset
- $ref: ../parameters.yaml#/number
responses:
'200':
$ref: ../responses/groups/LimitedGroupListResponse.yaml
'401':
$ref: ../responses/MissingCredentialsError.yaml
post:
summary: Create Group
description: Creates a Group and returns a Group object. **Requires VRC+ Subscription.**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
description: Returns a list of LimitedGroup objects.
content:
application/json:
schema:
type: array
items:
$ref: ../../schemas/LimitedGroup.yaml
49 changes: 49 additions & 0 deletions openapi/components/schemas/LimitedGroup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
title: LimitedGroup
type: object
properties:
id:
$ref: ./GroupID.yaml
name:
type: string
shortCode:
$ref: ./GroupShortCode.yaml
discriminator:
$ref: ./GroupDiscriminator.yaml
description:
type: string
iconUrl:
type: string
nullable: true
bannerUrl:
type: string
nullable: true
ownerId:
$ref: ./UserID.yaml
rules:
type: string
nullable: true
iconId:
type: string
nullable: true
bannerId:
type: string
nullable: true
memberCount:
type: integer
tags:
description: ' '
type: array
items:
$ref: ./Tag.yaml
createdAt:
type: string
format: date-time
membershipStatus:
$ref: ./GroupMemberStatus.yaml
isSearchable:
type: boolean
galleries:
description: ' '
type: array
items:
$ref: ./GroupGallery.yaml