Skip to content

A REST API demo project showcasing posts, user information, and comments fetched from JSONPlaceholder with a modern, user-friendly interface.

Notifications You must be signed in to change notification settings

sushant707/REST-API-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST API Demo Project

This project is a demonstration of using vanilla JavaScript to interact with REST APIs. It fetches and displays posts, user information, and comments from the JSONPlaceholder API. The application also features enhanced styling and error handling for a better user experience.

Features

  • Fetch Posts: Retrieve and display posts from the JSONPlaceholder API.
  • Display User Information: Show user details (name and email) for each post.
  • Post Details View: View the full details of a post, including comments, upon clicking.
  • Styling Improvements: Enhance the visual appeal of the page with CSS styling for a better user interface.
  • Error Handling: Properly handle and display errors to the user.

Technologies Used

  • HTML
  • CSS
  • JavaScript (ES6)
  • JSONPlaceholder API

Usage

  1. Clone the repository.
  2. Open index.html in your web browser to explore the application.

Screenshots

Screenshot 2024-06-02 223610

Screenshot 2024-06-02 223628

Screenshot 2024-06-02 223640

Contributing

Contributions are welcome! Fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License.

About

A REST API demo project showcasing posts, user information, and comments fetched from JSONPlaceholder with a modern, user-friendly interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published