{"schema_type":"openapi","schema":"{\n \"openapi\": \"3.0.0\",\n \"info\": {\n \"description\": \"Api接口文档\",\n \"version\": \"1.0\",\n \"title\": \"接口文档\",\n \"contact\": {\n \"name\": \"funo\",\n \"url\": \"http://www.funo.com\"\n }\n },\n \"servers\": [\n {\n \"url\": \"http://172.21.105.59:48805\"\n }\n ],\n \"tags\": [\n {\n \"name\": \"shr-controller\",\n \"description\": \"Shr Controller\"\n }\n ],\n \"paths\": {\n \"/ai-model/shr/staffs/{personnum}/holiday\": {\n \"get\": {\n \"tags\": [\n \"shr-controller\"\n ],\n \"summary\": \"获取员工的假期信息\",\n \"description\": \"根据员工编号返回该员工的假期信息列表\",\n \"operationId\": \"getHoliday\",\n \"parameters\": [\n {\n \"name\": \"Authorization\",\n \"in\": \"header\",\n \"description\": \"请求令牌\",\n \"required\": false,\n \"schema\": {\n \"type\": \"string\",\n \"default\": \"Bearer \\\"F1469E5DF0D2ECCBC37E732606FE290E7A75315127FC73478EEA63658F8A393A\\\"\"\n }\n },\n {\n \"name\": \"personnum\",\n \"in\": \"path\",\n \"description\": \"员工编号\",\n \"required\": true,\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"Request-Url\",\n \"in\": \"header\",\n \"description\": \"请求的url\",\n \"required\": false,\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"TenantId\",\n \"in\": \"header\",\n \"description\": \"租户ID\",\n \"required\": false,\n \"schema\": {\n \"type\": \"string\",\n \"default\": \"0\"\n }\n },\n {\n \"name\": \"Userid\",\n \"in\": \"header\",\n \"description\": \"用户Id\",\n \"required\": false,\n \"schema\": {\n \"type\": \"string\"\n }\n }\n ],\n \"responses\": {\n \"200\": {\n \"description\": \"成功获取假期信息\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"$ref\": \"#/components/schemas/HolidayInfo\"\n }\n }\n }\n },\n \"401\": {\n \"description\": \"Unauthorized\"\n },\n \"403\": {\n \"description\": \"Forbidden\"\n },\n \"404\": {\n \"description\": \"员工编号未找到\"\n },\n \"500\": {\n \"description\": \"获取假期失败\"\n }\n }\n }\n }\n },\n \"components\": {\n \"schemas\": {\n \"HolidayInfo\": {\n \"type\": \"object\",\n \"properties\": {\n \"cycleBeginDate\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"example\": \"2022-01-01 00:00:00.0\",\n \"description\": \"周期开始日期\"\n },\n \"cycleEndDate\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"example\": \"2022-12-31 00:00:00.0\",\n \"description\": \"周期结束日期\"\n },\n \"delaydate\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"example\": \"2023-02-28 00:00:00.0\",\n \"description\": \"延期日期\"\n },\n \"effctdate\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"example\": \"2022-01-01 00:00:00.0\",\n \"description\": \"生效日期\"\n },\n \"freezeLimit\": {\n \"type\": \"number\",\n \"format\": \"double\",\n \"example\": 0,\n \"description\": \"在途额度\"\n },\n \"holidaytypename\": {\n \"type\": \"string\",\n \"example\": \"年假\",\n \"description\": \"假期类型名称\"\n },\n \"holidayunit\": {\n \"type\": \"string\",\n \"example\": \"天\",\n \"description\": \"假期单位\"\n },\n \"preOverdraftLimit\": {\n \"type\": \"number\",\n \"format\": \"double\",\n \"example\": 0,\n \"description\": \"上期透支额度\"\n },\n \"realLimit\": {\n \"type\": \"number\",\n \"format\": \"double\",\n \"example\": 10,\n \"description\": \"实际额度\"\n },\n \"remainLimit\": {\n \"type\": \"number\",\n \"format\": \"double\",\n \"example\": 4,\n \"description\": \"剩余额度\"\n },\n \"usedLimit\": {\n \"type\": \"number\",\n \"format\": \"double\",\n \"example\": 6,\n \"description\": \"已用额度\"\n }\n },\n \"title\": \"HolidayInfo\"\n }\n }\n }\n}\n","icon":{"content":"🕵️","background":"#FEF7C3"},"description":"Api接口文档","credentials":{"auth_type":"api_key","api_key_header":"Authorization","api_key_header_prefix":"custom","api_key_value":"Be*********************************************************************A\""},"privacy_policy":null,"custom_disclaimer":null,"labels":["social","weather"],"provider":"员工的假期信息","original_provider":"员工的假期信息"}curl --location --request POST 'http://172.20.238.8:48806/ai-portal/proxy/console/api/workspaces/current/tool-provider/api/update' \
--header 'Pragma: no-cache' \
--header 'authorization: debug userId=19645' \
--header 'TenantId: 0' \
--header 'content-type: application/json' \
--data-raw '{"schema_type":"openapi","schema":"{\n \"openapi\": \"3.0.0\",\n \"info\": {\n \"description\": \"Api接口文档\",\n \"version\": \"1.0\",\n \"title\": \"接口文档\",\n \"contact\": {\n \"name\": \"funo\",\n \"url\": \"http://www.funo.com\"\n }\n },\n \"servers\": [\n {\n \"url\": \"http://172.21.105.59:48805\"\n }\n ],\n \"tags\": [\n {\n \"name\": \"shr-controller\",\n \"description\": \"Shr Controller\"\n }\n ],\n \"paths\": {\n \"/ai-model/shr/staffs/{personnum}/holiday\": {\n \"get\": {\n \"tags\": [\n \"shr-controller\"\n ],\n \"summary\": \"获取员工的假期信息\",\n \"description\": \"根据员工编号返回该员工的假期信息列表\",\n \"operationId\": \"getHoliday\",\n \"parameters\": [\n {\n \"name\": \"Authorization\",\n \"in\": \"header\",\n \"description\": \"请求令牌\",\n \"required\": false,\n \"schema\": {\n \"type\": \"string\",\n \"default\": \"Bearer \\\"F1469E5DF0D2ECCBC37E732606FE290E7A75315127FC73478EEA63658F8A393A\\\"\"\n }\n },\n {\n \"name\": \"personnum\",\n \"in\": \"path\",\n \"description\": \"员工编号\",\n \"required\": true,\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"Request-Url\",\n \"in\": \"header\",\n \"description\": \"请求的url\",\n \"required\": false,\n \"schema\": {\n \"type\": \"string\"\n }\n },\n {\n \"name\": \"TenantId\",\n \"in\": \"header\",\n \"description\": \"租户ID\",\n \"required\": false,\n \"schema\": {\n \"type\": \"string\",\n \"default\": \"0\"\n }\n },\n {\n \"name\": \"Userid\",\n \"in\": \"header\",\n \"description\": \"用户Id\",\n \"required\": false,\n \"schema\": {\n \"type\": \"string\"\n }\n }\n ],\n \"responses\": {\n \"200\": {\n \"description\": \"成功获取假期信息\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"$ref\": \"#/components/schemas/HolidayInfo\"\n }\n }\n }\n },\n \"401\": {\n \"description\": \"Unauthorized\"\n },\n \"403\": {\n \"description\": \"Forbidden\"\n },\n \"404\": {\n \"description\": \"员工编号未找到\"\n },\n \"500\": {\n \"description\": \"获取假期失败\"\n }\n }\n }\n }\n },\n \"components\": {\n \"schemas\": {\n \"HolidayInfo\": {\n \"type\": \"object\",\n \"properties\": {\n \"cycleBeginDate\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"example\": \"2022-01-01 00:00:00.0\",\n \"description\": \"周期开始日期\"\n },\n \"cycleEndDate\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"example\": \"2022-12-31 00:00:00.0\",\n \"description\": \"周期结束日期\"\n },\n \"delaydate\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"example\": \"2023-02-28 00:00:00.0\",\n \"description\": \"延期日期\"\n },\n \"effctdate\": {\n \"type\": \"string\",\n \"format\": \"date-time\",\n \"example\": \"2022-01-01 00:00:00.0\",\n \"description\": \"生效日期\"\n },\n \"freezeLimit\": {\n \"type\": \"number\",\n \"format\": \"double\",\n \"example\": 0,\n \"description\": \"在途额度\"\n },\n \"holidaytypename\": {\n \"type\": \"string\",\n \"example\": \"年假\",\n \"description\": \"假期类型名称\"\n },\n \"holidayunit\": {\n \"type\": \"string\",\n \"example\": \"天\",\n \"description\": \"假期单位\"\n },\n \"preOverdraftLimit\": {\n \"type\": \"number\",\n \"format\": \"double\",\n \"example\": 0,\n \"description\": \"上期透支额度\"\n },\n \"realLimit\": {\n \"type\": \"number\",\n \"format\": \"double\",\n \"example\": 10,\n \"description\": \"实际额度\"\n },\n \"remainLimit\": {\n \"type\": \"number\",\n \"format\": \"double\",\n \"example\": 4,\n \"description\": \"剩余额度\"\n },\n \"usedLimit\": {\n \"type\": \"number\",\n \"format\": \"double\",\n \"example\": 6,\n \"description\": \"已用额度\"\n }\n },\n \"title\": \"HolidayInfo\"\n }\n }\n }\n}\n","icon":{"content":"🕵️","background":"#FEF7C3"},"description":"Api接口文档","credentials":{"auth_type":"api_key","api_key_header":"Authorization","api_key_header_prefix":"custom","api_key_value":"Be*********************************************************************A\""},"privacy_policy":null,"custom_disclaimer":null,"labels":["social","weather"],"provider":"员工的假期信息","original_provider":"员工的假期信息"}'{}