Skip to content

Commit d96afd1

Browse files
Arthonijctophefabre
authored andcommitted
Alignment to the changes in models
* Added element branch endpoint * Fixed keys 'description' * Fixed password change endpoint schema * Fixed referential request URL path
1 parent 3bdaa1b commit d96afd1

File tree

1 file changed

+130
-48
lines changed

1 file changed

+130
-48
lines changed

specs/fluidhub.swagger.yaml

Lines changed: 130 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ info:
99
⭐ = item recently added or updated, 🚧 = items under construction, ❗ = items to review and validate
1010
1111
12-
version: "1.0"
12+
version: "1.0-202209"
1313
contact:
1414
name: the OpenFLUID team
1515
url: https://www.openfluid-project.org/who/
@@ -364,7 +364,7 @@ paths:
364364
200:
365365
description: 'OK'
366366

367-
/account/requests/access:
367+
/account/requests/referential/access:
368368
post:
369369
tags:
370370
- account
@@ -415,7 +415,7 @@ paths:
415415
401:
416416
$ref: '#/components/responses/Unauthenticated'
417417

418-
/account/requests/creation:
418+
/account/requests/referential/creation:
419419
post:
420420
tags:
421421
- account
@@ -444,7 +444,7 @@ paths:
444444
id:
445445
type: string
446446
example: "my.obs.43"
447-
shortdesc:
447+
description:
448448
type: string
449449
example: "the observer 43"
450450
- type: object
@@ -457,7 +457,7 @@ paths:
457457
name:
458458
type: string
459459
example: "DataX"
460-
shortdesc:
460+
description:
461461
type: string
462462
example: "a great dataset"
463463
responses:
@@ -480,14 +480,18 @@ paths:
480480
schema:
481481
type: object
482482
properties:
483-
new_password:
483+
old_password:
484+
description: "user input"
485+
type: string
486+
example: "my_old_secret_password"
487+
password:
484488
description: "user input"
485489
type: string
486-
example: "my_secret_password"
487-
new_password_confirm:
490+
example: "my_new_secret_password"
491+
confirmed_password:
488492
description: "user input"
489493
type: string
490-
example: "my_secret_password"
494+
example: "my_new_secret_password"
491495
required:
492496
- new_password
493497
- new_password_confirm
@@ -849,7 +853,7 @@ paths:
849853
schema:
850854
type: object
851855
properties:
852-
shortdesc:
856+
description:
853857
type: string
854858
example: "a new description ..."
855859
responses:
@@ -863,6 +867,47 @@ paths:
863867
$ref: '#/components/responses/NotFound'
864868

865869

870+
/wares/{waretype}/{wareid}/branches/{branchid}:
871+
parameters:
872+
- in: path
873+
required: true
874+
name: waretype
875+
description: type of wares
876+
schema:
877+
type: string
878+
enum: ['simulators','observers','builderexts']
879+
example: simulators
880+
- in: path
881+
name: wareid
882+
required: true
883+
schema:
884+
type: string
885+
example: "my.simulator"
886+
- in: path
887+
name: branchid
888+
required: true
889+
schema:
890+
type: string
891+
example: "openfluid-2.1"
892+
893+
get:
894+
summary: Get details of branch on ware ⭐
895+
description: >
896+
Details of branch include commits, tags and other information related to given branch
897+
tags:
898+
- reference wares
899+
responses:
900+
200:
901+
description: 'OK'
902+
content:
903+
application/json:
904+
schema:
905+
$ref: '#/components/schemas/ElementGitBranch'
906+
404:
907+
$ref: '#/components/responses/NotFound'
908+
909+
910+
866911
##########################################################################
867912

868913

@@ -931,7 +976,7 @@ paths:
931976
schema:
932977
type: object
933978
properties:
934-
shortdesc:
979+
description:
935980
type: string
936981
example: "a new description ..."
937982
responses:
@@ -944,6 +989,38 @@ paths:
944989
404:
945990
$ref: '#/components/responses/NotFound'
946991

992+
/datasets/{dataname}/branches/{branchid}:
993+
994+
parameters:
995+
- in: path
996+
name: dataname
997+
required: true
998+
schema:
999+
type: string
1000+
example: "my_dataset"
1001+
- in: path
1002+
name: branchid
1003+
required: true
1004+
schema:
1005+
type: string
1006+
example: "openfluid-2.1"
1007+
1008+
get:
1009+
summary: Get details of branch on dataset ⭐
1010+
description: >
1011+
Details of branch include commits, tags and other information related to given branch
1012+
tags:
1013+
- reference datasets
1014+
responses:
1015+
200:
1016+
description: 'OK'
1017+
content:
1018+
application/json:
1019+
schema:
1020+
$ref: '#/components/schemas/ElementGitBranch'
1021+
404:
1022+
$ref: '#/components/responses/NotFound'
1023+
9471024

9481025
#############################################################################
9491026

@@ -2315,6 +2392,8 @@ components:
23152392
type: string
23162393
organization:
23172394
type: string
2395+
unixname:
2396+
type: string
23182397

23192398
UserItem:
23202399
allOf:
@@ -2440,10 +2519,10 @@ components:
24402519
sha:
24412520
type: string
24422521
example: '11d8394e7ad3ddcbd76a6fdbc2226510e6a438cc'
2443-
author-name:
2522+
author_name:
24442523
type: string
24452524
example: 'Zoe'
2446-
author-email:
2525+
author_email:
24472526
type: string
24482527
example: 'zoe@people.org'
24492528
date:
@@ -2492,7 +2571,7 @@ components:
24922571
id:
24932572
type: string
24942573
example: "my.sim.example97"
2495-
shortdesc:
2574+
description:
24962575
type: string
24972576
example : 'This is a new simulator'
24982577
contributors :
@@ -2517,32 +2596,40 @@ components:
25172596
type: string
25182597
example: 'https://my.fluidhub.org/git/simulators/sim.example.7'
25192598
git_branches:
2599+
$ref: '#/components/schemas/GitBranches'
2600+
2601+
ElementGitBranch:
2602+
type: object
2603+
properties:
2604+
name:
2605+
type: string
2606+
details:
2607+
$ref: '#/components/schemas/ElementGitBranchDetails'
2608+
commits:
25202609
type: array
25212610
items:
2522-
$ref: '#/components/schemas/WareGitBranchDetails'
2611+
$ref: '#/components/schemas/GitCommitDetails'
25232612

2524-
WareGitBranchDetails:
2525-
allOf:
2526-
- $ref: '#/components/schemas/GitBranchDetails'
2527-
- type: object
2528-
properties:
2529-
tags:
2530-
type: array
2531-
items:
2532-
type: string
2533-
example: ['water','atmosphere','surface']
2534-
contacts:
2535-
type: array
2536-
items:
2537-
type: string
2538-
example: ['pierre@people.org','marianne@users.org']
2539-
license:
2540-
type: string
2541-
example: 'GPL-3.0'
2542-
issues:
2543-
type: array
2544-
items:
2545-
$ref: '#/components/schemas/WareGitIssueDetails'
2613+
ElementGitBranchDetails:
2614+
type: object
2615+
properties:
2616+
tags:
2617+
type: array
2618+
items:
2619+
type: string
2620+
example: ['water','atmosphere','surface']
2621+
contacts:
2622+
type: array
2623+
items:
2624+
type: string
2625+
example: ['pierre@people.org','marianne@users.org']
2626+
license:
2627+
type: string
2628+
example: 'GPL-3.0'
2629+
issues:
2630+
type: array
2631+
items:
2632+
$ref: '#/components/schemas/WareGitIssueDetails'
25462633

25472634
WareGitIssueDetails:
25482635
type: object
@@ -2553,7 +2640,7 @@ components:
25532640
title:
25542641
type: string
25552642
example: 'Important feature'
2556-
creator-name:
2643+
creator:
25572644
type: string
25582645
example: 'Maxime'
25592646
date:
@@ -2604,7 +2691,7 @@ components:
26042691
type : string
26052692
example:
26062693
my.obs.example42 :
2607-
shortdesc : "my observer as an example"
2694+
description : "my observer as an example"
26082695
git_url : ""
26092696
ware_url : ""
26102697
git_branches : ["openfluid-2.0","openfluid-2.1"]
@@ -2616,7 +2703,7 @@ components:
26162703
users-rw : []
26172704

26182705
my.obs.example123 :
2619-
shortdesc : "my observer as another example"
2706+
description : "my observer as another example"
26202707
ware_url : ""
26212708
git_url : ""
26222709
git_branches : ["openfluid-2.1"]
@@ -2645,7 +2732,7 @@ components:
26452732
DatasetInfo:
26462733
type: object
26472734
properties:
2648-
shortdesc:
2735+
description:
26492736
type: string
26502737
example: "This dataset ..."
26512738

@@ -2656,10 +2743,8 @@ components:
26562743
$ref: '#/components/schemas/UsersROlist'
26572744
users-rw:
26582745
$ref: '#/components/schemas/UsersRWlist'
2659-
git-branches:
2660-
type: array
2661-
items:
2662-
$ref: '#/components/schemas/GitBranchDetails'
2746+
git_branches:
2747+
$ref: '#/components/schemas/GitBranches'
26632748

26642749

26652750
Workspace:
@@ -2886,6 +2971,3 @@ components:
28862971
# schema:
28872972
# $ref: '#/components/schemas/Dataset'
28882973

2889-
2890-
2891-

0 commit comments

Comments
 (0)