location: "query"
},
order: {
- type: "array",
- description: "Fields to use to determine order for returning #{k.to_s.underscore.pluralize} object matches.",
+ type: "string",
+ description: "Order in which to return matching #{k.to_s.underscore.pluralize}.",
location: "query"
},
select: {
path: "#{k.to_s.underscore.pluralize}",
httpMethod: "POST",
description: "Create a new #{k.to_s}.",
- parameters: {
- ensure_unique_name: {
- type: "boolean",
- description: "Adjust name to ensure uniqueness instead of returning an error on (owner_uuid, name) collision.",
- location: "query"
- }
- },
+ parameters: {},
request: {
required: true,
properties: {
end
discovery
end
- render json: discovery
+ send_json discovery
end
end