php - Correct api access url in codeigniter

353

I am writting apis for mobile app in codeigniter but i don't know how can i access those apis through chrome rest console or as a url for mobile apps.

My structure is like following

-application
  - config
  - controllers
  - v1 (in v1 folder bellow structure contains appapi.php file)
   - appapi.php (My api file which contains functions to be called with url i.e v1\getrecord)
 - models
  - other folders
-database
-other folders

I am not able to access those functions in my appapi.php through url url will be something like myproject/v1/appapi/function_name

Any one can please tell me about the correct url?

People are also looking for solutions to the problem: Call Variable from a function to another function within PHP class

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.