Skip to content

Image display API is a small task that explains the concepts of API like how to fetch images from API and store it into DB

Notifications You must be signed in to change notification settings

web-dev-nav/Image-search-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-search-API

Image display API is a small task that explains the concepts of API like how to fetch images from API and store it into DB. If the search term is already inside the database call instead database in case the next time user request the same search term.

This script is applicable to do these features...

  • Create a PHP application to show the images that we search.
  • There should have a login, login should have an email and password field ( No need of registration, for now, you can manually add one entry in the user table. ).
  • After login, it should show the input box and button to search.
  • Whatever we put in the input box and click on the search button, it should search via API and show the images below the search bar.
  • https://imsea.herokuapp.com - This is the API that you can use to find the image URL. here we can pass any term to get image URL list.
  • Once we get the response from the API, save the URLs and search terms in the database.
  • From the next search If the term is available in the database, it should directly show the result from the database.
  • We should not call API if the search term is available in the database.

Login details

views

image image

Installation

Change the details inside Config/db.php

  $servername = "localhost";
  $username = "u957918675_temp";
  $password = "4~Ybxd+z";
  $db = "u957918675_temp";

Youtube Explained

image search api(Youtube)

About

Image display API is a small task that explains the concepts of API like how to fetch images from API and store it into DB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published