Follow

General usage

** For security reasons, all examples provided in helpdesk will link the API DEV version. You can create a test DEV account for free on http://godev.bear2b.com and may request admin role. **

 

BEAR API is a REST one. This means it will respond to the following requests: 

HTTP Request

Description

GET

Use this request to read data from server

E.g. GET http://apidev.bear2b.com/users will get a list of same-account users

POST

Create new object

E.g. POST on http://apidev.bear2b.com/users with required parameters will create new user

PUT

Update existing object

Unique ID of the object is required for this request

E.g. PUT http://apidev.bear2b.com/users/5?first_name=Kim&last_name=Ivanov will update user’s first and last names

DELETE

Delete existing object

Unique ID of the object is required for this request

E.g. DELETE http://apidev.bear2b.com/users/5 will delete user with id=5

There are a lot of REST tools which can help you send any type of REST request. We often use at BEAR the REST Console - Google Chrome’s extension.

0 Comments

Please sign in to leave a comment.