Section - 22: Network Automation and Programmability
Lesson 107: Rest based API
Welcome back to our Free CCNA Course Series and in this video, we will discuss Rest based APIs or you can say restful APIs. There are many more APIs, but we are using restful API because it uses http to function, which is very good for networks.
What is Rest Based API?
Rest Based API or Restful API uses http to work or function which is very good for a network. APIs allow programs running on different computers to work cooperatively, exchanging data to achieve some goal.
Attributes of REST API:
Client/Server Architecture: Two application communication through API in a client server architecture where the client sends http get request and the other application will give back a reply or the data requested.
Stateless Operations: By stateless, it means the Rest Based API will not record about the past attributes or in other words no state is maintained.
Cacheable/Uncacheable: It means the API isn’t going to ask for the static data that are present on some website again and again, instead it will make cache files so that it doesn’t have to download the data every time.
CRUD Functions:
Before discussing about CRUD, let’s know about what is a variable?
Variable is of two types namely:
Simple Variable
List & Dictionary Variable
In a programming language, a variable is a label that has a defined value.
Like the List is the variable and the interface name that I will get by the device are the values. For example – Gig 0/0, Gig 0/1, Gig 0/2 and more.
Create: It means one can define value to this particular interfaces. New instances of data structure and variables can be created by the client at the server initializing their values as of the server.
Read: The current values of variables existing at the server can be retrieved while saving a copy of the structures, values and variables at the client.
Delete: Varied instances of data variables can be deleted from the server.
Update: Existing values of the variables can be updated and changed.
So, in this video, we have discussed attributes of API and its main functions it which is commonly termed CRUD.
If you want to get hands-on practical training and improve your communication skills as well, then enrol in our 100% job guarantee courses. These courses are provided in an intensive training model, which includes 2 hrs of theoretical sessions, 2 hours of mandatory practical sessions and personality development sessions.
We have received multiple awards for outstanding placements and we are the only Cisco training company that places students with MNCs like Iopex, Cisco, Concentrix, Locuz and the list just goes on.
For more details visit our website or get in touch with our education counsellor at -
WhatsApp - +917840018889
Toll-free number - 1800-313-2545
Email - admin@networkbulls.com
![](https://i.ytimg.com/vi/arPsFglDOeI/maxresdefault.jpg)