REST和JSON API之间的差异 [英] Differences between REST and JSON APIs

查看:509
本文介绍了REST和JSON API之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

想知道REST和JSON API之间的差异,你怎么和他们的接口,以及如何去分析的结果。我的目标是建立我的Andr​​oid手机告诉我下一班火车将到达地铁站我家,使用由运输公司提供的开发API的小型应用程序。

Wondering what the differences between REST and JSON APIs are, how you interface with them, and how to go about parsing the results. My goal is to build a small application for my android phone to tell me when the next train will get to the subway station by my house, using the developer API provided by the transit agency.

我学习C ++的大学,而是希望去这在Java中。我很抱歉,如果这更是一个讨论的问题,而不是一个黑与白的回答问题,但我不能在别的地方找到任何信息。

I'm learning C++ in university, but hope to go about this in Java. I'm sorry if this is more of a discussion question rather than a black and white answer question, but I can't find any information elsewhere.

在问题的API

推荐答案

说的第一件事,JSON不是一种API,但格式web服务和程序使用,以传达给对方一个数据。

Very first thing to mention, JSON is not an API but a data format webservices and programs use to communicate to each other.

Web服务可以是许多形式,但最流行的是REST和SOAP。 Web服务给你一个方法来与远程机器的互动,并与他们交流。

Webservices can be of many forms but most popular are REST and SOAP. Webservices give you a way to interact with remote machines and communicate with them.

要了解更多关于JSON,访问 http://www.json.org/ ,的 http://en.wikipedia.org/wiki/Json

To read more about Json, visit http://www.json.org/ , http://en.wikipedia.org/wiki/Json

和阅读更多有关Web服务,访问, http://en.wikipedia.org/wiki/Webservices

And to read more about Webservices, visit, http://en.wikipedia.org/wiki/Webservices

这篇关于REST和JSON API之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆