Announcement

Collapse
No announcement yet.

Postman collection/ API

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • wtconseil
    replied
    Indeed, it could be awesome to have a PostMan public collection !

    Here is the best example i have seen... it's Klaviyo API


    They maintain each API versioning.. with suitable examples.. that's amazing
    ‚Äč Click image for larger version

Name:	image.png
Views:	219
Size:	144.9 KB
ID:	99694
    Attached Files

    Leave a comment:


  • emillod
    replied
    This is propper way to fetch records, through offset param. Thanks to that requests can have big impact on performance. I don't know is there a way to skip pagination by any param in url. You could create controller which would generate array with all records, but i don't think it's a good idea.

    Leave a comment:


  • Shamila Chathuranga
    replied
    I have read this article but I didn't get it, pal.
    Can you explain a bit?

    I need all data in one array but it has given only 200 records.
    How to set pagination properly.

    This is my API:
    {{url}}/Opportunity?select=serviceType%2CassignedUserId%2C assignedUserName%2CisActive&offset=0
    Last edited by Shamila Chathuranga; 09-08-2021, 03:49 AM. Reason: add my API

    Leave a comment:


  • emillod
    replied
    Probably you have to read more about pagination.

    Leave a comment:


  • Shamila Chathuranga
    replied
    Hey guys,

    Thank you for helping me lot

    I have created API Nicely but I have some doubts from JSON response

    It has a total of items 532,
    but the array has only 200 records. I need to get all records in this array.
    How to do it?

    Thank you
    Attached Files

    Leave a comment:


  • emillod
    commented on 's reply
    espcrm controller can also receive get requests

  • espcrm
    commented on 's reply
    Thanks for the info emillod, but if you going to create a API, I'm sure at some point you need to do a "Get" as well. Bit odd if it only Post is created, which is OK for some situation

  • emillod
    replied
    espcrm entryPoint will only process GET requests. If Shamilla want to send POST request, than it require controller from few versions of EspoCRM.

    Leave a comment:


  • espcrm
    replied
    Not sure as this is out of my league but doing a search on api/v1 on the code give you these path/file/config - https://github.com/espocrm/espocrm/search?q=api%2Fv1

    You can probably (I assume you know coding otherwise this going to be a learning experience) add addition api URL, or just change it totally (this will most likely break your system if you are not careful)

    Other keyword you want to search for is "entrypoint" - https://github.com/espocrm/espocrm/search?q=entrypoint

    Perhaps reading through some of the guide/tutorial to see how EspoCRM is design by telecastg might be the way to go and look at documentation.
    If you don't have programming skill, I don't think you can get very far without investment in time and professional/education guidance.

    Leave a comment:


  • emillod
    replied
    Here you have a documenation: https://docs.espocrm.com/development...nd/controller/

    Leave a comment:


  • Shamila Chathuranga
    commented on 's reply
    I mean,

    ex: http://test.com/espocrm/api/v1/Team_...ole_and_custom

    Imagine there's no entity called 'Team_with_role_and_custom' but I need to get or post data using this URL

    how to write route and where should I write route and where should I write my function

  • Shamila Chathuranga
    replied
    Hey Dear,

    Thank all helping me Now all predefined API are found.
    How can I write a custom API in CRM?
    I mean write route, function, and all things about writing my own function in CRM

    Looking for help

    Leave a comment:


  • emillod
    replied
    Shamila Chathuranga


    Here you have propper endpoint. Just replace domain and id with your team id. That's it.

    Leave a comment:


  • Shamila Chathuranga
    commented on 's reply
    Dear @espocrm

    I have set up a postman.

    I have tried different entity names all works well.
    using "/api/v1/User" I can get all users but I need to get some users who have a specific team.
    How to do it using API.

    Thank you
    Looking for help

  • Shamila Chathuranga
    commented on 's reply
    Thank you Vadym
    I have already read this article and I have set up a postman also.
Working...
X