ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 3 voices, and was last updated by Mike Kudelya Mike Kudelya 1 year, 2 months ago.

  • Creator
    Topic
  • #21555
    imwikaash
    imwikaash
    Participant

    Hi
    How to create a Contact using REST web services in java or using rest client ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #21561
    Artem Liubeznyi
    Artem Liubeznyi
    Oro Core

    Hi,

    Please check the API documentation. Thank you.

    #21562
    Mike Kudelya
    Mike Kudelya
    Oro Core

    Hi,

    This tutorial described new API, which will be appear either in 1.10 release or current master branch.

    If you want to create a contact record via rest api, firstly please generate user’s api key and wsse header, how to do this described here, go to [app_url]/api/doc/rest_json_api#get–api-contacts, click on “Sandbox”, click on “Try!”, copy first entity json section, remove ‘”id”: “1”,’ and paste json to testing.json. After that you need to set right wsse header to curl.

    For example i have created ‘testing’ custom entity with ‘name’ field (in your case rename extendtestings to contacts)

    Here is my testing.sh:

    and testing.json:

    Please pay attention, you must re-generate wsse header each time when you want call api. In my example i purposely deleted ‘[‘ char from json, though it exists when you press ‘Try!’ button.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.