FLUID-6521: Nexus writeDefaults and constructComponents endpoints should produce appropriate responses

Metadata

Source
FLUID-6521
Type
Improvement
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Philip Tchernavskij
Reporter
Philip Tchernavskij
Created
2020-06-18T12:54:18.277-0400
Updated
2024-07-22T10:35:15.984-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Nexus

Description

The Nexus endpoints for adding grade defaults and constructing components respond to HTTP PUT requests. Currently, they respond to those requests with undefined, which is not a legitimate JSON payload. Therefore the requests are liable to be considered rejected, e.g. by browser ajax calls. Instead, both endpoints should respond with a JSON payload containing the HTTP status code 201 'Created'.