Wonderful hours that changed my programing life
Tags: postmanstudent, postman
Published: 2023-12-17 06:11:09

As a student I learnt about API (in detailed) at API 101 workshop which held on yesterday (16.12.2023). I want to express a comprehensive workshop overview. Mainly I understood the CRUD operations in API development.

What is CRUD? CRUD stands for Create, Read, Update and Delete. These operations playing a crucial role in handling and manipulation information. Purpose of this Blog post is to serve as a detailed recap and reflection on the API 101 workshop and as a beginner, highlighting the usefulness of applying CRUD operations into practice. 

The API 101 workshop was designed as an introductory session to provide participants with a foundational understanding of Application Programming Interfaces (APIs). First, we familiarize with the fundamental concepts of API. I highly appreciate great job of @supunsathsara during all these hours.

##Create (POST) Operation
One of the basic CRUD operations is Create (POST), which adds new data to a system. The HTTP POST method is frequently used for this operation in the context of API development. It lets clients send information to a server, usually to create a new resource.
  To send information to a server: {base_url)/(information)
  (Brackets are not required in the path)
  And the corresponding example of a POST request using a tool 
  like Postman:
        {
        "author": " ",
        "joke": " ",
        "source": " "
         }

Here, I include how i implement the POST method during the API 101 workshop. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ebntzq8yztab3yvi44ht.PNG)

## Read (GET) Operation
A crucial aspect of CRUD is the Read (GET) operation, which involves reading or retrieving current data from a system. The HTTP GET method is frequently used in API development to enable clients to request and receive data from a server.
    
  To get random information: {base_url}/(information)
  (Brackets are not required in the path)
Here, I include how i implement the GET method during the API 101 workshop. 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4dne2a0bzbo18c4e7m44.PNG)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1ptxk9v7unsamnrwjtt3.PNG)

## Update (PUT/PATCH) Operation
In CRUD, the update operation modifies or changes already-existing data in a system. This is usually done in API development with the HTTP PUT or PATCH methods. Because it enables clients to make modifications to particular resources, the Update operation is important because it guarantees that the data is correct and current.

  To update an existing information: {base_url}/(information)
  (Brackets are not required in the path)
  In this make sure to change the id to the id that we used 
  earlier in the POST request.
  
} "id": "",
        "author": " ",
        "quote": " ",
        "source": " "
}

Here, I include how i implement the GET method during the API 101 workshop. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wpf964vnqocop8bbveyo.PNG)

## Delete (DELETE) Operation
In CRUD, the Delete operation is removing or erasing data that already exists in a system. This function is commonly performed in API development with the HTTP DELETE method. The Delete operation's goal is to give users a way to permanently remove particular resources, which will assist in effective data management and the preservation of system integrity.

  To delete an information: {base_url}/(information)/{id of the 
  relevant information)}
  (Brackets are not required in the path)

Here, I include how i implement the GET method during the API 101 workshop. 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yxx6pd7hharg8qpy1s5i.PNG)

Finally as a beginner we learnt about fundamental concepts of CRUD operations in the context of API development.
API 101 workshop served as a practical guide, offering participants hands-on experience with these operations and showcasing their significance in building robust and interactive applications. 
As developers continue to explore and apply CRUD operations, they lay the foundation for scalable, interactive, and well-architected software solutions.

:Yuwani