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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:37:02+00:00 2026-06-13T13:37:02+00:00

I have a model which I’m exposing over a REST interface. Over the course

  • 0

I have a model which I’m exposing over a REST interface. Over the course of this model’s lifecycle some fields will become read only, whilst other will remain editable.

I’m happy with handling this on the server side (as per this question) – I’ll expect the client to send all of the data and I’ll return an HTTP error 409 if they attempt to change a read only field.

However, how can/should the client discover if a field is read only in order to allow it to disable inputs?

  • 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-13T13:37:03+00:00Added an answer on June 13, 2026 at 1:37 pm

    @JimmyP

    Here is a simple example:

    *** Request ***
    GET /resource/12 HTTP/1.1
    Host: service.org
    
    *** Response ***
    HTTP/1.1 200 Ok
    Content-Type: …
    Content-Length: …
    Link: </resource/12/edit-form>; rel="edit-form"; type="text/html"
    
    [Entity Body Goes Here]
    

    Pay attention to following details:

    • Link header (see RFC: https://www.rfc-editor.org/rfc/rfc5988)
    • link’s relation value "edit-form" (see RFC: https://www.rfc-editor.org/rfc/rfc6861)
    • type "text/html" you can use any media type here which has enough expressive capabilities to indicate which data elements need to be submitted.

    If client can recognise link header and value of "rel" attribute, then it can fetch editing resource and determine which fields need to be send back. Of course besides data elements(i.e. fields) "form" may also indicate submission URI, data encoding type, HTTP method etc…

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

Sidebar

Related Questions

I have a model which has 2 fields, a and b like this: class
I have a Model which has some constants defined, like below: class Order(models.Model): WAITING
I have a model Task which will HABTM many TaskTargets. When it comes to
I have a model which has a nullable foreign key relation with itself (this
I have a model which has a template field. This template is HTML and
I have a model which has a boolean property and some other properties that
I have a model which looks like this: class MyModel(models.Model) value = models.DecimalField() date
I have a model which has many of another model but this model only
I have Registration model(which has fields login, password, email, mobile) and want to use
I have a model which has a method called 'has_voted'. It looks like this...

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.