(maint) Improve schema and specify REST API