File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
main/java/com/owncloud/android/lib/resources/declarativeui
test/java/com/owncloud/android/lib/resources/status Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ data class Endpoint(
1919 var method : Method ? ,
2020 @SerializedName(" mimetype_filters" )
2121 val mimetypeFilter : String? ,
22- @SerializedName(" params" )
23- val bodyParams : Array <String >? ,
22+ val params : Map <String , String >? ,
2423 val icon : String? ,
2524 val filter : String?
2625) : Parcelable
Original file line number Diff line number Diff line change @@ -48,7 +48,10 @@ class OCCapabilityTest {
4848 "url": "\/ocs\/v2.php\/apps\/analytics\/createFromDataFile?fileId={fileId}",
4949 "method": "POST",
5050 "mimetype_filters": "text\/csv",
51- "bodyParams": [],
51+ "params": {
52+ 'file_id': '{fileId}',
53+ 'file_path': '{filePath}'
54+ },
5255 "icon": "\/apps\/analytics\/img\/app.svg"
5356 }
5457 ],
@@ -116,7 +119,7 @@ class OCCapabilityTest {
116119 assertEquals(3 , sut.getDeclarativeUiEndpoints(Type .CREATE_NEW , " text/markdown" ).size.toLong())
117120
118121 // Zip
119- assertEquals(3 , sut.getDeclarativeUiEndpoints(Type .CONTEXT_MENU , " application/zip" ).size.toLong())
122+ assertEquals(4 , sut.getDeclarativeUiEndpoints(Type .CONTEXT_MENU , " application/zip" ).size.toLong())
120123 assertEquals(3 , sut.getDeclarativeUiEndpoints(Type .CREATE_NEW , " application/zip" ).size.toLong())
121124 }
122125}
You can’t perform that action at this time.
0 commit comments