Week 3 handson - Create and Manage APIs course

Not applicable

I get the following message when I try to test the REST version of joke API (

v1/humor/joke/3229)

[load_file] Bad filename (/www/virtual/jokeindex_com/html/services/20/api/jokeid=3229)

In trace I can see that request sent to target server is to the URL http://test.jokeindex.com/services/20/api/jokeid=3229 with the authorization header so not sure what the problem is

Solved Solved
0 2 424
1 ACCEPTED SOLUTION

Not applicable

The problem is with the syntax of your REST API. You currently have

/www/virtual/jokeindex_com/html/services/20/api/jokeid=3229

What you should have is

/www/virtual/jokeindex_com/html/services/20/api/joke/3229

View solution in original post

2 REPLIES 2

Not applicable

The problem is with the syntax of your REST API. You currently have

/www/virtual/jokeindex_com/html/services/20/api/jokeid=3229

What you should have is

/www/virtual/jokeindex_com/html/services/20/api/joke/3229

Not applicable

thanks Mike I was able to fix the problem