DELETE

The DELETE method will remove a resource from the specified endpoint, for example, deleting an arena from the Arenas table. It requires a record identifier to specify the resource to be removed:

@app.route('/nba/api/v0.1/arena/delete/<int:arena_id>', methods=['DELETE'])
def delete_arena(arena_id):
arena = session.query(Arena).delete(arena_id)
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset