Skip to content

Commit

Permalink
docs: added copy to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
melistik committed Jun 24, 2020
1 parent 19bc6ad commit da604df
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Containing an implementation for storing asset references...
| asset.imagemagick.enabled | false | you can active imagemagick command-line use otherwise java-processor will get used |
| asset.api.download | true | you can disable endpoint |
| asset.api.delete | true | when false no delete is possible |
| asset.api.copy | true | when false no copy is possible |
| asset.api.batch | true | you can disable batch endpoint |
| asset.api.analyse | tru | you can disable analyse endpoint |
| asset.api.preview | true | should only been taken in case of mongo-storage<br />please consider also using outside caching |
Expand Down
48 changes: 46 additions & 2 deletions commons-asset-api/src/doc/swagger/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"description": "Provides services + rest-controller to handle asset with different storage engines.",
"version": "4.0.0",
"version": "4.1.0",
"title": "commons-asset api",
"contact": {
"name": "rocketbase.io",
Expand All @@ -21,12 +21,16 @@
},
{
"name": "delete",
"description": "Delete asset from datastore + db"
"description": "Delete asset from filestorage + db"
},
{
"name": "download",
"description": "Download original binary."
},
{
"name": "copy",
"description": "Copy source asset on filestorage + db."
},
{
"name": "preview",
"description": "Simple preview service."
Expand Down Expand Up @@ -425,6 +429,46 @@
"deprecated": false
}
},
"/api/asset/{sid}/copy": {
"post": {
"tags": [
"copy"
],
"summary": "copy source asset",
"description": "response with the copied assetRead of source",
"operationId": "copyAssetPOST",
"produces": [
"*/*"
],
"parameters": [
{
"name": "sid",
"in": "path",
"description": "id or systemRefId (you've given optionally within upload process)",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/AssetRead"
}
},
"401": {
"description": "Unauthorized"
},
"403": {
"description": "Forbidden"
},
"404": {
"description": "Not Found"
}
},
"deprecated": false
}
},
"/api/asset/{sid}/{size}": {
"get": {
"tags": [
Expand Down

0 comments on commit da604df

Please sign in to comment.