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

  • SEARCH
  • Home
  • 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 9289857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:16:50+00:00 2026-06-18T20:16:50+00:00

We are currently designing an OData compliant entity data model that will be consumed

  • 0

We are currently designing an OData compliant entity data model that will be consumed by a mobile application. The team is divided into two; the backend developers providing the OData services and the front-end developers consuming these services.

One point of disagreement between front-end and backend developers is about the design of our main entity. From the front-end perspective, it should look like:

Order:
Order ID
Order Type
Assigned To
Customer ID
Price
Currency
etc...

The Order object will be queried with such URLs:

http://SERVICE_ROOT_URL/Orders?$filter=Order_Type eq 'Inquiry' or Order_Type eq 'Quotation'
http://SERVICE_ROOT_URL/Orders?$filter=Order_Type eq 'Inquiry' and Assigned_To eq 'James7'

The backend developers are willing to add a new field to the Order entity and use this field to understand what the user is querying. Let’s name this new field Request Code. With the request code field, the queries will look like:

http://SERVICE_ROOT_URL/Orders?$filter=Request_Code eq '0022' // The orders requiring approval and the current user can approve them
http://SERVICE_ROOT_URL/Orders?$filter=Request_Code eq '0027' // The orders with the open status

Basically, the Request Code is not an actual part of the entity but artificial. It just adds some intelligence so that the querying becomes easier for the backend. This way, the backend will only support those queries that have this request code. The Request Code is also planned to be used in the update scenario, where the front-end is expected to pass the Request Code when updating the Order entity. This way, the backend will know which fields to update by looking at the request code.

I am in the front-end and I don’t think Request Code should be included in the model. It makes the design encrypted and takes away the simplicity of the OData services. I also don’t see any added value other than making things easier at the backend.

Is this a common practice in OData Services design?

  • 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-18T20:16:51+00:00Added an answer on June 18, 2026 at 8:16 pm

    To me, this extra property is inappropriate. It adds an extra layer of semantics on top of OData; which requires extra understanding and extra coding to deal with. It only adds accidental complexity, it leaks a backend implementation detail to its public API.

    The OData querying interface should be enough to describe most situations. When it’s not enough, you can create service operations to describe extra business semantics.

    So, for example, this:

    /Orders?$filter=Request_Code eq '0022' // The orders requiring approval and the current user can approve them
    /Orders?$filter=Request_Code eq '0027' // The orders with the open status
    

    Could become this:

    /GetOrdersRequiringApprovalFromUser
    /GetOpenOrders
    

    Also, for the update logic, OData already supports updating individual properties.

    So, in sum, don’t invent another protocol on top of OData. Use what it provides.

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

Sidebar

Related Questions

I am currently designing a class library that will provide data to a web
I'm currently designing a mobile application that can send and read messages to a
I am currently designing a web application that will allow users to schedule tasks
I'm currently designing an application which I will ultimately want to move to Windows
I'm currently designing a program that will involve some physics (nothing too fancy, a
I'm currently designing a database that has a table events that will be insert
I'm currently designing an assembly that will be used by third parties. One of
I'm currently designing an architecture for a web-based application that should also provide some
I'm currently designing a service. It is a multi-tier service, that stores data from
I'm currently designing an Android application, which will be published in Play for free.

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.