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 8822165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:02:20+00:00 2026-06-14T06:02:20+00:00

I am creating a web service following the REST style so I am using

  • 0

I am creating a web service following the REST style so I am using JAX-RS. However, the question is in the more general form so the technology shouldn’t matter.

Let say you have three resources in your system.
Quiz, Question and QuestionFeedback. Now let say you create a path for the Quiz resource: /quiz

One quiz object has a list of questions, and the each question has a list of feedbacks.

I also have a path for questions: /questions and you can POST feedback on the sub-resource (is that the correct term?) on the question so let say: /question/1/feedback.

However should this path be available through the quiz too? Are there any rules on this, or is this up to the developer (of course it is.., but is it usual)?

Example: /quiz/questions/1/feedback. What I am trying to ask is where the boundries goes. Should you make the same operations available in nested path, the same way as you do when they are “top level” path?

  • 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-14T06:02:22+00:00Added an answer on June 14, 2026 at 6:02 am

    We have been utilizing the composition vs aggregation rule in our web services implementation. The basic premise being that resources that are composited have their life cycles fully managed by their parent resource. Whereas those that are aggregated are only managed from an association point of view

    So given a parent resource, we (typically) map the HTTP verbs to management operations on the sub resource like so:

               Composition       Aggregation
    POST          create           associate
    GET            read               read
    PUT           update           reassociate
    DELETE        delete           disassociate
    

    For composite GET’s we define enough end points to fully query the sub resource. For aggregated GET’s we only return enough information to define the actual endpoint to do a full query on.

    Som if we were coding up a Quiz API, we would have

    • /quiz/questions/1
    • /questions/1
    • /questions/1/feedback

    But not:

    • /quiz/questions/1/feedback
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating a REST Web Service using Java and Jersey API. The basic
I'm creating REST service using ASP.NET Web API. How can I return 401 status
I am creating a simple SOAP web service using a SLSB and JAX-WS annotations.
I am creating an application which involves so many web-service calls. I am using
I am creating a web service with spring + jetty + cxf using the
I am creating a Web Service using ASP.NET C#. I am sending various data
I am creating a .Net web service to receive and process serialized form data
I am creating a Spring REST web service in java, that can be used
i am creating a web service using 3rd party wsdl that helps me in
I am using MS Access Database with C# and creating a web service. For

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.