Skip to content

Latest commit

 

History

History

0x15-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

API (Application Programming Interface)

Note

APIs are a set of rules that allows one software application to interact with another. APIs define the methods and data formats that applications can use to request and exchange information. They play a crucial role in enabling different software systems to communicate and work together.

download

Background Context

Old-school system administrators usually only know Bash and that is what they use to build their scripts. While Bash is perfectly fine for a lot of things, it can quickly get messy and not efficient compared to other programming languages. The new generation of system administrators, usually called SREs, are pretty much regular software engineers but instead of building products, they are managing systems. And one of the big differences with their predecessors is that they know more than just Bash scripting.

One popular way to expose an application and dataset is to use an API. Often, they are the public facing part of websites and micro-services so that allow outsiders to interact with them – access and modify their data. In this project, you will access employee data via an API to organize and export them to different data structures.

This is a perfect example of a task that is not suited for Bash scripting, so let’s build Python scripts.

Files & Description

Files Description
0-gather_data_from_an_API.py Python script that, using this REST API, for a given employee ID, returns information about his/her TODO list progress.
1-export_to_CSV.py Fetch Employees TODO list and exports the data in the CSV format
2-export_to_JSON.py Fetch Employees TODO list and exports the data in json format
3-dictionary_of_list_of_dictionaries.py Fetch all Employees TODO lis and exports the data in json format