cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

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).

AzmirAhmmhed
Member
4 REPLIES 4

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

AzmirAhmmhed
Member

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

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

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