8c2318e267
* Add JSON response format to entropy endpoints Add account settings JSON endpoint returning account info including auto_postpone_period. Add auto_postpone_period to board JSON responses. Add JSON update support to both account and board entropy controllers. * Add auto_postpone_period to all board response examples in API docs * Use auto_postpone_period_in_days in JSON responses and API docs * Use valid period values in permission tests
4 lines
162 B
Ruby
4 lines
162 B
Ruby
json.(@account, :id, :name, :cards_count)
|
|
json.created_at @account.created_at.utc
|
|
json.auto_postpone_period_in_days @account.entropy.auto_postpone_period_in_days
|