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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:49:10+00:00 2026-05-14T05:49:10+00:00

I am currently working on a REST service. This service has an entity which

  • 0

I am currently working on a REST service. This service has an entity which has different versions, similar to Wikipedia articles.

Now I’m wondering what I should return if for

GET /article/4711

Should I use a (temporary) redirect to the current version, e.g.

GET /article/4711/version/7

Or should I return the current version directly? Using redirects would considerably simplify HTTP caching (using Last-Modified) but has the disadvantages a redirect has (extra request, ‘harder’ to implement). Therefore I’m not sure whether this is good practice though.

Any suggestions, advise, or experiences to share?

(btw: ever tried search for “REST Version”? Everything you get is about the version of the API rather than entities. So please bear with me if this is a duplicate.)

  • 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-05-14T05:49:10+00:00Added an answer on May 14, 2026 at 5:49 am

    If you treat versions as entities (which by the looks of it you do) this is what I’d suggest:

    GET /article/4711

    returns a list of all versions (and links to them). Which makes /article/4711 a container entity.

    GET /article/4711/latest

    returns contents of the latest version. You might want to consider /version/latest to get in-line with the below.

    GET /article/4711/version/7

    returns the specific version of the article.

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

Sidebar

Related Questions

I have a simple WCF4 REST service which is working fine when using a
I'm currently working on a Rest-Service that needs to call another Rest-Method provided on
Can anybody tell me why is this REST service not working? namespace WCFRestExample {
I am currently working on a asp.net site which has a 2 tiered architecture.
I'm working on a REST service that has a few requirements: It has to
I am currently working on a WCF application that consumes a Rails REST Service.
Im currently working with an API which requires we send our collection details in
I have written a WCF service with the REST template that has the defaultOutgoingResponseFormat
I am currently working on a projects API layer with an existing REST services
I'm currently working on a project where the front-end has to be a mobile

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.