|
33 | 33 | - [4.1.2 POST Project Services](#412-post-project-services)
|
34 | 34 | - [4.1.3 GET Single Project Services](#413-get-single-project-services)
|
35 | 35 | - [4.1.4 PUT Single Project Services](#414-put-single-project-services)
|
36 |
| - - [4.1.5 DELETE Single Project Services](#415-delete-single-project-services) |
37 |
| - - [4.1.6 GET Project Extension Services](#416-get-project-extension-services) |
38 |
| - - [4.1.7 POST Project Extension Services](#417-post-project-extension-services) |
39 |
| - - [4.1.8 PUT Project Extension Services](#418-put-project-extension-services) |
| 36 | + - [4.1.5 GET Project Extension Services](#415-get-project-extension-services) |
| 37 | + - [4.1.6 POST Project Extension Services](#416-post-project-extension-services) |
| 38 | + - [4.1.7 PUT Project Extension Services](#417-put-project-extension-services) |
40 | 39 | - [4.2 Topic Services](#42-topic-services)
|
41 | 40 | - [4.2.1 GET Topic Services](#421-get-topic-services)
|
42 | 41 | - [4.2.2 POST Topic Services](#422-post-topic-services)
|
43 | 42 | - [4.2.3 GET Single Topic Services](#423-get-single-topic-services)
|
44 | 43 | - [4.2.4 PUT Single Topic Services](#424-put-single-topic-services)
|
45 |
| - - [4.2.5 DELETE Single Topic Services](#425-delete-single-topic-services) |
46 | 44 | - [4.2.6 GET Topic BIM Snippet](#426-get-topic-bim-snippet)
|
47 | 45 | - [4.2.7 PUT Topic BIM Snippet](#427-put-topic-bim-snippet)
|
48 | 46 | - [4.3 File Services](#43-file-services)
|
|
68 | 66 | - [4.7.2 PUT Related Topics Services](#472-post-related-topics-services)
|
69 | 67 | - [4.8 Document Reference Services](#48-document-reference-services)
|
70 | 68 | - [4.8.1 GET Document Reference Services](#481-get-document-reference-services)
|
71 |
| - - [4.8.2 POST Document Reference Services](#482-post-document-reference-services) |
72 |
| - - [4.8.3 GET a single Document Reference Service](#483-get-a-single-document-reference-service) |
73 |
| - - [4.8.4 PUT a single Document Reference Service](#484-put-a-single-document-reference-service) |
74 |
| - |
75 |
| - |
76 |
| - |
77 |
| - |
| 69 | + - [4.8.2 PUT Document Reference Services](#482-put-document-reference-services) |
| 70 | + - [4.9 Document Services](#49-document-services) |
| 71 | + - [4.9.1 POST Document Services](#491-post-document-services) |
| 72 | + - [4.9.2 GET Document Services](#492-get-document-services) |
78 | 73 |
|
79 | 74 |
|
80 | 75 | ----------
|
@@ -637,20 +632,7 @@ Retrieve a specific project.
|
637 | 632 | Modify a specific project, description similar to POST.
|
638 | 633 |
|
639 | 634 |
|
640 |
| -### 4.1.5 DELETE Single Project Services ### |
641 |
| - |
642 |
| -**Recource URL** |
643 |
| - |
644 |
| - DELETE /bcf/{version}/projects/{project_id} |
645 |
| - |
646 |
| -Delete a specific project. |
647 |
| - |
648 |
| -**Example Request** |
649 |
| - |
650 |
| - https://example.com/bcf/1.0/projects/B724AAC3-5B2A-234A-D143-AE33CC18414 |
651 |
| - |
652 |
| - |
653 |
| -### 4.1.6 GET Project Extension Services ### |
| 635 | +### 4.1.5 GET Project Extension Services ### |
654 | 636 |
|
655 | 637 | **Recource URL**
|
656 | 638 |
|
@@ -705,7 +687,7 @@ Retrieve a specific projects extensions.
|
705 | 687 | ]
|
706 | 688 | }
|
707 | 689 |
|
708 |
| -### 4.1.7 POST Project Extension Services |
| 690 | +### 4.1.6 POST Project Extension Services |
709 | 691 |
|
710 | 692 | **Recource URL**
|
711 | 693 |
|
@@ -837,7 +819,7 @@ JSON encoded body using the "application/json" content type.
|
837 | 819 | }
|
838 | 820 |
|
839 | 821 |
|
840 |
| -### 4.1.8 PUT Project Extension Services |
| 822 | +### 4.1.7 PUT Project Extension Services |
841 | 823 |
|
842 | 824 | **Recource URL**
|
843 | 825 |
|
@@ -1057,20 +1039,6 @@ Retrieve a specific topic.
|
1057 | 1039 |
|
1058 | 1040 | Modify a specific topic, description similar to POST.
|
1059 | 1041 |
|
1060 |
| - |
1061 |
| -### 4.2.5 DELETE Single Topic Services ### |
1062 |
| - |
1063 |
| -**Recource URL** |
1064 |
| - |
1065 |
| - DELETE /bcf/{version}/topics/{guid} |
1066 |
| - DELETE /bcf/{version}/projects/{project_id}/topics/{guid} |
1067 |
| - |
1068 |
| -Delete a specific topic |
1069 |
| - |
1070 |
| -**Example Request** |
1071 |
| - |
1072 |
| - https://example.com/bcf/1.0/projects/F445F4F2-4D02-4B2A-B612-5E456BEF9137/topics/B345F4F2-3A04-B43B-A713-5E456BEF8228 |
1073 |
| - |
1074 | 1042 | ### 4.2.6 GET Topic BIM Snippet
|
1075 | 1043 |
|
1076 | 1044 | **Resource URL**
|
@@ -2006,66 +1974,71 @@ Retrieve a **collection** of all document references to a topic.
|
2006 | 1974 | }
|
2007 | 1975 | ]
|
2008 | 1976 |
|
2009 |
| -### 4.8.2 POST Document Reference Services ### |
| 1977 | +### 4.8.2 PUT Document Reference Services ### |
2010 | 1978 |
|
2011 | 1979 | **Recource URL**
|
2012 | 1980 |
|
2013 | 1981 | POST /bcf/{version}/topics/{guid}/document_references
|
2014 | 1982 | POST /bcf/{version}/projects/{project_id}/topics/{guid}/document_references
|
2015 | 1983 |
|
2016 |
| -[document_reference_POST.json](https://raw.githubusercontent.com/BuildingSMART/BCF-API/master/Schemas_draft-03/Collaboration/DocumentReference/document_reference_POST.json) |
| 1984 | +[document_reference_PUT.json](https://raw.githubusercontent.com/BuildingSMART/BCF-API/master/Schemas_draft-03/Collaboration/DocumentReference/document_reference_PUT.json) |
2017 | 1985 |
|
2018 |
| -Add a document reference to a topic. |
| 1986 | +Add or update document references to a topic. |
| 1987 | +The PUT object may either contain the property "guid" to reference a document stored on the BCF server (see section 4.9) OR the property "referenced_document" to point to an external resource. |
2019 | 1988 |
|
2020 | 1989 | **Example Request**
|
2021 | 1990 |
|
2022 | 1991 | https://example.com/bcf/1.0/projects/F445F4F2-4D02-4B2A-B612-5E456BEF9137/topics/B345F4F2-3A04-B43B-A713-5E456BEF8228/document_references
|
2023 | 1992 |
|
| 1993 | + [ |
2024 | 1994 | {
|
2025 | 1995 | "referenced_document":"http://example.com/files/LegalRequirements.pdf",
|
2026 | 1996 | "description":"The legal requirements for buildings."
|
2027 | 1997 | }
|
| 1998 | + ] |
2028 | 1999 |
|
2029 | 2000 | **Example Response**
|
2030 | 2001 |
|
| 2002 | + [ |
2031 | 2003 | {
|
2032 | 2004 | "guid":"472ab37a-6122-448e-86fc-86503183b520",
|
2033 | 2005 | "referenced_document":"http://example.com/files/LegalRequirements.pdf",
|
2034 | 2006 | "description":"The legal requirements for buildings."
|
2035 | 2007 | }
|
| 2008 | + ] |
2036 | 2009 |
|
2037 |
| -### 4.8.3 GET a single Document Reference Service ### |
| 2010 | +## 4.9 Document Services |
2038 | 2011 |
|
2039 |
| -**Recource URL** |
| 2012 | +### 4.9.1 POST Document Services |
2040 | 2013 |
|
2041 |
| - GET /bcf/{version}/document_references/{guid} |
2042 |
| - GET /bcf/{version}/projects/{project_id}/topics/{guid}/document_references/{guid} |
| 2014 | +[document_GET.json](https://raw.githubusercontent.com/BuildingSMART/BCF-API/master/Schemas_draft-03/Collaboration/Document/document_GET.json) |
2043 | 2015 |
|
2044 |
| -[document_reference_GET.json](https://raw.githubusercontent.com/BuildingSMART/BCF-API/master/Schemas_draft-03/Collaboration/DocumentReference/document_reference_GET.json) |
| 2016 | +**Recource URL** |
2045 | 2017 |
|
2046 |
| -Retrieve a single document reference. |
| 2018 | + POST /bcf/{version}/projects/{project_id}/documents |
2047 | 2019 |
|
2048 |
| -**Example Request** |
| 2020 | +Upload a document (binary file) to a project. The following HTTP headers are used for the upload: |
2049 | 2021 |
|
2050 |
| - https://example.com/bcf/1.0/projects/F445F4F2-4D02-4B2A-B612-5E456BEF9137/topics/B345F4F2-3A04-B43B-A713-5E456BEF8228/document_references/472ab37a-6122-448e-86fc-86503183b520 |
| 2022 | + Content-Type: application/octet-stream; |
| 2023 | + Content-Length: {Size of file in bytes}; |
| 2024 | + Content-Disposition: attachment; filename="{Filename.extension}"; |
2051 | 2025 |
|
2052 | 2026 | **Example Response**
|
2053 | 2027 |
|
2054 | 2028 | {
|
2055 |
| - "guid":"472ab37a-6122-448e-86fc-86503183b520", |
2056 |
| - "referenced_document":"http://example.com/files/LegalRequirements.pdf", |
2057 |
| - "description":"The legal requirements for buildings." |
| 2029 | + "guid":"472ab37a-6122-448e-86fc-86503183b520" |
2058 | 2030 | }
|
2059 | 2031 |
|
2060 |
| -### 4.8.4 PUT a single Document Reference Service ### |
| 2032 | +### 4.9.2 GET Document Services |
2061 | 2033 |
|
2062 | 2034 | **Recource URL**
|
2063 | 2035 |
|
2064 |
| - PUT /bcf/{version}/document_references/{guid} |
2065 |
| - PUT /bcf/{version}/projects/{project_id}/topics/{guid}/document_references/{guid} |
| 2036 | + GET /bcf/{version}/projects/{project_id}/documents/{guid} |
2066 | 2037 |
|
2067 |
| -[document_reference_PUT.json](https://raw.githubusercontent.com/BuildingSMART/BCF-API/master/Schemas_draft-03/Collaboration/DocumentReference/document_reference_PUT.json) |
| 2038 | +Retrieves a document as binary file. Will use the following HTTP headers to deliver additional information: |
2068 | 2039 |
|
2069 |
| -Update a single document reference, description similar to POST. |
| 2040 | + Content-Type: application/octet-stream; |
| 2041 | + Content-Length: {Size of file in bytes}; |
| 2042 | + Content-Disposition: attachment; filename="{Filename.extension}"; |
2070 | 2043 |
|
2071 | 2044 |
|
0 commit comments