INTRODUTION TO REST API
What is API
What is REST API
Features of REST API
Principles of REST API
Methods of REST API
Advantages of using REST API
What is an API
Application Programming Interface
“An application programming interface
(API) is a set of subroutine definitions,
protocols, and tools for building application
software. In general terms, it is a set of clearly
defined methods of communication between
various software components".
An API is a software interface which allows
other applications to communicate with our
application.
What is REST API
Representational State Transfer
It is an architectural style as well as an approach for communications
purpose that is often used in various web services development
It is often regarded as the “language of internet”
It is a stateless client and server model
Features of REST API
▪ Simpler than SOAP
– Simple Object Access Protocol
– Earlier version
– Harder than REST API
▪ Documentation
– Comes with proper documentation
– Every steps clearly describe
▪ Error messages
– Can have proper message about errors
– Easy to understand and debug
Principles of REST API
Stateless Uniform Interface
Cacheable Layered System
Client Server Code on Demand
Methods Of REST API
HTTP Method CRUD Method Description
POST CREATE Creates new resource
GET READ Returns resource
representation
PUT UPDATE Updates/creates new
resource
DELETE DELETE Deletes new resource
Advantages of using REST API
Due to its scalability
Due to its flexibility and portability
Due to its independence
Public REST APIs
▪ PokeAPIThe largest media franchise of all time now has an easy way to get data on the 800+ Pokemon.
▪ NASA API Space, the final frontier. Get data on astroids, galaxies, and more.
▪ Open Food Facts A huge amount of data on food products from around the world.
▪ TransLoc OpenAPI Get live data of public transportation of cities and college campuses.
▪ Urban Dictionary API It’s amazing what slang people come up with.
▪ Merriam-Webster Dictionary API For those that want real words’ definitions and synonyms.
▪ Numbers API Interesting facts and trivia on numbers.
▪ WeatherBit API Current and historical weather data.
▪ US Government Data API A fairly big catch-all for dozens of United State data samples such as
agriculture, health, and public safety.
▪ Bible APIThe best selling book of all time.The greatest story ever told
Further reading
▪ https://www.smashingmagazine.com/2018/01/understanding-using-
rest-api/
▪ https://www.sitepoint.com/developers-rest-api/
▪ https://www.mulesoft.com/resources/api/what-is-rest-api-design
THE END
THANKYOU!

introduction about REST API

  • 1.
    INTRODUTION TO RESTAPI What is API What is REST API Features of REST API Principles of REST API Methods of REST API Advantages of using REST API
  • 2.
    What is anAPI Application Programming Interface “An application programming interface (API) is a set of subroutine definitions, protocols, and tools for building application software. In general terms, it is a set of clearly defined methods of communication between various software components". An API is a software interface which allows other applications to communicate with our application.
  • 3.
    What is RESTAPI Representational State Transfer It is an architectural style as well as an approach for communications purpose that is often used in various web services development It is often regarded as the “language of internet” It is a stateless client and server model
  • 4.
    Features of RESTAPI ▪ Simpler than SOAP – Simple Object Access Protocol – Earlier version – Harder than REST API ▪ Documentation – Comes with proper documentation – Every steps clearly describe ▪ Error messages – Can have proper message about errors – Easy to understand and debug
  • 5.
    Principles of RESTAPI Stateless Uniform Interface Cacheable Layered System Client Server Code on Demand
  • 6.
    Methods Of RESTAPI HTTP Method CRUD Method Description POST CREATE Creates new resource GET READ Returns resource representation PUT UPDATE Updates/creates new resource DELETE DELETE Deletes new resource
  • 7.
    Advantages of usingREST API Due to its scalability Due to its flexibility and portability Due to its independence
  • 8.
    Public REST APIs ▪PokeAPIThe largest media franchise of all time now has an easy way to get data on the 800+ Pokemon. ▪ NASA API Space, the final frontier. Get data on astroids, galaxies, and more. ▪ Open Food Facts A huge amount of data on food products from around the world. ▪ TransLoc OpenAPI Get live data of public transportation of cities and college campuses. ▪ Urban Dictionary API It’s amazing what slang people come up with. ▪ Merriam-Webster Dictionary API For those that want real words’ definitions and synonyms. ▪ Numbers API Interesting facts and trivia on numbers. ▪ WeatherBit API Current and historical weather data. ▪ US Government Data API A fairly big catch-all for dozens of United State data samples such as agriculture, health, and public safety. ▪ Bible APIThe best selling book of all time.The greatest story ever told
  • 9.
    Further reading ▪ https://www.smashingmagazine.com/2018/01/understanding-using- rest-api/ ▪https://www.sitepoint.com/developers-rest-api/ ▪ https://www.mulesoft.com/resources/api/what-is-rest-api-design
  • 10.