search -exam in skool app

 Step 01: hit the request at postman: Hit the API:

localhost:3000//api/v1/exams?search=physics

exams?search=value

and hit the request at send in the postman and fix byebug in the index section and then test the code at byebug ,remove the byebug andget the results at the postman and get the request

if okay and find then use this code

also use this api in the service section and find the result at the postman

also test this code which is of search code : test this code at the rails console

Step 01: We use the code in the controller and hit the request by the postman and then we get the result at the postman.

Step 02: Attach this API with the services in the Frontend


Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5