Flask-RESTful Documentation Release 0.3.10todos[todo_id] = request.form['data'] return {todo_id: todos[todo_id]} api.add_resource(TodoSimple, '/<string:todo_id>') if __name__ == '__main__': app.run(debug=True) You can try it like this: $ curl 201 and return custom headers return {'task': 'Hello world'}, 201, {'Etag': 'some-opaque- string'} Endpoints Many times in an API, your resource will have multiple URLs. You can pass multiple response. from flask_restful import fields, marshal_with resource_fields = { 'task': fields.String, 'uri': fields.Url('todo_ep') } class TodoDao(object): def __init__(self, todo_id, task):0 码力 | 42 页 | 84.60 KB | 1 年前3
Click Documentation
Release 4.2.dev0Types can be implemented with different behavior and some are supported out of the box: str / click.STRING: The default parameter type which indicates unicode strings. int / click.INT: A parameter that only parameter that accepts boolean values. This is automatically used for boolean flags. If used with string values 1, yes, y and true convert to True and 0, no, n and false convert to False. click.UUID: A which are the parameter declara- tions. Each string with a single dash is added as short argument; each string starting with a double dash as long one. If a string is added without any dashes, it becomes the0 码力 | 101 页 | 407.32 KB | 1 年前3
Debian GNU/Linux 安装手册
January 8, 2024debian-installer/locale string en_US # The values can also be preseeded individually for greater flexibility. #d-i debian-installer/language string en #d-i debian-installer/country string NL #d-i debian-installer/locale debian-installer/locale string en_GB.UTF-8 # Optionally specify additional locales to be generated. #d-i localechooser/supported-locales multiselect en_US.UTF-8, nl_NL.UTF-8 键盘配置包括选择的 keymap 和 (对于非拉丁 keymap) 切换键,该键用于非拉丁和 netcfg/link_wait_timeout string 10 # If you have a slow dhcp server and the installer times out waiting for # it, this might be useful. #d-i netcfg/dhcp_timeout string 60 #d-i netcfg/dhcpv6_timeout string 60 # Automatic0 码力 | 93 页 | 562.93 KB | 1 年前3
PlantUML 1.2020.22 Guide de référence du langagerecently activated life-line. The syntax is simply return label where label, if provided, can be any string acceptable on conventional messages. @startuml Bob -> Alice : hello activate Alice Alice -> Alice objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String Guide de référence du langage PlantUML (1.2020.22) 17 / 294 1.24 Shortcut syntax for activation (1.2020.22) 40 / 294 3.5 Définir les visibilités 3 DIAGRAMME DE CLASSES @startuml class Dummy { String data void methods() } class Flight { flightNumber : Integer departureTime : Date } @enduml You0 码力 | 295 页 | 3.03 MB | 1 年前3
PlantUML 1.2020.23 Guide de référence du langagerecently activated life-line. The syntax is simply return label where label, if provided, can be any string acceptable on conventional messages. @startuml Bob -> Alice : hello activate Alice Alice -> Alice objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String Guide de référence du langage PlantUML (1.2020.23) 18 / 307 1.25 Shortcut syntax for activation (1.2020.23) 50 / 307 3.5 Définir les visibilités 3 DIAGRAMME DE CLASSES @startuml class Dummy { String data void methods() } class Flight { flightNumber : Integer departureTime : Date } @enduml You0 码力 | 308 页 | 3.12 MB | 1 年前3
PlantUML 1.2021.1 Guide de référence du langagerecently activated life-line. The syntax is simply return label where label, if provided, can be any string acceptable on conventional messages. @startuml Bob -> Alice : hello Guide de référence du langage objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Alice --> Bob : ok @enduml 1.27 Shortcut syntax for Notez que la syntaxe est très souple sur l’ordre des champs et des méthodes. @startuml class Dummy { String data void methods() } class Flight { flightNumber : Integer departureTime : Date } @enduml You0 码力 | 385 页 | 4.05 MB | 1 年前3
PlantUML 1.2021.2 Guide de référence du langagerecently activated life-line. The syntax is simply return label where label, if provided, can be any string acceptable on conventional messages. @startuml Bob -> Alice : hello Guide de référence du langage objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Alice --> Bob : ok @enduml 1.27 Shortcut syntax for Notez que la syntaxe est très souple sur l’ordre des champs et des méthodes. @startuml class Dummy { String data void methods() } class Flight { flightNumber : Integer departureTime : Date } @enduml You0 码力 | 391 页 | 4.10 MB | 1 年前3
PlantUML 1.2021.3 Guide de référence du langagerecently activated life-line. The syntax is simply return label where label, if provided, can be any string acceptable on conventional messages. @startuml Bob -> Alice : hello Guide de référence du langage objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Alice --> Bob : ok @enduml 1.27 Shortcut syntax for Notez que la syntaxe est très souple sur l’ordre des champs et des méthodes. @startuml class Dummy { String data void methods() } class Flight { flightNumber : Integer departureTime : Date } @enduml You0 码力 | 406 页 | 4.24 MB | 1 年前3
PlantUML 1.2023.11 Guide de référence du langageobjet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Alice --> Bob : ok @enduml Guide de référence du Notez que la syntaxe est très souple sur l’ordre des champs et des méthodes. @startuml class Dummy { String data void methods() } class Flight { flightNumber : Integer departureTime : Date } @enduml Guide ligne. Vous pouvez alors utiliser {classifier} plutôt que {static}. @startuml class Dummy { {static} String id {abstract} void methods() } @enduml 3.8 Corps de classe avancé Par défaut, méthodes et champs0 码力 | 534 页 | 7.56 MB | 1 年前3
PlantUML 1.2019.6 Guide de référence du langagerecently activated life-line. The syntax is simply return label where label, if provided, can be any string acceptable on conventional messages. @startuml Bob -> Alice : hello activate Alice Alice -> Alice objet. @startuml Bob -> Alice : hello create Other Alice -> Other : new create control String Alice -> String note right : You can also put notes! Guide de référence du langage PlantUML (1.2019.6) 16 Notez que la syntaxe est très souple sur l'ordre des champs et des méthodes. @startuml class Dummy { String data void methods() } class Flight { flightNumber : Integer departureTime : Date } @enduml You0 码力 | 174 页 | 1.91 MB | 1 年前3
共 18 条
- 1
- 2













