ApathyBear
ApathyBear

Reputation: 9605

API endpoint confusion

Disclaimer: I am new to working with APIs

I am working on leveraging gimbals API and am trying to figure out what exactly end points are? I realize that they link to a server, but how exactly are they used in development?

Are the endpoints used to link to specific sources of data?

I am using python(django) and it would be great to understand exactly how access and or change information on gimbals end.

PS- When looking at the gimbal api, I noticed that they have a REST api and some other mobile stuff going on. If I am building a web platform, I would only be interested in the REST API portion correct?

Upvotes: 0

Views: 131

Answers (1)

FrobberOfBits
FrobberOfBits

Reputation: 18022

An endpoint in a RESTful API is generally just a URL. The URL represents some kind of resource. If it was an order processing API, the resources would be things like customers, orders, etc.

You interact with these resources by making HTTP requests of various sorts; GET if you want to know the content of a resource, POST if you want to change something, and so on. Have a look at this for basic information on REST and web APIs.

You don't need Django to interact with a RESTful API that someone else provides. All you really need is python's urllib, and maybe the json module, if they're sending the data in JSON. The REST API they provide is probably the main thing they want developers using, but if they have multiple APIs then it's hard to say which one is right for you without understanding the application better.

Upvotes: 1

Related Questions