Skip to content

Backend service that includes two APIs: one for basic CRUD operations on blog posts and another for fetching COVID-19 data. It's designed for practicing API consumption.

Notifications You must be signed in to change notification settings

devhnry/ThirdPartyAPI-Integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Third-Party-API Integration API

Overview

Welcome to the Third-Party-API Integration API repository. This backend service contains two APIs consumed. One provides basic CRUD operations for managing blog posts. It exposes specific endpoints under /api/ to create, delete, update, and fetch posts as well as endpoints to fetch data on COVID. This code-base was used to practice consuming APIs.

Endpoints for Covid API

  • GET /api/countries: Retrieve all countries with COVID.
  • GET /api/statistics: Retrieve statistics of the COVID Victims for Each Country.

Endpoints for BlogPost API

  • GET /api/getPost/{id}: Gets a Post by its ID.
  • POST /api/insertPost: Creates a new post.
  • PUT /api/updatePost/{id}: Update a posts by ID.
  • DELETE /api/deletePost/{id}: Deletes a post by ID.

Usage

  1. Retrieve a post by ID:

    • Request: GET /api/getPost/{id}
    • Response: Returns a Post based on the ID
  2. Create a new POST:

    • Request: POST /api/insertPost
    • Body: JSON object containing post details.
    • Response: Returns the newly created post with its assigned ID.
  3. Update an existint post:

    • Request: PUT /api/updatePost/{id}
    • Body: JSON object containing updated post details.
    • Response: Returns the updated post details.
  4. Delete a post by ID:

    • Request: DELETE /api/deletePost/{id}
    • Response: Deletes the book with the specified ID from the database and Returns a Message.

Contribution

Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please feel free to open an issue or submit a pull request.

About

Backend service that includes two APIs: one for basic CRUD operations on blog posts and another for fetching COVID-19 data. It's designed for practicing API consumption.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages