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

Add readonly #353

Closed
wants to merge 51 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
9285b19
Add contributing information, see https://github.com/buildingSMART/BC…
GeorgDangl Sep 11, 2021
74abd55
Merge pull request #278 from buildingSMART/contrib-info-master
GeorgDangl Sep 14, 2021
84af26d
Add properties to schema (#222)
jasollien May 22, 2023
d92ce0d
Identifying guids (#314)
GeorgDangl Jun 5, 2023
5cbce2f
Optionally include topic relations (#315)
jasollien Jul 3, 2023
3b6653c
Add parent/child relation (#279)
jasollien Jul 3, 2023
c2584b0
Add audit info to viewpoint (#292)
jasollien Aug 28, 2023
3d75677
Fix typo, and merge `release_3_0` into `master` (#311)
GeorgDangl Sep 11, 2023
e9de9ff
Issue #313: Rename Schemas_draft-03 folder to Schemas
pasi-paasiala Oct 23, 2023
fa9aa93
#290 add support for component translucency. (#326)
ykulbak Nov 30, 2023
5659983
Remove BIM Snippet (#329)
GeorgDangl Dec 18, 2023
3885f36
Allow arrays as custom properties (#328)
GeorgDangl Dec 18, 2023
f4f5035
Feature/#321 topic files in viewpoints (#330)
GeorgDangl Dec 18, 2023
0f3e266
extensions: Support id and name (#327)
jasollien Feb 26, 2024
6ce1ee5
Add markers (#285)
jasollien Feb 26, 2024
edfde64
Main topic guid (#282)
jasollien Feb 26, 2024
cb01979
Add v3.0 of swagger.yaml
GeorgDangl Mar 25, 2024
e3135b8
Add initial swagger.yaml pushign via GitHub Actions
GeorgDangl Mar 25, 2024
ce062d1
Test commit
GeorgDangl Mar 25, 2024
2ef43f8
Switch to PUT for pushing to Swagger API
GeorgDangl Mar 25, 2024
40cc083
Update Swagger API url for posting
GeorgDangl Mar 25, 2024
7eff1fe
Use SwaggerHub CLI
GeorgDangl Mar 25, 2024
0504978
Reset swagger.yaml
GeorgDangl Mar 25, 2024
d341d6a
Change url parameter names
pkoska Apr 9, 2024
582d1be
Add main_viewpoint_guid property to Swagger (#333)
GeorgDangl Apr 22, 2024
7061f9c
Add markers to Swagger spec (#334)
GeorgDangl Apr 22, 2024
93e472e
Remove BIM Snippet in Swagger spec (#335)
GeorgDangl Apr 22, 2024
fe8c74c
Add topic file ids to viewpoints (#336)
GeorgDangl Apr 22, 2024
3e1b64c
Swagger custom fields (#341)
GeorgDangl May 6, 2024
12133a4
Include related topics in topic model (#343)
GeorgDangl May 6, 2024
feee8ae
Add viewpoint audit information (#342)
GeorgDangl May 6, 2024
97358e4
Merge branch 'feature/swagger-spec' of https://github.com/pkoska/BCF-…
pkoska May 6, 2024
0713b1c
Feature/translucency in swagger (#344)
GeorgDangl May 6, 2024
2025d92
Update to reflect changes from d92ce0d
pkoska May 6, 2024
37a3996
Add topic relations to Swagger spec
GeorgDangl May 6, 2024
c449d64
Merge pull request #348 from buildingSMART/feature/parent-child-in-sw…
jasollien May 6, 2024
8c55faa
Merge branch 'feature/swagger-spec' into feature/swagger-spec
GeorgDangl May 6, 2024
475e30b
Update swagger.yaml
jasollien May 6, 2024
aa8adfe
Update swagger.yaml
jasollien May 6, 2024
57806cc
Update swagger.yaml
jasollien May 6, 2024
9103fca
Update swagger.yaml
jasollien May 6, 2024
3c25a07
Update swagger.yaml
jasollien May 6, 2024
5084265
Update swagger.yaml
jasollien May 6, 2024
b91ba50
Update swagger.yaml
jasollien May 6, 2024
0d729d0
Update swagger.yaml
jasollien May 6, 2024
78b5fed
Update swagger.yaml
GeorgDangl May 6, 2024
4904965
Update swagger.yaml
GeorgDangl May 6, 2024
2f9b553
Update params for translucency endpoint
GeorgDangl May 6, 2024
699d10a
Update params for related_topics endpoint
GeorgDangl May 6, 2024
f7c9516
Feature/id and name in swagger spec (#351)
GeorgDangl Jun 17, 2024
83a5b4e
Add readOnly
jasollien Jun 17, 2024
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
17 changes: 17 additions & 0 deletions .github/workflows/swagger-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: swagger-update

on: [push]

jobs:
ubuntu-latest:
name: ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Install SwaggerHub CLI
run: 'npm i -g swaggerhub-cli'
- name: Push Swagger API to Swagger Hub
run: 'swaggerhub api:update buildingSMART/BCF/4.0 -f swagger.yaml'
env:
SWAGGERHUB_API_KEY: ${{ secrets.SWAGGER_HUB_API_KEY }}
819 changes: 508 additions & 311 deletions README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"items": {
"type": "string",
"enum": ["update",
"updateBimSnippet",
"updateRelatedTopics",
"updateDocumentReferences",
"updateFiles",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"author": {
"required": true,
"type": "string"
"$ref": "../../User/user_GET.json"
},
"comment": {
"required": true,
Expand All @@ -31,8 +31,7 @@
"null"]
},
"modified_author": {
"type": ["string",
"null"]
"$ref": "../../User/user_GET.json"
},
"authorization": {
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"author": {
"required": true,
"type": "string"
"$ref": "../../User/user_GET.json"
},
"actions": {
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"type": "string"
},
"value": {
"type": ["string",
"null"]
"$ref": "event_action_value.json"
}
}
}
12 changes: 12 additions & 0 deletions Schemas/Collaboration/Events/event_action_value.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"title": "event_action",
"type": ["object", "null"],
"properties": {
"id": {
"type": ["string", "null"]
},
"displayValue": {
"type": ["string", "null"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"author": {
"required": true,
"type": "string"
"$ref": "../../User/user_GET.json"
},
"actions": {
"type": "array",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
"reference": {
"type": ["string",
"null"]
},
"id": {
"type": ["string",
"null"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"related_topic_guid": {
"required": true,
"type": "string"
},
"relation_type": {
"required": true,
"type": "string",
"enum": ["relates", "parent", "child"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
"related_topic_guid": {
"required": true,
"type": "string"
},
"relation_type": {
"required": true,
"type": "string",
"enum": ["relates", "parent", "child"]
}
}
}
18 changes: 18 additions & 0 deletions Schemas/Collaboration/Topic/custom_field.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "custom_field",
"type": ["object"],
"properties": {
"id": {
"description": "Refers to the id of the custom field in the project extensions.",
"required": false,
"type": "string"
},
"values": {
"required": false,
"type": "array",
"items": {
"type": "string"
}
}
}
}
7 changes: 7 additions & 0 deletions Schemas/Collaboration/Topic/custom_fields.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"title": "custom_fields",
"type": ["array"],
"items": {
"$ref": "custom_field.json"
}
}
14 changes: 14 additions & 0 deletions Schemas/Collaboration/Topic/extension_item_GET.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"title": "extension_item_get",
"type": ["object", "null"],
"properties": {
"id": {
"type": "string",
"required": true
},
"name": {
"type": "string",
"required": true
}
}
}
10 changes: 10 additions & 0 deletions Schemas/Collaboration/Topic/extension_item_SET.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"title": "extension_item_set",
"type": ["object", "null"],
"properties": {
"id": {
"type": "string",
"required": true
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "topic_GET",
"type": "object",
"type": ["object", "null"],
"properties": {
"guid": {
"required": true,
Expand All @@ -11,12 +11,10 @@
"type": "string"
},
"topic_type": {
"type": ["string",
"null"]
"$ref": "extension_item_GET.json"
},
"topic_status": {
"type": ["string",
"null"]
"$ref": "extension_item_GET.json"
},
"reference_links": {
"type": ["array",
Expand All @@ -30,8 +28,7 @@
"type": "string"
},
"priority": {
"type": ["string",
"null"]
"$ref": "extension_item_GET.json"
},
"index": {
"type": [
Expand All @@ -43,8 +40,7 @@
"type": ["array",
"null"],
"items": {
"type": ["string",
"null"]
"$ref": "extension_item_GET.json"
}
},
"creation_date": {
Expand All @@ -53,34 +49,40 @@
},
"creation_author": {
"required": true,
"type": "string"
"$ref": "../../User/user_GET.json"
},
"modified_date": {
"type": "string"
},
"modified_author": {
"type": ["string",
"null"]
"$ref": "../../User/user_GET.json"
},
"assigned_to": {
"type": ["string",
"null"]
"$ref": "../../User/user_GET.json"
},
"stage": {
"type": ["string",
"null"]
"$ref": "extension_item_GET.json"
},
"description": {
"type": ["string",
"null"]
},
"bim_snippet": {
"$ref": "bim_snippet.json"
},
"due_date": {
"type": ["string",
"null"]
},
"custom_fields": {
"$ref": "custom_fields.json"
},
"related_topics": {
"type": ["array", "null"],
"items": {
"$ref": "../RelatedTopic/related_topic_GET.json"
}
},
"default_viewpoint_guid": {
"type": ["string", "null"]
},
"authorization": {
"type": "object",
"required": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
"null"]
},
"topic_type": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
},
"topic_status": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
},
"reference_links": {
"type": ["array",
Expand All @@ -28,8 +26,7 @@
"type": "string"
},
"priority": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
},
"index": {
"type": [
Expand All @@ -41,28 +38,28 @@
"type": ["array",
"null"],
"items": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
}
},
"assigned_to": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
},
"stage": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
},
"description": {
"type": ["string",
"null"]
},
"bim_snippet": {
"$ref": "bim_snippet.json"
},
"due_date": {
"type": ["string",
"null"]
},
"custom_fields": {
"$ref": "custom_fields.json"
},
"default_viewpoint_guid": {
"type": ["string", "null"]
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@
"type": "object",
"properties": {
"topic_type": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
},
"topic_status": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
},
"reference_links": {
"type": ["array",
Expand All @@ -24,8 +22,7 @@
"type": "string"
},
"priority": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
},
"index": {
"type": [
Expand All @@ -37,28 +34,28 @@
"type": ["array",
"null"],
"items": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
}
},
"assigned_to": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
},
"stage": {
"type": ["string",
"null"]
"$ref": "extension_item_SET.json"
},
"description": {
"type": ["string",
"null"]
},
"bim_snippet": {
"$ref": "bim_snippet.json"
},
"due_date": {
"type": ["string",
"null"]
},
"custom_fields": {
"$ref": "custom_fields.json"
},
"default_viewpoint_guid": {
"type": ["string", "null"]
}
}
}
Loading