0% found this document useful (0 votes)
4 views

Creating API

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Creating API

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

This is the git command line. We change the directory to gitRepos to have the correct folder.

We then edit the folder name

then using the control panel we press config from apache and copy paste this command
under directory
We can then start the apache. After checking the localhost/ctAPI/ whether if everything is
working, we start mySQL. If there are errors given in the control panel from services MySQL
can be forcefully shut. Afterwards we press admin in the line of MySQL. And it will lead us to
phpAdmin where we will create a new database and link our products.

We then press a create new database and name it product and change it to utf8mb4_bin
since it can support wider range of characters.
After creating the database we click to SQL and copy paste products.sql from our folder.

We then click go and link our products.

As it can be seen from this screenshot our products are visible in the tables.

Finally by going to localhost/ctAPI/api.php we can see whether our api works.

You might also like