I’m doing interviews for companies that would involve API integrations. I’ve done a couple now where I was given some general API information (some intentionally unclear, some more clear) and I felt I didn’t do well. Mainly I was nervous, and felt very pressured just to understand how the different parts of the APIs interact with each other and should be interacted with. This is despite doing this for work and myself not feeling as nervous doing more common coding tests which I don’t do as much at work(thanks to doing examples on hackerrank, Leetcode helping me feel more comfortable).

So what are the resources I should leverage to practice API integrations? How should I go about practicing? Especially considering that I do need to perform in a certain way during interviews.

  • wondrous_strange@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 days ago

    Restful API is an approach that is very open to interpretations and mistakes. Meaning, there’s nothing that forces a given api to be restful unless the devs were able to do it correctly. Even then, most apis are not expected to be used without thorough documentation.

    To practice I would suggest:

    Go over the principles of RESTful and try to understand http better ( verbs, request and response structure, headers etc…

    There are many free to use apis across the web. Pick any of them, read the docs and try creating a programmatic workflow with that api. It can anything - minimal ui to help uaer interact with it or some background service that talks to the api etc.

    Be sure to check the ebtitiea docs as well.

    Last thing, it is fairly common to see swagger(openapi) and if the api does support it, it’ll make it a lot easier-for you to understand it.

    Good luck:)