什么是 REST 调用以及如何发送 REST 调用? [英] What is REST call and how to send a REST call?

查看:64
本文介绍了什么是 REST 调用以及如何发送 REST 调用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一些关于 REST 调用的问题.我是 REST 调用的绿色,我想了解什么是 REST 调用以及如何使用 URL 向服务器发送 REST 调用.谁能给我一些基本的教程或链接供我参考?

I want to ask some questions about the REST call. I am the green for the REST call and I would like to like what is REST call and how to use the URL to send a REST call to the server. Can anyone give me some basic tutorial or link for my to reference?

另外,如果我想向服务器发送 REST 调用,我该怎么做?我需要在 URL 中设置一些东西吗?或在服务器中设置一些东西?谢谢.

Besides, if I want to send a REST call to the server, what should I do? Do I need to set something in the URL? or set something in the server? Thank you.

推荐答案

REST 只是一种用于暴露资源的软件架构风格.

REST is just a software architecture style for exposing resources.

  • 明确使用 HTTP 方法.
  • 无国籍.
  • 公开类似于目录结构的 URI.
  • 传输 XML、JavaScript 对象表示法 (JSON) 或两者.

返回有关客户 34456 的信息的典型 REST 调用可能如下所示:

A typical REST call to return information about customer 34456 could look like:

http://example.com/customer/34456

查看 IBM 教程 REST Web 服务

Have a look at the IBM tutorial for REST web services

这篇关于什么是 REST 调用以及如何发送 REST 调用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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