Skip to content

Commit

Permalink
Update README for new api_spec property.
Browse files Browse the repository at this point in the history
  • Loading branch information
luhn committed Dec 31, 2019
1 parent 5e913da commit 7132ab7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -193,15 +193,15 @@ multiple views.
context=WidgetResource,
method='post',
validate=WidgetSchema(),
apispec={
api_spec={
'summary': 'Create widget',
},
)
@view_config(
context=WidgetResource,
method='put',
validate=WidgetSchema(),
apispec={
api_spec={
'summary': 'Update widget',
},
)
Expand Down

0 comments on commit 7132ab7

Please sign in to comment.