First of all
- If you got some error, make sure the bellow points:
- URL
usr
pwd
- Cookie
parameter
DocType
Doc
- Permissions
- HTTP response Code
1. Auth
- This is mandatory before any sequence of requests (except Auth).
- After pass the auth, you should get and save the cookie.
- You should send it with your API call, and it should be valid.
URL
http(or https)://(URL)/api/method/login
Method
Parameters
usr
- mandatory
- Login name of your WELA.
pwd
- mandatory
- Password for
usr
.
Return
- SUCCESS
- JSON (with
message
property)
- FAIL
2. Search
URL
http(or https)://(WELA)/api/resource/(DocType name)
Method
Parameters
limit_start
- optional
- default: 0
- Offset for pagination
limit_page_length
- optional
- default: 20
- Limit for pagination
conditions
fields
- optional
- Keys and values in the DocType.
- e.g. "name=first_name"
Return
3. Get
URL
http(or https)://(WELA)/api/resource/(DocType name)/(Doc name)
Method
Parameters
Return
4. Insert
URL
http(or https)://(WELA)/api/resource/(DocType name)
Method
Parameters
Return
5. Update
URL
http(or https)://(WELA)/api/resource/(DocType name)/(Doc Name)
Method
Parameters
Return
6. Delete
URL
http(or https)://(WELA)/api/resource/(DocType name)/(Doc Name)
Method
Parameters
Return