From 7132ab7eedc51e0199ff971974b8195490d42d1f Mon Sep 17 00:00:00 2001 From: Theron Luhn Date: Tue, 31 Dec 2019 11:41:06 -0800 Subject: [PATCH] Update README for new `api_spec` property. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ec6b892..af12395 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,7 @@ def create_widget(context, request): return HTTPCreated() ``` -You can also pass a dictionary as the `apispec` property to +You can also pass a dictionary as the `api_spec` property to `Configurator.add_view` or `@view_config`, which will be merged with the spec in the same way. This can be advantageous if a single function services multiple views. @@ -193,7 +193,7 @@ multiple views. context=WidgetResource, method='post', validate=WidgetSchema(), - apispec={ + api_spec={ 'summary': 'Create widget', }, ) @@ -201,7 +201,7 @@ multiple views. context=WidgetResource, method='put', validate=WidgetSchema(), - apispec={ + api_spec={ 'summary': 'Update widget', }, )