api格式_api平台支持的格式

本文探讨了API平台所支持的格式,包括不同编程语言如Python、Java和Linux下的处理方式,同时也涉及到与机器学习和Android应用的集成。
摘要由CSDN通过智能技术生成

api格式

The API system has built-in content negotiation capabilities. By default, only the JSON-LD format is enabled. However, API Platform Core supports many more formats and can be extended.

API系统具有内置的内容协商功能。 默认情况下,仅启用JSON-LD格式。 但是, API Platform Core支持更多格式,并且可以扩展。

Available formats are: JSON-LD, GraphQL, JSON, JSON:API, HAL, XML, YAML, CSV, HTML (API docs).

可用格式为: JSON-LD,GraphQL,JSON,JSON:API,HAL,XML,YAML,CSV,HTML (API文档)

1. JSON-LD (1. JSON-LD)

Image for post

Data is messy and disconnected. JSON-LD organizes and connects it, creating a better Web.

数据混乱且断开连接。 JSON-LD进行组织和连接,从而创建一个更好的Web。

JSON-LD is a lightweight Linked Data format. It is easy for humans to read and write. It is based on the already successful JSON format and provides a way to help JSON data interoperate at Web-scale. JSON-LD is an ideal data format for programming environments, REST Web services, and unstructured databases such as Apache CouchDB and MongoDB.

JSON-LD是一种轻量级的链接数据格式。 人类易于阅读和书写。 它基于已经成功的JSON格式,并提供了一种方法来帮助JSON数据在Web规模上进行互操作。 JSON-LD是用于编程环境,REST Web服务和非结构化数据库(例如Apache CouchDB和MongoDB)的理想数据格式。

例; (Example;)

{
       
"@context": "https://json-ld.org/contexts/person.jsonld",
"@id": "http://dbpedia.org/resource/John_Lennon",
"name": "John Lennon",
"born": "1940-10-09",
"spouse": "http://dbpedia.org/resource/Cynthia_Lennon"
}

Linked Data

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值