Repository navigation
feat(api): sharing NG links - #7743
Merged
Merged
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
micbar
force-pushed
the
sharing-ng-links
branch
7 times, most recently
from
November 21, 2023 21:44
ce2a96a to
2bf00c9
Compare
micbar
force-pushed
the
sharing-ng-links
branch
2 times, most recently
from
November 25, 2023 09:36
3ebf71f to
e7cb21b
Compare
micbar
marked this pull request as ready for review
November 25, 2023 10:11
fschade
suggested changes
Nov 27, 2023
fschade
left a comment
Contributor
There was a problem hiding this comment.
a few minor things, but im not able to create a link via the api, see comment. Any reva changes needed?
micbar
force-pushed
the
sharing-ng-links
branch
from
November 27, 2023 21:24
44a4c9f to
5e4bcb9
Compare
|
Kudos, SonarCloud Quality Gate passed! |
fschade
approved these changes
Nov 28, 2023
3 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








This adds the implementation for the new libregraph create link endpoint. We also added the needed LibreGraph to CS3 conversions for both directions.
Description
Currently out of Scope
Examples
We have the following link Types defined:
Create an internal link
Response
It returns a single libregraph
permissionobject.[ { "id": "bQTPAtcLHJaMWgC", "link": { "@libre.graph.displayName": "Internal Link", "@libre.graph.quickLink": false, "preventsDownload": false, "type": "internal", "webUrl": "https://localhost:9200/s/HEqCVsRGYyqFAOb" } } ]Create an "edit" link with password and expiration date and set it as "quicklink"
Response
[ { "expirationDateTime": "2023-12-01T15:00:00+01:00", "id": "xEihvNfwyFYBSvj", "link": { "@libre.graph.displayName": "Edit Link 2", "@libre.graph.quickLink": true, "preventsDownload": false, "type": "edit", "webUrl": "https://localhost:9200/s/rkxqsKVVOnxAiiq" } } ]List "SharedByMe"
Response
It now lists
{ "value": [ { "eTag": "\"e0196954e810a4ba2bcac3cd096a9056\"", "file": { "mimeType": "text/plain" }, "id": "storage-users-1$some-admin-user-id-0000-000000000000!9cce03e2-e5f9-4e4d-8cb9-dede0de5864a", "lastModifiedDateTime": "2023-11-07T23:47:34.691995+01:00", "name": "New file.txt", "parentReference": { "driveId": "storage-users-1$some-admin-user-id-0000-000000000000", "driveType": "personal", "id": "storage-users-1$some-admin-user-id-0000-000000000000!some-admin-user-id-0000-000000000000" }, "permissions": [ { "grantedToV2": { "user": { "displayName": "Maurice Moss", "id": "058bff95-6708-4fe5-91e4-9ea3d377588b" } }, "id": "storage-users-1:some-admin-user-id-0000-000000000000:8fa31297-66e1-462d-b578-7d4609f0f7e6", "roles": [ "b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5" ] }, { "grantedToV2": { "group": { "displayName": "physics-lovers", "id": "262982c1-2362-4afa-bfdf-8cbfef64a06e" } }, "id": "storage-users-1:some-admin-user-id-0000-000000000000:cdfe5992-3c24-46fd-9e72-7d99c32f76b3", "roles": [ "2d00ce52-1fc2-4dbc-8b95-a73b73395f5a" ] }, { "grantedToV2": { "user": { "displayName": "Marie Skłodowska Curie", "id": "f7fbf8c8-139b-4376-b307-cf0a8c2d0d9c" } }, "id": "storage-users-1:some-admin-user-id-0000-000000000000:f0df6dd1-3c72-4af4-890b-081cb3b27cca", "roles": [ "b1e2218d-eef8-4d4c-b82d-0f1a1b48f3b5" ] }, { "expirationDateTime": "2023-11-30T23:59:59+01:00", "id": "ffxjKOjUkweFvWI", "link": { "@libre.graph.displayName": "Link", "@libre.graph.quickLink": true, "preventsDownload": false, "type": "edit", "webUrl": "https://localhost:9200/s/PvurbCSDdCCTRau" } } ], "size": 4 } ] }Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: