简体   繁体   English

如何使用Postman从curl发布REST

[英]How to Post a REST from curl using Postman

I am trying add new contacts to Freshsales CRM in my Java Spring MVC Web Application. 我正在尝试在Java Spring MVC Web应用程序中向Freshsales CRM添加新联系人。 I have the following curl cammand to add contacts to fresh sales. 我有以下卷曲卷发器,可以将联系人添加到新销售中。

curl -H "Authorization: Token token=sfg999666t673t7t82" -H "Content-Type: application/json" -d '{"contact":{"first_name":"James", "last_name":"Sampleton (sample)", "mobile_number":"1-926-555-9503"}}' -X POST "https://domain.freshsales.io/api/contacts"

I need to know how I can post this REST from the curl using POSTMAN. 我需要知道如何使用POSTMAN.从curl中发布此REST POSTMAN.

  1. Open Postman 开放邮递员
  2. Change method to POST, add url, add Authorization in headers 将方法更改为POST,添加url,在标题中添加授权
  3. Add body 加体
  4. Set format to application/json 将格式设置为application / json
  5. Hit on Send 点击发送

Postman documentation for sending API requests 用于发送API请求的邮递员文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试使用Postman POST到REST时出现异常 - Exception when trying to POST using Postman to REST 如何使用curl使用2个参数进行POST? 休息。 Java的 - How to POST with 2 parameters using curl? REST. Java 如何使用 curl 将 CSV 文件发布到弹簧休息端点 - How to post a CSV file to a spring rest endpoint using curl 如何使用邮递员休息客户端将邮递请求发送到以下邮递方法 - How to send post request to the below post method using postman rest client 使用 Postman 和 Curl 测试 Spring 引导后端发布请求 - Testing Spring Boot Backend Post Request using Postman and Curl 我可以将多个对象发布到 REST 服务但只有一个作为@RequestParams 以及如何从 PostMan 调用它吗 - Can I post multiple objects to a REST service but only one as @RequestParams and how to call it from PostMan REST POST 与 POSTMAN 一起正常工作,但在使用 Spring RestTemplate 时出现异常 - REST POST works correctly with POSTMAN but exception when using Spring RestTemplate 卷曲POST以休息模板 - curl POST to rest template 如何防止从Postman调用Rest WebService? - how to prevent calling the Rest WebService from Postman? 使用Curl捕获通过POST通过Java代理从PHP发送到Java Rest WS的POST发送的输入参数 - Catch the input parameter sent through POST from PHP to Java Rest WS through Java Proxy using Curl
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM