api_spec function

Update the OpenAPI specification using model metadata