512 lines
30 KiB
Python
512 lines
30 KiB
Python
"""Named hengde admin API operations and request schemas."""
|
|||
|
|
|
||
|
|
ROUTES = {
|
||
|
|
'account': {
|
||
|
|
'create': (
|
||
|
|
'/account/create',
|
||
|
|
{'properties': {'displayName': {'maxLength': 50, 'type': 'string'},
|
||
|
|
'password': {'minLength': 8, 'type': 'string'},
|
||
|
|
'username': {'maxLength': 50, 'minLength': 3, 'type': 'string'}},
|
||
|
|
'required': ['username', 'password', 'displayName'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'delete': (
|
||
|
|
'/account/delete',
|
||
|
|
{'properties': {'id': {'minimum': 1, 'type': 'integer'}}, 'required': ['id'], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'list': (
|
||
|
|
'/account/getList',
|
||
|
|
{'properties': {'keyword': {'type': 'string'},
|
||
|
|
'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'role': {'type': 'string'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': ['pageNo', 'pageSize'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'reset-password': (
|
||
|
|
'/account/resetPassword',
|
||
|
|
{'properties': {'id': {'minimum': 1, 'type': 'integer'},
|
||
|
|
'password': {'minLength': 8, 'type': 'string'}},
|
||
|
|
'required': ['id', 'password'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'update-status': (
|
||
|
|
'/account/updateStatus',
|
||
|
|
{'properties': {'id': {'minimum': 1, 'type': 'integer'},
|
||
|
|
'status': {'enum': ['enabled', 'disabled'], 'type': 'string'}},
|
||
|
|
'required': ['id', 'status'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'auth': {
|
||
|
|
'change-password': (
|
||
|
|
'/auth/changePassword',
|
||
|
|
{'properties': {'newPassword': {'minLength': 8, 'type': 'string'},
|
||
|
|
'oldPassword': {'type': 'string'}},
|
||
|
|
'required': ['oldPassword', 'newPassword'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'info': (
|
||
|
|
'/auth/info',
|
||
|
|
{'properties': {}, 'required': [], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'update-profile': (
|
||
|
|
'/auth/updateProfile',
|
||
|
|
{'properties': {'displayName': {'maxLength': 50, 'type': 'string'}},
|
||
|
|
'required': ['displayName'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'category': {
|
||
|
|
'get': (
|
||
|
|
'/category/detail',
|
||
|
|
{'properties': {'id': {'minimum': 1, 'type': 'integer'}, 'locale': {'type': 'string'}},
|
||
|
|
'required': ['id', 'locale'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'list': (
|
||
|
|
'/category/getList',
|
||
|
|
{'properties': {'keyword': {'type': 'string'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': ['locale', 'pageNo', 'pageSize'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/category/save',
|
||
|
|
{'properties': {'data': {'properties': {'description': {'type': 'string'},
|
||
|
|
'image': {'type': 'string'},
|
||
|
|
'label': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'parentId': {'type': 'integer'},
|
||
|
|
'slug': {'type': 'string'},
|
||
|
|
'sortOrder': {'type': 'integer'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'certification': {
|
||
|
|
'get': (
|
||
|
|
'/certification/detail',
|
||
|
|
{'properties': {'id': {'minimum': 1, 'type': 'integer'}, 'locale': {'type': 'string'}},
|
||
|
|
'required': ['id', 'locale'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'list': (
|
||
|
|
'/certification/getList',
|
||
|
|
{'properties': {'keyword': {'type': 'string'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': ['locale', 'pageNo', 'pageSize'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/certification/save',
|
||
|
|
{'properties': {'data': {'properties': {'authority': {'type': 'string'},
|
||
|
|
'image': {'type': 'string'},
|
||
|
|
'scope': {'type': 'string'},
|
||
|
|
'seoDescription': {'type': 'string'},
|
||
|
|
'seoTitle': {'type': 'string'},
|
||
|
|
'summary': {'type': 'string'},
|
||
|
|
'title': {'type': 'string'},
|
||
|
|
'validity': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'slug': {'type': 'string'},
|
||
|
|
'sortOrder': {'type': 'integer'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'download': {
|
||
|
|
'get': (
|
||
|
|
'/download/detail',
|
||
|
|
{'properties': {'id': {'minimum': 1, 'type': 'integer'}, 'locale': {'type': 'string'}},
|
||
|
|
'required': ['id', 'locale'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'list': (
|
||
|
|
'/download/getList',
|
||
|
|
{'properties': {'keyword': {'type': 'string'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': ['locale', 'pageNo', 'pageSize'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/download/save',
|
||
|
|
{'properties': {'data': {'properties': {'category': {'type': 'string'},
|
||
|
|
'documentLocale': {'type': 'string'},
|
||
|
|
'file': {'type': 'string'},
|
||
|
|
'title': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'slug': {'type': 'string'},
|
||
|
|
'sortOrder': {'type': 'integer'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'home': {
|
||
|
|
'get': (
|
||
|
|
'/home/get',
|
||
|
|
{'properties': {'key': {'type': 'string'}, 'locale': {'type': 'string'}},
|
||
|
|
'required': ['locale'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/home/save',
|
||
|
|
{'properties': {'data': {'properties': {'copy': {'properties': {'aModelThatFitsYourProject': {'type': 'string'},
|
||
|
|
'aboutHengde': {'type': 'string'},
|
||
|
|
'cleaningMonitoringMaintenance': {'type': 'string'},
|
||
|
|
'cleaningThatFitsTheSite': {'type': 'string'},
|
||
|
|
'efficientCleaningConfidentOperation': {'type': 'string'},
|
||
|
|
'equipmentAndServicesPlannedAroundTheNeedsOf': {'type': 'string'},
|
||
|
|
'featuredSolutions': {'type': 'string'},
|
||
|
|
'flexibleCooperation': {'type': 'string'},
|
||
|
|
'hengdeSolutions': {'type': 'string'},
|
||
|
|
'illustrativeSolarCleaningScene': {'type': 'string'},
|
||
|
|
'imageAiGeneratedSceneIllustration': {'type': 'string'},
|
||
|
|
'intelligentCleaning': {'type': 'string'},
|
||
|
|
'iotRemoteManagement': {'type': 'string'},
|
||
|
|
'licensedElectricalServices': {'type': 'string'},
|
||
|
|
'lifecycleOMSupport': {'type': 'string'},
|
||
|
|
'nextSlide': {'type': 'string'},
|
||
|
|
'ourSolutions': {'type': 'string'},
|
||
|
|
'pauseSlides': {'type': 'string'},
|
||
|
|
'previousSlide': {'type': 'string'},
|
||
|
|
'projectApplications': {'type': 'string'},
|
||
|
|
'qualityIntegrity': {'type': 'string'},
|
||
|
|
'rootedInQingyuanFocusedOnEnergy': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'heroSlides': {'items': {'properties': {'cta': {'type': 'string'},
|
||
|
|
'image': {'type': 'string'},
|
||
|
|
'path': {'type': 'string'},
|
||
|
|
'subtitle': {'type': 'string'},
|
||
|
|
'title': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'},
|
||
|
|
'statistics': {'items': {'properties': {'label': {'type': 'string'},
|
||
|
|
'value': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'page': {
|
||
|
|
'get': (
|
||
|
|
'/page/get',
|
||
|
|
{'properties': {'key': {'type': 'string'}, 'locale': {'type': 'string'}},
|
||
|
|
'required': ['locale'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/page/save',
|
||
|
|
{'properties': {'data': {'properties': {'cooperationModes': {'items': {'properties': {'description': {'type': 'string'},
|
||
|
|
'title': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'},
|
||
|
|
'copy': {'properties': {'acrossPlantTypesCleaningConditions': {'type': 'string'},
|
||
|
|
'askAboutQualifications': {'type': 'string'},
|
||
|
|
'bladesPulleysAndCablesAreInspectedAndReplaced': {'type': 'string'},
|
||
|
|
'businessPhone': {'type': 'string'},
|
||
|
|
'callUs': {'type': 'string'},
|
||
|
|
'capabilities': {'type': 'string'},
|
||
|
|
'chineseDocument': {'type': 'string'},
|
||
|
|
'chooseACooperationModelForPlantConditionsInvestment': {'type': 'string'},
|
||
|
|
'companyProductDocuments': {'type': 'string'},
|
||
|
|
'dataLedAssessmentAgreedTerms': {'type': 'string'},
|
||
|
|
'discussASimilarProject': {'type': 'string'},
|
||
|
|
'discussCooperation': {'type': 'string'},
|
||
|
|
'downloadDocument': {'type': 'string'},
|
||
|
|
'downloadTheChineseCompanyProfileAndRobotLeaflet': {'type': 'string'},
|
||
|
|
'email': {'type': 'string'},
|
||
|
|
'emailUs': {'type': 'string'},
|
||
|
|
'equipmentForSiteConditions': {'type': 'string'},
|
||
|
|
'equipmentOwnershipTermCleaningFrequencyResponseRequirementsAnd': {'type': 'string'},
|
||
|
|
'equipmentTechnologySiteServices': {'type': 'string'},
|
||
|
|
'established': {'type': 'string'},
|
||
|
|
'followHengdeIntelligentCleaningRobotsOnWechat': {'type': 'string'},
|
||
|
|
'gradeIiiInstallationRepairAndTestingPermitsSupport': {'type': 'string'},
|
||
|
|
'guangdongHengde': {'type': 'string'},
|
||
|
|
'hengdeOfficialWechatAccountQrCode': {'type': 'string'},
|
||
|
|
'illustrativeSolarCleaningScene': {'type': 'string'},
|
||
|
|
'imageAiGeneratedSceneIllustration': {'type': 'string'},
|
||
|
|
'investmentServicesForYourProject': {'type': 'string'},
|
||
|
|
'issuer': {'type': 'string'},
|
||
|
|
'lanInternetHybridAndTimerDeploymentsSupportCleaning': {'type': 'string'},
|
||
|
|
'modularMaintenance': {'type': 'string'},
|
||
|
|
'moreProjectApplications': {'type': 'string'},
|
||
|
|
'officeAddress': {'type': 'string'},
|
||
|
|
'onSiteApplications': {'type': 'string'},
|
||
|
|
'openCertificateImage': {'type': 'string'},
|
||
|
|
'ourServicesCoverElectricalEquipmentUpTo10': {'type': 'string'},
|
||
|
|
'productionAddress': {'type': 'string'},
|
||
|
|
'professionalPowerOM': {'type': 'string'},
|
||
|
|
'projectApplications': {'type': 'string'},
|
||
|
|
'projectBasedCooperation': {'type': 'string'},
|
||
|
|
'projectEnquiries': {'type': 'string'},
|
||
|
|
'projectPhotographsAndDescriptionsAreDrawnFromHengde': {'type': 'string'},
|
||
|
|
'providePlantInformationAndHistoricalGenerationDataFor': {'type': 'string'},
|
||
|
|
'qualifications': {'type': 'string'},
|
||
|
|
'qualityIntegrity': {'type': 'string'},
|
||
|
|
'remoteOnSiteControl': {'type': 'string'},
|
||
|
|
'scope': {'type': 'string'},
|
||
|
|
'selectTractionPortableOrSpecializedCleaningSystemsFor': {'type': 'string'},
|
||
|
|
'shareThePlantLocationCapacityModuleLayoutAnd': {'type': 'string'},
|
||
|
|
'startWithAProjectDiscussion': {'type': 'string'},
|
||
|
|
'validity': {'type': 'string'},
|
||
|
|
'viewQualification': {'type': 'string'},
|
||
|
|
'viewQualifications': {'type': 'string'},
|
||
|
|
'wechat': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'description': {'type': 'string'},
|
||
|
|
'faqItems': {'items': {'properties': {'answer': {'type': 'string'},
|
||
|
|
'question': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'},
|
||
|
|
'intro': {'type': 'string'},
|
||
|
|
'title': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'key': {'type': 'string'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'product': {
|
||
|
|
'get': (
|
||
|
|
'/product/detail',
|
||
|
|
{'properties': {'id': {'minimum': 1, 'type': 'integer'}, 'locale': {'type': 'string'}},
|
||
|
|
'required': ['id', 'locale'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'list': (
|
||
|
|
'/product/getList',
|
||
|
|
{'properties': {'keyword': {'type': 'string'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': ['locale', 'pageNo', 'pageSize'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/product/save',
|
||
|
|
{'properties': {'categoryIds': {'items': {'type': 'integer'}, 'type': 'array'},
|
||
|
|
'data': {'properties': {'bullets': {'items': {'type': 'string'},
|
||
|
|
'type': 'array'},
|
||
|
|
'description': {'type': 'string'},
|
||
|
|
'featured': {'type': 'boolean'},
|
||
|
|
'gallery': {'type': 'string'},
|
||
|
|
'image': {'type': 'string'},
|
||
|
|
'seoDescription': {'type': 'string'},
|
||
|
|
'seoTitle': {'type': 'string'},
|
||
|
|
'specs': {'items': {'properties': {'label': {'type': 'string'},
|
||
|
|
'value': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'},
|
||
|
|
'summary': {'type': 'string'},
|
||
|
|
'title': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'slug': {'type': 'string'},
|
||
|
|
'sortOrder': {'type': 'integer'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'project': {
|
||
|
|
'get': (
|
||
|
|
'/project/detail',
|
||
|
|
{'properties': {'id': {'minimum': 1, 'type': 'integer'}, 'locale': {'type': 'string'}},
|
||
|
|
'required': ['id', 'locale'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'list': (
|
||
|
|
'/project/getList',
|
||
|
|
{'properties': {'keyword': {'type': 'string'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'pageNo': {'default': 1, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'pageSize': {'default': 20, 'maximum': 100, 'minimum': 1, 'type': 'integer'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': ['locale', 'pageNo', 'pageSize'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/project/save',
|
||
|
|
{'properties': {'data': {'properties': {'body': {'items': {'type': 'string'}, 'type': 'array'},
|
||
|
|
'facts': {'items': {'properties': {'label': {'type': 'string'},
|
||
|
|
'value': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'type': 'array'},
|
||
|
|
'image': {'type': 'string'},
|
||
|
|
'location': {'type': 'string'},
|
||
|
|
'seoDescription': {'type': 'string'},
|
||
|
|
'seoTitle': {'type': 'string'},
|
||
|
|
'summary': {'type': 'string'},
|
||
|
|
'title': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'slug': {'type': 'string'},
|
||
|
|
'sortOrder': {'type': 'integer'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'site': {
|
||
|
|
'get': (
|
||
|
|
'/site/get',
|
||
|
|
{'properties': {'key': {'type': 'string'}, 'locale': {'type': 'string'}},
|
||
|
|
'required': ['locale'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save': (
|
||
|
|
'/site/save',
|
||
|
|
{'properties': {'data': {'properties': {'address': {'type': 'string'},
|
||
|
|
'advantagesGallery': {'type': 'string'},
|
||
|
|
'brandName': {'type': 'string'},
|
||
|
|
'companyName': {'type': 'string'},
|
||
|
|
'contact': {'type': 'string'},
|
||
|
|
'description': {'type': 'string'},
|
||
|
|
'email': {'type': 'string'},
|
||
|
|
'footerBrandDescription': {'type': 'string'},
|
||
|
|
'footerDescription': {'type': 'string'},
|
||
|
|
'footerEyebrow': {'type': 'string'},
|
||
|
|
'footerTitle': {'type': 'string'},
|
||
|
|
'illustration': {'type': 'string'},
|
||
|
|
'internationalName': {'type': 'string'},
|
||
|
|
'introduction': {'type': 'string'},
|
||
|
|
'legalOwner': {'type': 'string'},
|
||
|
|
'logo': {'type': 'string'},
|
||
|
|
'mobile': {'type': 'string'},
|
||
|
|
'pageHeroImage': {'type': 'string'},
|
||
|
|
'phone': {'type': 'string'},
|
||
|
|
'productionAddress': {'type': 'string'},
|
||
|
|
'projectKey': {'type': 'string'},
|
||
|
|
'projectName': {'type': 'string'},
|
||
|
|
'title': {'type': 'string'},
|
||
|
|
'wechatQrCode': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
'id': {'type': 'integer'},
|
||
|
|
'locale': {'type': 'string'},
|
||
|
|
'status': {'type': 'string'}},
|
||
|
|
'required': [],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
},
|
||
|
|
'storage': {
|
||
|
|
'download-from-url': (
|
||
|
|
'/storage/downloadFromUrl',
|
||
|
|
{'properties': {'url': {'maxLength': 2048, 'type': 'string'}},
|
||
|
|
'required': ['url'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'get-config': (
|
||
|
|
'/storage/getConfig',
|
||
|
|
{'properties': {}, 'required': [], 'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'register-external-image': (
|
||
|
|
'/storage/registerExternalImage',
|
||
|
|
{'properties': {'url': {'maxLength': 2048, 'type': 'string'}},
|
||
|
|
'required': ['url'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'save-config': (
|
||
|
|
'/storage/saveConfig',
|
||
|
|
{'properties': {'bucket': {'maxLength': 120, 'type': 'string'},
|
||
|
|
'clientSecret': {'maxLength': 255, 'type': 'string'}},
|
||
|
|
'required': ['bucket'],
|
||
|
|
'type': 'object'},
|
||
|
|
None,
|
||
|
|
),
|
||
|
|
'upload-file': (
|
||
|
|
'/storage/uploadFile',
|
||
|
|
{'properties': {'file': {'format': 'binary', 'type': 'string'}},
|
||
|
|
'required': ['file'],
|
||
|
|
'type': 'object'},
|
||
|
|
'upload',
|
||
|
|
),
|
||
|
|
'upload-image': (
|
||
|
|
'/storage/uploadImage',
|
||
|
|
{'properties': {'file': {'format': 'binary', 'type': 'string'}},
|
||
|
|
'required': ['file'],
|
||
|
|
'type': 'object'},
|
||
|
|
'upload',
|
||
|
|
),
|
||
|
|
},
|
||
|
|
}
|