Skip to content

Commit

Permalink
Merge pull request #62 from owncloud/graph-tags
Browse files Browse the repository at this point in the history
add tags endpoints
  • Loading branch information
fschade committed Dec 15, 2022
1 parent 74ad243 commit 8f14dfd
Show file tree
Hide file tree
Showing 12 changed files with 1,234 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ api_me_drive_root.go
api_me_drive_root_children.go
api_me_drives.go
api_me_user.go
api_tags.go
api_user.go
api_users.go
client.go
Expand All @@ -28,6 +29,7 @@ docs/CollectionOfDrives.md
docs/CollectionOfEducationUser.md
docs/CollectionOfGroup.md
docs/CollectionOfSchools.md
docs/CollectionOfTags.md
docs/CollectionOfUser.md
docs/Deleted.md
docs/DirectoryObject.md
Expand Down Expand Up @@ -75,6 +77,9 @@ docs/Quota.md
docs/RemoteItem.md
docs/Shared.md
docs/SpecialFolder.md
docs/TagAssignment.md
docs/TagUnassignment.md
docs/TagsApi.md
docs/Trash.md
docs/User.md
docs/UserApi.md
Expand All @@ -90,6 +95,7 @@ model_collection_of_drives.go
model_collection_of_education_user.go
model_collection_of_group.go
model_collection_of_schools.go
model_collection_of_tags.go
model_collection_of_user.go
model_deleted.go
model_directory_object.go
Expand Down Expand Up @@ -123,6 +129,8 @@ model_quota.go
model_remote_item.go
model_shared.go
model_special_folder.go
model_tag_assignment.go
model_tag_unassignment.go
model_trash.go
model_user.go
response.go
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ Class | Method | HTTP request | Description
*MeDriveRootChildrenApi* | [**HomeGetChildren**](docs/MeDriveRootChildrenApi.md#homegetchildren) | **Get** /me/drive/root/children | Get children from drive
*MeDrivesApi* | [**ListMyDrives**](docs/MeDrivesApi.md#listmydrives) | **Get** /me/drives | Get drives from me
*MeUserApi* | [**GetOwnUser**](docs/MeUserApi.md#getownuser) | **Get** /me | Get current user
*TagsApi* | [**AssignTags**](docs/TagsApi.md#assigntags) | **Put** /extensions/org.libregraph/tags | Assign tags to a resource
*TagsApi* | [**GetTags**](docs/TagsApi.md#gettags) | **Get** /extensions/org.libregraph/tags | Get all known tags
*TagsApi* | [**UnassignTags**](docs/TagsApi.md#unassigntags) | **Delete** /extensions/org.libregraph/tags | Unassign tags from a resource
*UserApi* | [**DeleteUser**](docs/UserApi.md#deleteuser) | **Delete** /users/{user-id} | Delete entity from users
*UserApi* | [**GetUser**](docs/UserApi.md#getuser) | **Get** /users/{user-id} | Get entity from users by key
*UserApi* | [**UpdateUser**](docs/UserApi.md#updateuser) | **Patch** /users/{user-id} | Update entity in users
Expand All @@ -135,6 +138,7 @@ Class | Method | HTTP request | Description
- [CollectionOfEducationUser](docs/CollectionOfEducationUser.md)
- [CollectionOfGroup](docs/CollectionOfGroup.md)
- [CollectionOfSchools](docs/CollectionOfSchools.md)
- [CollectionOfTags](docs/CollectionOfTags.md)
- [CollectionOfUser](docs/CollectionOfUser.md)
- [Deleted](docs/Deleted.md)
- [DirectoryObject](docs/DirectoryObject.md)
Expand Down Expand Up @@ -168,6 +172,8 @@ Class | Method | HTTP request | Description
- [RemoteItem](docs/RemoteItem.md)
- [Shared](docs/Shared.md)
- [SpecialFolder](docs/SpecialFolder.md)
- [TagAssignment](docs/TagAssignment.md)
- [TagUnassignment](docs/TagUnassignment.md)
- [Trash](docs/Trash.md)
- [User](docs/User.md)

Expand Down
105 changes: 105 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1936,8 +1936,77 @@ paths:
summary: Unassign user from a class
tags:
- educationClass
/extensions/org.libregraph/tags:
delete:
operationId: UnassignTags
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/tagUnassignment'
responses:
"200":
description: No content
default:
content:
application/json:
schema:
$ref: '#/components/schemas/odata.error'
description: error
summary: Unassign tags from a resource
tags:
- tags
get:
operationId: GetTags
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/Collection_of_tags'
description: Retrieved tags
default:
content:
application/json:
schema:
$ref: '#/components/schemas/odata.error'
description: error
summary: Get all known tags
tags:
- tags
put:
operationId: AssignTags
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/tagAssignment'
responses:
"200":
description: No content
default:
content:
application/json:
schema:
$ref: '#/components/schemas/odata.error'
description: error
summary: Assign tags to a resource
tags:
- tags
components:
examples:
tags_put:
value:
resourceId: 7f92b0a9-06ad-49dc-890f-0e0a6eb4dea6$e9f01ca3-577f-4d1d-acd4-1cc44149ac25!5fb9f87c-a317-467b-9882-eb9f171564ac
tags:
- tag_to_assign_1
- tag_to_assign_2
tags_delete:
value:
resourceId: 7f92b0a9-06ad-49dc-890f-0e0a6eb4dea6$e9f01ca3-577f-4d1d-acd4-1cc44149ac25!5fb9f87c-a317-467b-9882-eb9f171564ac
tags:
- tag_to_unassign_1
- tag_to_unassign_2
educationUser:
value:
id: 90eedea1-dea1-90ee-a1de-ee90a1deee90
Expand Down Expand Up @@ -2088,6 +2157,30 @@ components:
type: string
readOnly: true
type: object
tagAssignment:
properties:
resourceId:
type: string
tags:
items:
type: string
type: array
required:
- resourceId
- tags
type: object
tagUnassignment:
properties:
resourceId:
type: string
tags:
items:
type: string
type: array
required:
- resourceId
- tags
type: object
educationOrganization:
description: Abstract. Represents an organization in educational context
properties:
Expand Down Expand Up @@ -91069,6 +91162,18 @@ components:
type: string
title: Class Member Reference
type: object
Collection_of_tags:
example:
value:
- value
- value
properties:
value:
items:
type: string
type: array
title: Collection of tags
type: object
securitySchemes:
openId:
openIdConnectUrl: https://ocis.ocis-traefik.latest.owncloud.works/.well-known/openid-configuration
Expand Down
Loading

0 comments on commit 8f14dfd

Please sign in to comment.