67
67
- [4.8 Document Reference Services](#48-document-reference-services)
68
68
- [4.8.1 GET Document Reference Services](#481-get-document-reference-services)
69
69
- [4.8.2 PUT Document Reference Services](#482-put-document-reference-services)
70
-
71
-
72
-
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)
73
73
74
74
75
75
----------
@@ -1984,6 +1984,7 @@ Retrieve a **collection** of all document references to a topic.
1984
1984
[ document_reference_PUT.json] ( https://raw.githubusercontent.com/BuildingSMART/BCF-API/master/Schemas_draft-03/Collaboration/DocumentReference/document_reference_PUT.json )
1985
1985
1986
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.
1987
1988
1988
1989
** Example Request**
1989
1990
@@ -2006,5 +2007,38 @@ Add or update document references to a topic.
2006
2007
}
2007
2008
]
2008
2009
2010
+ ## 4.9 Document Services
2011
+
2012
+ ### 4.9.1 POST Document Services
2013
+
2014
+ [ document_GET.json] ( https://raw.githubusercontent.com/BuildingSMART/BCF-API/master/Schemas_draft-03/Collaboration/Document/document_GET.json )
2015
+
2016
+ ** Recource URL**
2017
+
2018
+ POST /bcf/{version}/projects/{project_id}/documents
2019
+
2020
+ Upload a document (binary file) to a project. The following HTTP headers are used for the upload:
2021
+
2022
+ Content-Type: application/octet-stream;
2023
+ Content-Length: {Size of file in bytes};
2024
+ Content-Disposition: attachment; filename="{Filename.extension}";
2025
+
2026
+ ** Example Response**
2027
+
2028
+ {
2029
+ "guid":"472ab37a-6122-448e-86fc-86503183b520"
2030
+ }
2031
+
2032
+ ### 4.9.2 GET Document Services
2033
+
2034
+ ** Recource URL**
2035
+
2036
+ GET /bcf/{version}/projects/{project_id}/documents/{guid}
2037
+
2038
+ Retrieves a document as binary file. Will use the following HTTP headers to deliver additional information:
2039
+
2040
+ Content-Type: application/octet-stream;
2041
+ Content-Length: {Size of file in bytes};
2042
+ Content-Disposition: attachment; filename="{Filename.extension}";
2009
2043
2010
2044
0 commit comments