4956: Add 'maxRequestSize' to discovery document
authorPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 3 Mar 2015 16:39:03 +0000 (11:39 -0500)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 3 Mar 2015 16:39:03 +0000 (11:39 -0500)
services/api/app/controllers/arvados/v1/schema_controller.rb
services/api/config/application.default.yml

index c108fb898dfc43300f511fe84851dfe72ad47dd9..8dc90e1df95cce87457642734c108fbea6500bfe 100644 (file)
@@ -33,6 +33,7 @@ class Arvados::V1::SchemaController < ApplicationController
         servicePath: "arvados/v1/",
         batchPath: "batch",
         defaultTrashLifetime: Rails.application.config.default_trash_lifetime,
+        maxRequestSize: Rails.application.config.max_request_size,
         parameters: {
           alt: {
             type: "string",
index 1e8d79fcd679d1f4cb6b82ac61e55a519484314d..952ed2e852f626e1afc30e180d5645c87511e884 100644 (file)
@@ -249,3 +249,7 @@ common:
   # Default replication level for collections. This is used when a
   # collection's replication_desired attribute is nil.
   default_collection_replication: 2
+
+  # Maximum size (in bytes) allowed for a single API request.  Is included in
+  # the discovery document for use by clients.
+  max_request_size: 134217728