Skip to content

MiguelAngelHorta/API-Data-Display-With-Search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API-Data-Display-With-Search

Fetch & parse data from an API endpoint using python image

Functions

  • fetchItems(): Fetches items from an API endpoint, parses the response as JSON, and then calls displayItems() to render the items on the page.
  • displayItems(items): Clears the existing items list, iterates through each item, constructs HTML list items for each item with ID, name, description, and domain information, and appends the constructed list items to the items list on the page.
  • clearSearch(): Clears input fields for search criteria and then calls fetchItems() to fetch and display all items again.
  • performSearch(): Retrieves search terms from input fields, fetches items from the API endpoint, filters items based on search terms using regular expressions, and calls displayItems() to render the filtered items on the page.

About

Fetch & parse data from an API endpoint using python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages