module GrapeSwagger module DocMethods class StatusCodes class << self def get { get: { code: 200, message: 'get {item}(s)' }, post: { code: 201, message: 'created {item}' }, put: { code: 200, message: 'updated {item}' }, patch: { code: 200, message: 'patched {item}' }, delete: { code: 200, message: 'deleted {item}' }, head: { code: 200, message: 'head {item}' }, options: { code: 200, message: 'option {item}' } } end end end end end