mirror of https://github.com/tiangolo/fastapi.git
🐛 Fix XML example (#710)
This commit is contained in:
parent
a1c9eff041
commit
4915cf0561
|
|
@ -6,12 +6,11 @@ app = FastAPI()
|
||||||
|
|
||||||
@app.get("/legacy/")
|
@app.get("/legacy/")
|
||||||
def get_legacy_data():
|
def get_legacy_data():
|
||||||
data = """
|
data = """<?xml version="1.0"?>
|
||||||
<?xml version="1.0"?>
|
|
||||||
<shampoo>
|
<shampoo>
|
||||||
<Header>
|
<Header>
|
||||||
Apply shampoo here.
|
Apply shampoo here.
|
||||||
<Header>
|
</Header>
|
||||||
<Body>
|
<Body>
|
||||||
You'll have to use soap here.
|
You'll have to use soap here.
|
||||||
</Body>
|
</Body>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue