Documentation: Fix plugins install REST API & curl example

Change-Id: Ib577936c1379ab087e49d8b59f777ad2cf82d4ae
diff --git a/Documentation/rest-api-plugins.txt b/Documentation/rest-api-plugins.txt
index 938d101..255704a 100644
--- a/Documentation/rest-api-plugins.txt
+++ b/Documentation/rest-api-plugins.txt
@@ -246,7 +246,7 @@
 [[install-plugin]]
 === Install Plugin
 --
-'PUT /plugins/link:#plugin-id[\{plugin-id\}]'
+'PUT /plugins/link:#plugin-id[\{plugin-id\}].jar'
 --
 
 Installs a new plugin on the Gerrit server. If a plugin with the
@@ -260,7 +260,7 @@
 
 .Request
 ----
-  PUT /plugins/delete-project HTTP/1.0
+  PUT /plugins/delete-project.jar HTTP/1.0
   Content-Type: application/json; charset=UTF-8
 
   {
@@ -272,7 +272,7 @@
 following curl command can be used:
 
 ----
-  curl --user admin:TNNuLkWsIV8w -X PUT --data-binary @delete-project-2.8.jar 'http://gerrit:8080/a/plugins/delete-project'
+  curl --user admin:TNNuLkWsIV8w -X PUT -H "Content-Type:application/octet-stream" --data-binary @delete-project.jar 'http://gerrit:8080/a/plugins/delete-project.jar'
 ----
 
 As response a link:#plugin-info[PluginInfo] entity is returned that
@@ -282,12 +282,15 @@
 ----
   HTTP/1.1 201 Created
   Content-Disposition: attachment
-  Content-Type: application/json; charset=UTF-8
+  Content-Type: application/json;charset=utf-8
+  Content-Length: 150
 
   )]}'
   {
     "id": "delete-project",
-    "version": "2.8"
+    "version": "v2.16-221-g35bb8bbac4",
+    "index_url": "plugins/delete-project/",
+    "filename": "delete-project.jar"
   }
 ----