-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delegation journey documentation (#5025)
* Delegation journey documentation * Fix reference * Add request/response examples and edit --------- Co-authored-by: Simon <simon.dumas@protonmail.com>
- Loading branch information
Showing
7 changed files
with
242 additions
and
15 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
docs/src/main/paradox/docs/delta/api/assets/files/delegate-create-post.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"@context" : [ | ||
"https://bluebrain.github.io/nexus/contexts/files.json", | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json" | ||
], | ||
"@id" : "http://delta:8080/v1/resources/fcp5xcw67hittxm/loeu5kgu48i8tw7/_/1205b629-2a73-4891-abff-140a64e9c391", | ||
"@type" : "File", | ||
"description" : "a description of the file", | ||
"name" : "My File", | ||
"_bytes" : 29625, | ||
"_constrainedBy" : "https://bluebrain.github.io/nexus/schemas/files.json", | ||
"_createdAt" : "2024-06-14T12:53:38.516222Z", | ||
"_createdBy" : "http://delta:8080/v1/realms/test-pmcfwjobxkuvebro/users/fwhbqlnnhqncpsqk", | ||
"_deprecated" : false, | ||
"_digest" : { | ||
"_algorithm" : "SHA-256", | ||
"_value" : "05bf442810213b9e5fecd5242eefeff1f3d207913861c96658c75ccf58997e87" | ||
}, | ||
"_filename" : "myfile.png", | ||
"_incoming" : "http://delta:8080/v1/files/fcp5xcw67hittxm/loeu5kgu48i8tw7/http:%2F%2Fdelta:8080%2Fv1%2Fresources%2Ffcp5xcw67hittxm%2Floeu5kgu48i8tw7%2F_%2F1205b629-2a73-4891-abff-140a64e9c391/incoming", | ||
"_keywords" : { | ||
"key1" : "value1", | ||
"key2" : "value2" | ||
}, | ||
"_location" : "myprefix/fcp5xcw67hittxm/loeu5kgu48i8tw7/files/f/f/9/5/3/4/c/2/ngbeydtjyibvcanj", | ||
"_mediaType" : "image/png", | ||
"_origin" : "External", | ||
"_outgoing" : "http://delta:8080/v1/files/fcp5xcw67hittxm/loeu5kgu48i8tw7/http:%2F%2Fdelta:8080%2Fv1%2Fresources%2Ffcp5xcw67hittxm%2Floeu5kgu48i8tw7%2F_%2F1205b629-2a73-4891-abff-140a64e9c391/outgoing", | ||
"_project" : "http://delta:8080/v1/projects/fcp5xcw67hittxm/loeu5kgu48i8tw7", | ||
"_rev" : 1, | ||
"_self" : "http://delta:8080/v1/files/fcp5xcw67hittxm/loeu5kgu48i8tw7/http:%2F%2Fdelta:8080%2Fv1%2Fresources%2Ffcp5xcw67hittxm%2Floeu5kgu48i8tw7%2F_%2F1205b629-2a73-4891-abff-140a64e9c391", | ||
"_storage" : { | ||
"@id" : "https://bluebrain.github.io/nexus/vocabulary/mys3storage", | ||
"@type" : "S3Storage", | ||
"_rev" : 3 | ||
}, | ||
"_updatedAt" : "2024-06-14T12:53:38.516222Z", | ||
"_updatedBy" : "http://delta:8080/v1/realms/test-pmcfwjobxkuvebro/users/fwhbqlnnhqncpsqk", | ||
"_uuid" : "c96a229c-8d1d-46a5-8f47-08555fd98cb3" | ||
} |
8 changes: 8 additions & 0 deletions
8
docs/src/main/paradox/docs/delta/api/assets/files/delegate-create-post.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
curl -X POST \ | ||
-H "Content-Type: application/json" \ | ||
"http://localhost:8080/v1/delegate/files/myorg/myproject?storage=mys3storage" -d \ | ||
'{ | ||
"protected" : "eyJleHAiOjE3MTg2Mjg1NDUsImFsZyI6IlJTMjU2In0", | ||
"payload" : "eyJidWNrZXQiOiJqNDc4M2NjNWFkY2F1a3UiLCJwYXRoIjoibXlwcmVmaXgvYTE0bTYxZWgzajVuNzVjLzhrbXlpb2QyMzM1MnhpZC9maWxlcy9iLzIvOS80LzMvYy9jLzYvaG5qeXR3b2x0ZnVyc2JlaCIsIm1lZGlhVHlwZSI6ImltYWdlL2RhbiIsIm1ldGFkYXRhIjp7ImRlc2NyaXB0aW9uIjoicnByZndzdWpveGJpaXllaSIsImtleXdvcmRzIjp7ImtvZXZvd3Bsc3Jld2NlZGIiOiJ2dnNlaW9wa3Z5Y3d1dG1oIn0sIm5hbWUiOiJmbW94dHh3a3JvdWhtZG90In0sImlkIjoiaHR0cDovL2RlbHRhOjgwODAvdjEvcmVzb3VyY2VzL2ExNG02MWVoM2o1bjc1Yy84a215aW9kMjMzNTJ4aWQvXy9hNGE5ODE2Mi1jYTNmLTQ2YmUtYWUxMC00MzJjYTZmOTdjNGYifQ", | ||
"signature" : "htQLymfQIrks7MejErb4v3mnhQT2W6iPZdkd7LVBPJ0Ksybj8XG8dbTJH5pjZJF7-HXi848R14tquZ6iSeXpEqFGiZYge8obPQRLpJA0qbc9Mmhlq-CTbIdsy5OFpdzcDadSj6_k_kzuU2PR-Fli9GtH-34z2d4C9dWsBmnUo_IA3dvSFCF_PaQuajo7cJYa_0yc4VVGKG-xYi9yV4ylD5D2cxMUDFun78NOKDD_2upF-kuf9t5E-NjCl0DffkelbqYuH6nMop2zmwfu-cwHnChaDwKM7HLJGLomD5duU5sq-mVsunnMy58NgzMecLGDbER-27zk7w0TwxkXTKfxWg" | ||
}' |
5 changes: 5 additions & 0 deletions
5
docs/src/main/paradox/docs/delta/api/assets/files/delegate-validate-post.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"protected" : "eyJleHAiOjE3MTg2Mjg1NDUsImFsZyI6IlJTMjU2In0", | ||
"payload" : "eyJidWNrZXQiOiJqNDc4M2NjNWFkY2F1a3UiLCJwYXRoIjoibXlwcmVmaXgvYTE0bTYxZWgzajVuNzVjLzhrbXlpb2QyMzM1MnhpZC9maWxlcy9iLzIvOS80LzMvYy9jLzYvaG5qeXR3b2x0ZnVyc2JlaCIsIm1lZGlhVHlwZSI6ImltYWdlL2RhbiIsIm1ldGFkYXRhIjp7ImRlc2NyaXB0aW9uIjoicnByZndzdWpveGJpaXllaSIsImtleXdvcmRzIjp7ImtvZXZvd3Bsc3Jld2NlZGIiOiJ2dnNlaW9wa3Z5Y3d1dG1oIn0sIm5hbWUiOiJmbW94dHh3a3JvdWhtZG90In0sImlkIjoiaHR0cDovL2RlbHRhOjgwODAvdjEvcmVzb3VyY2VzL2ExNG02MWVoM2o1bjc1Yy84a215aW9kMjMzNTJ4aWQvXy9hNGE5ODE2Mi1jYTNmLTQ2YmUtYWUxMC00MzJjYTZmOTdjNGYifQ", | ||
"signature" : "htQLymfQIrks7MejErb4v3mnhQT2W6iPZdkd7LVBPJ0Ksybj8XG8dbTJH5pjZJF7-HXi848R14tquZ6iSeXpEqFGiZYge8obPQRLpJA0qbc9Mmhlq-CTbIdsy5OFpdzcDadSj6_k_kzuU2PR-Fli9GtH-34z2d4C9dWsBmnUo_IA3dvSFCF_PaQuajo7cJYa_0yc4VVGKG-xYi9yV4ylD5D2cxMUDFun78NOKDD_2upF-kuf9t5E-NjCl0DffkelbqYuH6nMop2zmwfu-cwHnChaDwKM7HLJGLomD5duU5sq-mVsunnMy58NgzMecLGDbER-27zk7w0TwxkXTKfxWg" | ||
} |
15 changes: 15 additions & 0 deletions
15
docs/src/main/paradox/docs/delta/api/assets/files/delegate-validate-post.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
curl -X POST \ | ||
-H "Content-Type: application/json" \ | ||
"http://localhost:8080/v1/delegate/files/myorg/myproject/validate?storage=mys3storage" -d \ | ||
'{ | ||
"filename": "myfile.png", | ||
"mediaType": "image/png", | ||
"metadata": { | ||
"name": "My File", | ||
"description": "a description of the file", | ||
"keywords": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
} | ||
} | ||
}' |
34 changes: 34 additions & 0 deletions
34
docs/src/main/paradox/docs/delta/api/assets/files/register-post.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"@context" : [ | ||
"https://bluebrain.github.io/nexus/contexts/files.json", | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json" | ||
], | ||
"@id" : "http://delta:8080/v1/resources/hkrxvoxdyiiev1p/03vctrp70usfehq/_/iwa41vwspwke6nx", | ||
"@type" : "File", | ||
"_bytes" : 29625, | ||
"_constrainedBy" : "https://bluebrain.github.io/nexus/schemas/files.json", | ||
"_createdAt" : "2024-06-14T12:44:36.525177Z", | ||
"_createdBy" : "http://delta:8080/v1/realms/test-vuaplrsvrbkpkhca/users/byfxikrrdlmmvsvv", | ||
"_deprecated" : false, | ||
"_digest" : { | ||
"_algorithm" : "SHA-256", | ||
"_value" : "05bf442810213b9e5fecd5242eefeff1f3d207913861c96658c75ccf58997e87" | ||
}, | ||
"_filename" : "myfile.png", | ||
"_incoming" : "http://delta:8080/v1/files/hkrxvoxdyiiev1p/03vctrp70usfehq/http:%2F%2Fdelta:8080%2Fv1%2Fresources%2Fhkrxvoxdyiiev1p%2F03vctrp70usfehq%2F_%2Fiwa41vwspwke6nx/incoming", | ||
"_location" : "relative/path/to/myfile.png", | ||
"_mediaType" : "image/png", | ||
"_origin" : "External", | ||
"_outgoing" : "http://delta:8080/v1/files/hkrxvoxdyiiev1p/03vctrp70usfehq/http:%2F%2Fdelta:8080%2Fv1%2Fresources%2Fhkrxvoxdyiiev1p%2F03vctrp70usfehq%2F_%2Fiwa41vwspwke6nx/outgoing", | ||
"_project" : "http://delta:8080/v1/projects/hkrxvoxdyiiev1p/03vctrp70usfehq", | ||
"_rev" : 1, | ||
"_self" : "http://delta:8080/v1/files/hkrxvoxdyiiev1p/03vctrp70usfehq/http:%2F%2Fdelta:8080%2Fv1%2Fresources%2Fhkrxvoxdyiiev1p%2F03vctrp70usfehq%2F_%2Fiwa41vwspwke6nx", | ||
"_storage" : { | ||
"@id" : "https://bluebrain.github.io/nexus/vocabulary/mys3storage", | ||
"@type" : "S3Storage", | ||
"_rev" : 3 | ||
}, | ||
"_updatedAt" : "2024-06-14T12:44:36.525177Z", | ||
"_updatedBy" : "http://delta:8080/v1/realms/test-vuaplrsvrbkpkhca/users/byfxikrrdlmmvsvv", | ||
"_uuid" : "79695062-ecbb-42dc-a62d-61c2c02be129" | ||
} |
15 changes: 15 additions & 0 deletions
15
docs/src/main/paradox/docs/delta/api/assets/files/register-post.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
curl -X POST \ | ||
-H "Content-Type: application/json" \ | ||
"http://localhost:8080/v1/files/myorg/myproject/register/myfile?storage=mys3storage" -d \ | ||
'{ | ||
"path": "relative/path/to/myfile.png", | ||
"mediaType": "image/png", | ||
"metadata": { | ||
"name": "My File", | ||
"description": "a description of the file", | ||
"keywords": { | ||
"key1": "value1", | ||
"key2": "value2" | ||
} | ||
} | ||
}' |
This file contains 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