Reply
Member
Posts: 2
Registered: ‎04-09-2020

Model Validation and Different Endpoints

In my application, I have two endpoints against my Blog controller. One updates a draft blog which is yet to be published and another to publish the blog.

Blogs are built using drag and drop elements with different properties. It's possible that a draft blog may have an element that has empty properties that are still yet to be set. However a blog that is being published must have all fields set (we can check this using the [Required] attribute against the model).

Member
Posts: 2
Registered: ‎04-09-2020

Re: Model Validation and Different Endpoints

In my application, I have two endpoints against my Blog controller. One updates a draft blog which is yet to be published and another to publish the blog.https://showbox.bio/ https://tutuapp.uno/ https://vidmate.cool/

Blogs are built using drag and drop elements with different properties. It's possible that a draft blog may have an element that has empty properties that are still yet to be set. However a blog that is being published must have all fields set (we can check this using the [Required] attribute against the model).

thankyou my issue has been solved

Member
Posts: 3
Registered: ‎07-25-2020

Re: Model Validation and Different Endpoints

In my application, I have two endpoints against my Blog controller. One updates a draft blog which is yet to be published and another to publish the blog. Smarttip 

Blogs are built using drag and drop elements with different properties. It's possible that a draft blog may have an element that has empty properties that are still yet to be set. However a blog that is being published must have all fields set (we can check this using the [Required] attribute against the model).

thankyou my issue has been solved

Member
Posts: 3
Registered: ‎07-25-2020

Re: Model Validation and Different Endpoints

In my application, I have two endpoints against my Blog controller. One updates a draft blog which is yet to be published and another to publish the blog.Smarttip 

Blogs are built using drag and drop elements with different properties. It's possible that a draft blog may have an element that has empty properties that are still yet to be set. However a blog that is being published must have all fields set (we can check this using the [Required] attribute against the model).

thankyou my issue has been solved

Member
Posts: 3
Registered: ‎07-25-2020

Re: Model Validation and Different Endpoints

In my application, I have two endpoints against my Blog controller. One updates a draft blog which is yet to be published and another to publish the blogSmarttip 

Blogs are built using drag and drop elements with different properties. It's possible that a draft blog may have an element that has empty properties that are still yet to be set. However a blog that is being published must have all fields set (we can check this using the [Required] attribute against the model).

thankyou my issue has been solved