-
-
Notifications
You must be signed in to change notification settings - Fork 390
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying to gh-pages from @ fd878fd 🚀
- Loading branch information
1 parent
ac47333
commit a40af4b
Showing
5 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1589,7 +1589,7 @@ <h2>Using DTO Factories<a class="headerlink" href="#using-dto-factories" title=" | |
<div class="admonition"> | ||
<p class="admonition-title">Run it</p> | ||
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>><span class="w"> </span>curl<span class="w"> </span>http://127.0.0.1:8000/users<span class="w"> </span>-H<span class="w"> </span>Content-Type:<span class="w"> </span>application/json<span class="w"> </span>-d<span class="w"> </span><span class="o">{</span><span class="s2">"name"</span>:<span class="s2">"Litestar User"</span>,<span class="s2">"password"</span>:<span class="s2">"xyz"</span>,<span class="s2">"created_at"</span>:<span class="s2">"2023-04-24T00:00:00Z"</span><span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"id"</span>:<span class="s2">"ce81627b-7b5c-4f76-882a-ed933bb70293"</span>,<span class="s2">"name"</span>:<span class="s2">"Litestar User"</span>,<span class="s2">"password"</span>:<span class="s2">"xyz"</span>,<span class="s2">"created_at"</span>:<span class="s2">"2023-04-24T00:00:00Z"</span><span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"id"</span>:<span class="s2">"01ced66e-f9cd-4ff9-bc6e-32f6c38a365d"</span>,<span class="s2">"name"</span>:<span class="s2">"Litestar User"</span>,<span class="s2">"password"</span>:<span class="s2">"xyz"</span>,<span class="s2">"created_at"</span>:<span class="s2">"2023-04-24T00:00:00Z"</span><span class="o">}</span> | ||
</pre></div> | ||
</div> | ||
</div> | ||
|
@@ -1646,7 +1646,7 @@ <h2>Using DTO Factories<a class="headerlink" href="#using-dto-factories" title=" | |
<div class="admonition"> | ||
<p class="admonition-title">Run it</p> | ||
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>><span class="w"> </span>curl<span class="w"> </span>http://127.0.0.1:8000/users<span class="w"> </span>-H<span class="w"> </span>Content-Type:<span class="w"> </span>application/json<span class="w"> </span>-d<span class="w"> </span><span class="o">{</span><span class="s2">"name"</span>:<span class="s2">"Litestar User"</span>,<span class="s2">"password"</span>:<span class="s2">"xyz"</span>,<span class="s2">"created_at"</span>:<span class="s2">"2023-04-24T00:00:00Z"</span><span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"created_at"</span>:<span class="s2">"0001-01-01T00:00:00"</span>,<span class="s2">"id"</span>:<span class="s2">"e24b79b5-f27f-4b2d-8fbf-071436201ddb"</span>,<span class="s2">"name"</span>:<span class="s2">"Litestar User"</span><span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"created_at"</span>:<span class="s2">"0001-01-01T00:00:00"</span>,<span class="s2">"id"</span>:<span class="s2">"5b790ef3-5fa5-4215-8489-f926b62f50e5"</span>,<span class="s2">"name"</span>:<span class="s2">"Litestar User"</span><span class="o">}</span> | ||
</pre></div> | ||
</div> | ||
</div> | ||
|
@@ -1909,7 +1909,7 @@ <h2>Renaming fields<a class="headerlink" href="#renaming-fields" title="Permalin | |
<div class="admonition"> | ||
<p class="admonition-title">Run it</p> | ||
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>><span class="w"> </span>curl<span class="w"> </span>http://127.0.0.1:8000/users<span class="w"> </span>-H<span class="w"> </span>Content-Type:<span class="w"> </span>application/json<span class="w"> </span>-d<span class="w"> </span><span class="o">{</span><span class="s2">"userName"</span>:<span class="s2">"Litestar User"</span>,<span class="s2">"password"</span>:<span class="s2">"xyz"</span>,<span class="s2">"created_at"</span>:<span class="s2">"2023-04-24T00:00:00Z"</span><span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"created_at"</span>:<span class="s2">"0001-01-01T00:00:00"</span>,<span class="s2">"id"</span>:<span class="s2">"ee3c9439-24c9-4205-aa66-ea6ca7d5ce04"</span>,<span class="s2">"userName"</span>:<span class="s2">"Litestar User"</span><span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"created_at"</span>:<span class="s2">"0001-01-01T00:00:00"</span>,<span class="s2">"id"</span>:<span class="s2">"95bc1895-91fa-4a59-81dc-2c5e707ae3a3"</span>,<span class="s2">"userName"</span>:<span class="s2">"Litestar User"</span><span class="o">}</span> | ||
</pre></div> | ||
</div> | ||
</div> | ||
|
@@ -2001,7 +2001,7 @@ <h2>Renaming fields<a class="headerlink" href="#renaming-fields" title="Permalin | |
<div class="admonition"> | ||
<p class="admonition-title">Run it</p> | ||
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>><span class="w"> </span>curl<span class="w"> </span>http://127.0.0.1:8000/users<span class="w"> </span>-H<span class="w"> </span>Content-Type:<span class="w"> </span>application/json<span class="w"> </span>-d<span class="w"> </span><span class="o">{</span><span class="s2">"firstName"</span>:<span class="s2">"Litestar User"</span>,<span class="s2">"password"</span>:<span class="s2">"xyz"</span>,<span class="s2">"createdAt"</span>:<span class="s2">"2023-04-24T00:00:00Z"</span><span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"createdAt"</span>:<span class="s2">"0001-01-01T00:00:00"</span>,<span class="s2">"id"</span>:<span class="s2">"77f23bb2-214a-4b3e-95e7-afd44e704fcd"</span>,<span class="s2">"firstName"</span>:<span class="s2">"Litestar User"</span><span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"createdAt"</span>:<span class="s2">"0001-01-01T00:00:00"</span>,<span class="s2">"id"</span>:<span class="s2">"9d0caff8-2669-4a8c-8cf1-39aa5a029822"</span>,<span class="s2">"firstName"</span>:<span class="s2">"Litestar User"</span><span class="o">}</span> | ||
</pre></div> | ||
</div> | ||
</div> | ||
|
@@ -2310,7 +2310,7 @@ <h2>DTO Data<a class="headerlink" href="#dto-data" title="Permalink to this head | |
<div class="admonition"> | ||
<p class="admonition-title">Run it</p> | ||
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>><span class="w"> </span>curl<span class="w"> </span>http://127.0.0.1:8000/users<span class="w"> </span>-H<span class="w"> </span>Content-Type:<span class="w"> </span>application/json<span class="w"> </span>-d<span class="w"> </span><span class="o">{</span><span class="s2">"name"</span>:<span class="s2">"Peter"</span>,<span class="s2">"email"</span>:<span class="w"> </span><span class="s2">"[email protected]"</span>,<span class="w"> </span><span class="s2">"age"</span>:41<span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"name"</span>:<span class="s2">"Peter"</span>,<span class="s2">"email"</span>:<span class="s2">"[email protected]"</span>,<span class="s2">"age"</span>:41,<span class="s2">"id"</span>:<span class="s2">"690265f4-7698-4371-8f98-b7cc7881982a"</span><span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"name"</span>:<span class="s2">"Peter"</span>,<span class="s2">"email"</span>:<span class="s2">"[email protected]"</span>,<span class="s2">"age"</span>:41,<span class="s2">"id"</span>:<span class="s2">"21b99d0d-6614-4aa2-ae09-aa2c05872eb7"</span><span class="o">}</span> | ||
</pre></div> | ||
</div> | ||
</div> | ||
|
@@ -2355,7 +2355,7 @@ <h2>DTO Data<a class="headerlink" href="#dto-data" title="Permalink to this head | |
<div class="admonition"> | ||
<p class="admonition-title">Run it</p> | ||
<div class="highlight-shell notranslate"><div class="highlight"><pre><span></span>><span class="w"> </span>curl<span class="w"> </span>http://127.0.0.1:8000/users<span class="w"> </span>-H<span class="w"> </span>Content-Type:<span class="w"> </span>application/json<span class="w"> </span>-d<span class="w"> </span><span class="o">{</span><span class="s2">"name"</span>:<span class="s2">"Peter"</span>,<span class="w"> </span><span class="s2">"email"</span>:<span class="w"> </span><span class="s2">"[email protected]"</span>,<span class="w"> </span><span class="s2">"age"</span>:41<span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"name"</span>:<span class="s2">"Peter"</span>,<span class="s2">"email"</span>:<span class="s2">"[email protected]"</span>,<span class="s2">"age"</span>:41,<span class="s2">"id"</span>:<span class="s2">"cd5e1d34-0f39-4ff8-9780-9a926a168756"</span><span class="o">}</span> | ||
<span class="o">{</span><span class="s2">"name"</span>:<span class="s2">"Peter"</span>,<span class="s2">"email"</span>:<span class="s2">"[email protected]"</span>,<span class="s2">"age"</span>:41,<span class="s2">"id"</span>:<span class="s2">"51ad7a76-e0b0-41af-9c9a-6664c75527f5"</span><span class="o">}</span> | ||
</pre></div> | ||
</div> | ||
</div> | ||
|