aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/uuid_resolver_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add UUIDResolverhellekin2021-03-221-0/+65
The UUIDResolver adds a route at `/by-uuid/:uuid` that enables applications to request information about a given UUID. The UUID must be a Random UUID (version 4, see RFC 4122). If an invalid UUID is given, the controller will return 422 Unprocessable Entity. If a valid UUID is given: - 404 indicates that the UUID is not assigned to anything known to the system. - 302 indicates that the UUID was assigned to a record, and the User-Agent will be redirected to that record's Location as indicated in the response header. - 200 indicates that the UUID was assigned to more than one record (which is unlikely) and will list those records.