Connexions/rhaptos2.repo — pull request #168 by karenc (2014-01-14 14:49:54+00:00)
Title: FOR COMMENTS WIP module publish validations

Does this look correct?

- Use HTTP method "PUT" which is already being used for modifying a module
- If the request is a "PUT" and `publish_comment` not empty, then the module should be published

Validations:
- Roles accepted -> `roles_accepted` boolean field set to true, not saved in db
- Metadata completed -> `title`, `author`, `maintainers`, `copyrightHolders`, `editors`, `translators` not empty
- License accepted -> `license_accepted` boolean field set to true, not saved in db
- Inner module links point to existing modules -> how do the links look like? Validate against the archive db?
- Links to files point to actual module files -> I don't see any files tables in rhaptos2.repo, so I think we need to create some... Also the API doesn't seem to support file uploading yet