示例#1
0
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')
示例#2
0
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')
示例#3
0
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')
示例#4
0
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')
示例#5
0
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')
示例#6
0
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')