top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

What is the difference between @PathParam and @QueryParam in REST?

+2 votes
1,490 views
What is the difference between @PathParam and @QueryParam in REST?
posted Feb 9, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

DIFFERENCE BETWEEN PathParam and QueryParam:

Query parameters are added to the url after the ? mark, while a path parameter is part of the regular URL.

In the URL below tom could be the value of a path parameter and there is one query parameter with the name id and value 1:

http://queryhome.com/tom?id=1

answer Feb 11, 2015 by Karthick.c
Similar Questions
+3 votes

Happy if it's mostly written in C or C++; as long as it provides a simple routes interface in Python. Currently using bottle and utilizing its application, @route and app.merge(app2) extra features.

+2 votes

I will be designing a REST based API for a cross-platform back end that will serve both desktop Facebook users as well as mobile users. It will handle operations such as user creation, retrieval of user and other data, payment verification and in the case of the desktop side, handle the html/css template customization. The database back end is MySQL and I do need a cache system.

Currently we were using Codeigniter (PHP) for our codebase but as CI seems on the way out, I do not wish to start a new project based on it. I was looking at Laravel for PHP, but, Python is very attractive to me as a language and since the introduction of WSGI, I am confident it can make a difference in performance and code maintainability over PHP while being able to plug in to our dedicated server infrastructure.

Since I am not experienced with Python frameworks (though learning curve is not much of an issue for me) I look to the community to understand which Python framework can rival or surpass Codeigniter in terms of performance in heavy traffic backend solutions (over 1M requests per day, with up to 100 req/sec at peak). I really want to make the switch from PHP to Python as I believe that Python can solve more problems with less code and faster execution time, not to mention freedom from brackets and semicolons.

+2 votes

I am trying to put one search engine interface in REST. To do this I am trying to learn Restframework and Django. One question occurred to me is, whether there is any Restframework editor which may do this job.

Is there any?

I was trying to find out https://pypi.python.org/pypi/restview , is it doing this? In that case, if any one may kindly share some examples or tutorial for it.

0 votes

I have editors which will use syntax highlighting on .rst files, but I'm hoping for something a bit smarter.

What I'd like is an editor with a split window, one side showing the rst that I can edit, the other side showing the formatted text updated as I type. (Or at least, updated every thirty seconds or so.)

Anybody know anything like that?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...