from flask_restplus import Namespace from server.namespaces import extend_namespace render_ns = Namespace('render', description='**[ZEPETO]** 사용자 ID를 받아서 제페토 이미지를 렌더링합니다.') extend_namespace(render_ns) render_ns.add_resources('profile', 'cover')
from flask_restplus import Namespace from server.namespaces import extend_namespace user_ns = Namespace('user', description='User resources') extend_namespace(user_ns) user_ns.add_resources('user', 'user_all', 'register', 'recreate')
from flask_restplus import Namespace from server.namespaces import extend_namespace auth_ns = Namespace('auth', description='User authentication') extend_namespace(auth_ns) auth_ns.add_resources('test', 'auth', 'plain')
from flask_restplus import Namespace from server.namespaces import extend_namespace test_ns = Namespace('test', description='[DEFAULT] API test') extend_namespace(test_ns) test_ns.add_resources('test')
from flask_restplus import Namespace from server.namespaces import extend_namespace social_ns = Namespace('social', description='**[SOCIAL]** 사용자 간 커뮤니케이션') extend_namespace(social_ns) social_ns.add_resources('add_friend', 'friends')
from flask_restplus import Namespace from server.namespaces import extend_namespace auth_ns = Namespace('auth', description='[DEFAULT] User authentication') extend_namespace(auth_ns) auth_ns.add_resources('test', 'auth')