首页 > 其他分享 >接口开发文档及注意事项

接口开发文档及注意事项

时间:2023-04-27 17:00:48浏览次数:29  
标签:1226 1215 price yangkeduo 接口 文档 注意事项 com properties

接口开发是指通过定义一组接口,使不同的系统或设备之间能够进行数据通信和互操作的过程。以下是一些在接口开发过程中需要注意的事项:

    接口定义:在定义接口时,需要明确接口的输入输出参数、数据类型、异常处理等信息,以确保不同的系统或设备之间能够正确地交换数据。

   接口实现:在实现接口时,需要考虑接口的安全性、性能、可靠性等因素,以确保接口的正确性和稳定性。

   接口测试:在测试接口时,需要确保接口的正确性、可靠性和性能等方面都符合要求,以确保接口的稳定性和可用性。

   接口维护:在维护接口时,需要定期检查接口的正确性、性能和安全性等方面,以确保接口的稳定性和可用性。

   接口协议:在协商接口协议时,需要考虑接口的格式、序列化方式、传输方式等因素,以确保接口的正确性和可靠性。

   接口安全:在设计接口安全性时,需要考虑接口的保密性、完整性和可用性等方面,以确保接口的安全性和可靠性。

   接口标准化:在设计接口时,需要考虑接口的标准化程度、互操作性和可维护性等方面,以确保接口的正确性和可靠性。

   接口文档:在设计接口时,需要考虑接口的文档化程度、可读性和可维护性等方面,以确保接口的正确性和可靠性。


总之,在接口开发过程中,需要考虑多个方面的因素,以确保接口的正确性、可靠性和安全性等方面都符合要求。

接口数据效果展示:

接口开发文档及注意事项_d3

接口数据返回:

{
	"item": {
		"num_iid": 1620002566,
		"title": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装",
		"price": 95.4,
		"minGroupPrice": 95.4,
		"maxGroupPrice": 95.4,
		"total_price": "",
		"desc_short": "【2件套】套装秋冬新款仿獭兔毛钉珠皮草毛毛短外套加厚大衣女装",
		"cid": 8484,
		"orginal_price": 0,
		"nick": "果果家气质女装",
		"num": 1000,
		"sales": 43000,
		"detail_url": "https://mobile.yangkeduo.com/goods1.html?goods_id=1620002566",
		"desc": "<img src=\"https://t00img.yangkeduo.com/goods/images/2018-11-17/ef1d17b69ebf9449a8bb52459b168c26.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-11-17/16008ac19768d05e7dee16406ff958a1.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg\"/><img src=\"https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png\"/><img src=\"https://img.pddpic.com/mms-material-img/2022-09-18/3f89d470-1af8-4dee-b529-6d62aa2ea3b7.png\"/><img src=\"https://www.o0b.cn/i.php?t.png&rid=gw-1.6448bee10ce0b&p=1939419505&k=om.my&t=1682489064\" style=\"display:none\" />",
		"item_imgs": [
			{
				"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/f2f279b5-6000-4fbe-b99b-7c1cbd7884ea.jpg"
			},
			{
				"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/d76f515b-e375-4060-b94e-cf64f6b0964e.jpg"
			},
			{
				"url": "https://t00img.yangkeduo.com/goods/images/2019-08-17/e8fbd9cb-cc74-4caa-9380-84c46d27b008.jpg"
			},
			{
				"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/74257ab65f3f00da7a90fde9042fe640.jpeg"
			},
			{
				"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/d209ef7bcc9183c3bb8ca1dfdb108d49.jpeg"
			},
			{
				"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/efb5db42397550bffd3211ca6f197498.jpeg"
			},
			{
				"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/176019babfdecffa1d9f98f40b7e99b4.jpeg"
			},
			{
				"url": "https://omsproductionimg.yangkeduo.com/images/2017-12-12/bcf848aa71c6389607ae7a84b70f1543.jpeg"
			}
		],
		"pic_url": "http://omsproductionimg.yangkeduo.com/images/2018-06-06/864126a1f461e606796b2204d18a09e9.jpeg",
		"props_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1215:1115501666:颜色:米色两件套(外套+裙子);1215:105309781:颜色:蓝色两件套(外套+裙子);1226:119128:尺码:S(90斤以下);1226:96784:尺码:M(90-100斤);1226:33651:尺码:L(100-110斤);1226:33652:尺码:XL(110-120斤);1226:33653:尺码:2XL(120-130斤);1226:33656:尺码:3XL(130-140斤);",
		"prop_imgs": {
			"prop_img": [
				{
					"properties": "1215:1115500378",
					"url": "http://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg"
				},
				{
					"properties": "1215:1115501666",
					"url": "http://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg"
				},
				{
					"properties": "1215:105309781",
					"url": "http://t00img.yangkeduo.com/goods/images/2018-11-17/48b30664f0f7e526ab1b956e813f25cf.jpeg"
				}
			]
		},
		"props": [
			{
				"name": "面料材质",
				"value": "仿皮草"
			},
			{
				"name": "成分含量",
				"value": "71%(含)—80%(含)"
			},
			{
				"name": "版型",
				"value": "修身"
			},
			{
				"name": "领型",
				"value": "圆领"
			},
			{
				"name": "衣长",
				"value": "短款"
			},
			{
				"name": "是否带毛领",
				"value": "不带毛领"
			},
			{
				"name": "主风格",
				"value": "气质名媛"
			}
		],
		"skus": {
			"sku": [
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115500378;1226:119128",
					"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:119128:尺码:S(90斤以下)",
					"quantity": 108,
					"sku_id": 57114357891
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115500378;1226:96784",
					"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:96784:尺码:M(90-100斤)",
					"quantity": 40,
					"sku_id": 57114357892
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115500378;1226:33651",
					"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33651:尺码:L(100-110斤)",
					"quantity": 59,
					"sku_id": 57114357893
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115500378;1226:33652",
					"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33652:尺码:XL(110-120斤)",
					"quantity": 116,
					"sku_id": 57114357894
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115500378;1226:33653",
					"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33653:尺码:2XL(120-130斤)",
					"quantity": 200,
					"sku_id": 57114357895
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115500378;1226:33656",
					"properties_name": "1215:1115500378:颜色:粉色两件套(外套+裙子);1226:33656:尺码:3XL(130-140斤)",
					"quantity": 126,
					"sku_id": 57114357896
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115501666;1226:119128",
					"properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:119128:尺码:S(90斤以下)",
					"quantity": 962,
					"sku_id": 57114357897
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115501666;1226:96784",
					"properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:96784:尺码:M(90-100斤)",
					"quantity": 135,
					"sku_id": 57114357898
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115501666;1226:33651",
					"properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33651:尺码:L(100-110斤)",
					"quantity": 136,
					"sku_id": 57114357899
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115501666;1226:33652",
					"properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33652:尺码:XL(110-120斤)",
					"quantity": 578,
					"sku_id": 57114357900
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115501666;1226:33653",
					"properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33653:尺码:2XL(120-130斤)",
					"quantity": 124,
					"sku_id": 57114357901
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:1115501666;1226:33656",
					"properties_name": "1215:1115501666:颜色:米色两件套(外套+裙子);1226:33656:尺码:3XL(130-140斤)",
					"quantity": 249,
					"sku_id": 57114357902
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:105309781;1226:119128",
					"properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:119128:尺码:S(90斤以下)",
					"quantity": 556,
					"sku_id": 103851107855
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:105309781;1226:96784",
					"properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:96784:尺码:M(90-100斤)",
					"quantity": 516,
					"sku_id": 103851107856
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:105309781;1226:33651",
					"properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33651:尺码:L(100-110斤)",
					"quantity": 844,
					"sku_id": 103851107857
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:105309781;1226:33652",
					"properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33652:尺码:XL(110-120斤)",
					"quantity": 547,
					"sku_id": 103851107858
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:105309781;1226:33653",
					"properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33653:尺码:2XL(120-130斤)",
					"quantity": 561,
					"sku_id": 103851107853
				},
				{
					"price": 95.4,
					"orginal_price": 115,
					"properties": "1215:105309781;1226:33656",
					"properties_name": "1215:105309781:颜色:蓝色两件套(外套+裙子);1226:33656:尺码:3XL(130-140斤)",
					"quantity": 570,
					"sku_id": 103851107854
				}
			]
		},
		"props_list": {
			"1215:1115500378": "颜色:粉色两件套(外套+裙子)",
			"1215:1115501666": "颜色:米色两件套(外套+裙子)",
			"1215:105309781": "颜色:蓝色两件套(外套+裙子)",
			"1226:119128": "尺码:S(90斤以下)",
			"1226:96784": "尺码:M(90-100斤)",
			"1226:33651": "尺码:L(100-110斤)",
			"1226:33652": "尺码:XL(110-120斤)",
			"1226:33653": "尺码:2XL(120-130斤)",
			"1226:33656": "尺码:3XL(130-140斤)"
		},
		"props_img": {
			"1215:1115500378": "http://t00img.yangkeduo.com/goods/images/2018-08-28/062d42b525a7c786920cbb83ac772af7.jpeg",
			"1215:1115501666": "http://t00img.yangkeduo.com/goods/images/2018-08-28/415bed99d5a925123d7b7c39547205de.jpeg",
			"1215:105309781": "http://t00img.yangkeduo.com/goods/images/2018-11-17/48b30664f0f7e526ab1b956e813f25cf.jpeg"
		},
		"property_alias": "",
		"_ddf": "xdl",
		"shop_id": 461742,
		"seller_info": {
			"nick": "果果家气质女装",
			"score": 4.37,
			"delivery_score": 4.37,
			"item_score": null,
			"shop_type": "",
			"user_num_id": 461742,
			"shop_name": "果果家气质女装",
			"zhuy": "https://mobile.yangkeduo.com/mall_page.html?mall_id=461742",
			"sid": 461742
		},
		"format_check": "ok",
		"desc_img": [
			"https://t00img.yangkeduo.com/goods/images/2018-11-17/ef1d17b69ebf9449a8bb52459b168c26.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-11-17/16008ac19768d05e7dee16406ff958a1.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-11-17/cd0a8a96b783a51236812ce24c59a329.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/4a365b61a80e47288c8609ccd5982396.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/4da59828136c3b1308aad0aa990778a7.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/a953bae2eeb7364ef3ef2976a97d07eb.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/140349649d8b7d08c8e88bfbbaa2f900.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/da910c98fcc8de1b4d2d1498cd7899fd.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/ae0116e589d8de712f8dafd0c356cefe.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/2f60753dfc875a6876adc35833a69d31.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/6f6e54376a66cbc78e16700d4c424fe1.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/b62cabf1d2320c5761e3f4c15203fb20.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/1fa9861a8c99c5e9e8119fd2239fef5a.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/6bc959e32a30424c7a5284a37676999c.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/0aa872fa74599dad7b6aefe6b6c035c0.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/26c3e9d5cfbaf4e8f13b2bdd38f48d71.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2019-11-14/4420a8c3-49ed-46d8-ab55-15e7a638ca31.jpg",
			"https://t00img.yangkeduo.com/goods/images/2018-09-02/20f659b04d3e7e5851c27ff9931c96fc.jpeg",
			"https://t00img.yangkeduo.com/goods/images/2019-02-15/ddf6fe7b-b536-4183-932d-69a1189a3f59.png",
			"https://img.pddpic.com/mms-material-img/2022-09-18/3f89d470-1af8-4dee-b529-6d62aa2ea3b7.png"
		],
		"shop_item": [],
		"relate_items": []
	},
	"error": "",
	"secache": "38dc3c822554ca397f00e5e9b681e8fb",
	"secache_time": 1682489064,
	"secache_date": "2023-04-26 14:04:24",
	"translate_status": "",
	"translate_time": 0,
	"language": {
		"default_lang": "cn",
		"current_lang": "cn"
	},
	"reason": "",
	"error_code": "0000",
	"cache": 0,
	"api_info": "today:4 max:5000 all[12=4+3+5];expires:2099-01-01",
	"execution_time": "7.445",
	"server_time": "Beijing/2023-04-26 14:04:24",
	"client_ip": "115.153.49.113",
	"call_args": {
		"num_iid": "1620002566"
	},
	"api_type": "pinduoduo",
	"translate_language": "zh-CN",
	"translate_engine": "baidu",
	"server_memory": "3.2MB",
	"request_id": "gw-1.6448bee10ce0b",
	"last_id": "1703680178"
}

标签:1226,1215,price,yangkeduo,接口,文档,注意事项,com,properties
From: https://blog.51cto.com/u_15974582/6231837

相关文章

  • API 接口规范
    [API接口规范-BNDong-博客园](https://www.cnblogs.com/bndong/p/6139598.html)整体规范建议采用RESTful方式来实施。协议API与客户端通讯协议主要包含 http 和 https,建议使用 https 确保交互数据的传输安全。域名应该尽量将API部署在专用域名之下。Gohttps:/......
  • Go语言协程技术文档
    协程(goroutine)是Go语言的一种轻量级线程,可以在一个线程中运行多个协程,从而实现高并发程序。协程具有低开销、高效率和易于管理等优点,被广泛应用于网络服务、云计算、大数据处理和人工智能等领域。本文将介绍Go语言协程的基本概念和使用方法。协程的概念协程是一种用户级线程,由Go......
  • lazada按关键字搜索商品API接口
    ​lazada按关键字搜索商品API接口,在lazada上搜索产品,如果只需要搜索单个产品的话,那么直接在搜索框输入“关键字”即可,如果需要多个产品,那么则需要进行关键字扩展。lazada按关键字搜索商品API接口分为两部分:1.查询列表部分:在列表部分输入“关键字”,即可查询到对应的商品列表;2......
  • 通过NG做用户登录验证接口返回的返回体做登录接口判断
    ng获取响应体的json里面的字段需要安装第三方模块ngx_devel_kit的ngx_http_set_misc_module的set_json_var指令,form-input-nginx-modulelocation/api{proxy_passhttp://backend;proxy_set_headerHost$host;proxy_set_headerX-Real-IP$remote_addr;pro......
  • API数据接口该怎么对接
    随着互联网和移动互联网的发展,API(ApplicationProgrammingInterface)接口的作用越来越重要。API接口将各种平台相互连接,使得不同系统的信息可以互相获取和使用,大大提高了系统的互操作性和开发效率。本文将介绍如何对接API数据接口,以及注意事项和技巧。获取API接口首先需要找到需要......
  • API淘宝数据接口
    如果你想在自己的应用中使用淘宝的数据,那么对接淘宝数据接口是必不可少的一步。本文将介绍如何对接API淘宝数据接口,以便你能够顺利获取和使用淘宝的数据。步骤一:获取AppKey和AppSecret首先,在淘宝开放平台申请API接口之前,需要先注册为淘宝开发者并创建应用。创建应用后,你将得到一......
  • vue中实际代码模拟JS中promise调接口的运行流程
    假设我们有一个需要调用接口的场景,我们可以使用Vue中的axios库来发送请求。以下是一个简单的例子://引入axios库importaxiosfrom'axios'//定义一个函数,用于发送请求functionfetchData(){//返回一个Promise对象returnnewPromise((resolve,reject)=>{//发......
  • 如何通过C#/VB.NET 代码调整PDF文档的页边距
    PDF边距是页面主要内容区域和页面边缘之间的距离。与Word页边距不同,PDF文档的页边距很难更改。因为Adobe没有提供操作页边距的直接方法。但是,您可以通过缩放页面内容来改变页边距。本文将介绍如何在不更改页面大小的情况下使用C#/VB.NET代码调整PDF文档的页边距。增加PDF文档的......
  • TypeScript:接口
    介绍TypeScript的核心原则之一是对值所有的结构类型进行类型检查。在TypeScript里,接口的作用就是为这些类型命名和为你的代码或第三方代码定义约束。接口的基本使用interfaceLabelledValue{label:string;}functionprintLabel(labelledObj:LabelledValue){consol......
  • 后端整合 Swagger + Knife4j 接口文档
    接口文档:个人理解的就是后端提供给前端,供前端查看了解数据结构,是前后端联调的基础。Swagger+Knife4j:引入依赖:<!--添加swagger的依赖--><dependency><groupId>com.github.xiaoymin</groupId><artifactId>knife4j-spring-boot-s......