Q:

ServiceStack - ApiMember Verb - Not Working

I have a DTO which I share for POST and GET method, and I want to have one extra field for GET method, so I tried using it like this:
//...
 [ApiMember(Name = "Status", Verb = "GET", Description = "Status", DataType = "string")]
        public string Status { get; set; }   
//...

But for some reason, it's still showing in Swagger-UI for both methods in documentation.
Verb says: Gets or sets verb to which applies attribute. By default applies to all verbs.

A:

The metadata attributes do not change the behavior or schema of a Service they're only used to document it.
If you want Services to have a different Schema for GET and POST requests they need to be in different Request DTOs, each with just the fields that are available for each verb, e.g:
[Route("/customers", "GET")]
class GetCustomer { ... }

[Route("/customers")]
class StoreCustomer { ... }

public class MyServices : Service
{
    public object Get(GetCustomer request) => ...;

    public object Any(StoreCustomer request) => ...;
}

