Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8538105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:04:04+00:00 2026-06-11T11:04:04+00:00

Basically I have a /orders resource and I want users to be able to

  • 0

Basically I have a /orders resource and I want users to be able to do a search for orders based on different criteria.

Let say order has three columns: orderNum, orderDate, and customerName

Now, if a user wants to find all orders with order numbers like ‘manual’, I would do a query like

SELECT * FROM orders WHERE orderNum LIKE '%manual%';

and do not worry I used parametrized statements. I was thinking I could add a form parameter if I am accepting x-www-form-urlencoded in the body indicating whether the user wants to search by orderNum, orderDAte, or customerName, but this is starting to feel like REST-RPC. I would prefer to do it in a more RESTful manner. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:04:05+00:00Added an answer on June 11, 2026 at 11:04 am

    Found this question that was relevant. It is basically the same question. I will rely on SQL errors if a request is made to search for objects based on non-existent properties, and then inform the client, providing a list of possible searchable properties.

    RESTful URL design for search

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically in order to have a profile Block u need - let's say profile
I have a simple ecommerce type site that will have users with accounts, orders,
I have a model Rails model called Orders that has a type_id, location, and
Say, you have a query like SELECT COUNT(*), date FROM ORDERS GROUP BY date
Basically I want to make this SQL query with linq: SELECT * FROM Orders
I have an order processing and catalog system created in CakePHP. It manages orders,
I have a table of posts, each post has an IP address, I want
I have a database which has multiple nested associates. Basically, the structure is as
I basically have this program which fetches orders from a database. My problem is
I'm a beginner at this. Basically I have a form that has the correct

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.