From 46787add6fa569b8d4bfabab31a5a2cc027088b5 Mon Sep 17 00:00:00 2001 From: Asabeneh Date: Tue, 17 Dec 2019 00:27:10 +0200 Subject: [PATCH] day 28 --- readme28-30 | 8 -------- readme28-30.md | 29 +++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 8 deletions(-) delete mode 100644 readme28-30 create mode 100644 readme28-30.md diff --git a/readme28-30 b/readme28-30 deleted file mode 100644 index ffa872a..0000000 --- a/readme28-30 +++ /dev/null @@ -1,8 +0,0 @@ - -# 📘 Day 28 -## 💻 Exercises: Day 28 - - -[<< Part 8 ](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/readme22-24.md) | [Part 10 >>](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/readme28-30.md) - ---- \ No newline at end of file diff --git a/readme28-30.md b/readme28-30.md new file mode 100644 index 0000000..5d10f06 --- /dev/null +++ b/readme28-30.md @@ -0,0 +1,29 @@ +- [📘 Day 28](#%f0%9f%93%98-day-28) +- [Application Programming Interface(API)](#application-programming-interfaceapi) + - [API](#api) + - [Building API](#building-api) + - [💻 Exercises: Day 28](#%f0%9f%92%bb-exercises-day-28) +# 📘 Day 28 +# Application Programming Interface(API) +## API +Application Programming Interface(API). The kind of API will cover in this section is going to be Web APIS. +Web APIs are the defined interfaces through which interactions happen between an enterprise and applications that use its assets, which also is a Service Level Agreement (SLA) to specify the functional provider and expose the service path or URL for its API users. +In the context of web development, an API is defined as a set of specifications, such as Hypertext Transfer Protocol (HTTP) request messages, along with a definition of the structure of response messages, usually in an XML or a JavaScript Object Notation (JSON) format. +Web API has been moving away from Simple Object Access Protocol (SOAP) based web services and service-oriented architecture (SOA) towards more direct representational state transfer (REST) style web resources. +Social media services, web APIs have allowed web communities to share content and data between communities and different platforms. Using API, content that is created in one place dynamically can be posted and updated to multiple locations on the web. +For example, Twitter's REST API allows developers to access core Twitter data and the Search API provides methods for developers to interact with Twitter Search and trends data. Many applications provide API end points. An example [API](https://restcountries.eu/rest/v2/all). +In this section, we will cove a RESTful API that uses HTTP request methods to GET, PUT, POST and DELETE data. + +## Building API +RESTful API is an application program interface (API) that uses HTTP requests to GET, PUT, POST and DELETE data. In the previous sections, we have learned about python, flask and mongoDB. We will use the knowledge we acquire to develop a RESTful API using python flask and mongoDB. Every application which has CRUD(Create, Read, Update, Delete) operation has an API to create data, to get data, to update data or to delete data from database. + + + +## 💻 Exercises: Day 28 + + +[<< Part 8 ](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/readme22-24.md) | [Part 10 >>](https://github.com/Asabeneh/30-Days-Of-Python/blob/master/readme28-30.md) + +--- + +