Model For Creation DTO

The Model For Creation DTO is the simplest of the generated DTOs in use. It’s purpose is direct and it contains all of the Model properties except the Id.

Lets assume the same Model as used in the Model DTO documentation page.

Class Model
    public guid ModelId
    public string StringProp1
    public int IntProp2
    public datetime DateTimeProp3

The Model For Creation DTO will contain only the properties that are not the automatically generated Id.

{
    "StringProp1":"this is a string",
    "IntProp2":"123",
    "DateTimeProp3":"2019-09-11 1200:00.0000"
}

The above would be submitted in a post to the base address generated for your api. The response will contain the same information with an attached Id for confirmation of insertion into the data backend.

{
    "ModelId":"{expected guid}",
    "StringProp1":"this is a string",
    "IntProp2":"123",
    "DateTimeProp3":"2019-09-11 1200:00.0000"
}

The above will match the Model DTO specified here.