|
13 | 13 | </div> |
14 | 14 | <div class="col text-center"> |
15 | 15 | <h3>Usage</h3> |
16 | | - <p> |
17 | | - You can use this API in your projects and tutorials. You can find all resources under <a href="/swaggerui" target="_blank">documentation</a> tab. |
18 | | - We also provide <a href="/postman" target="_blank">Postman collection</a> and <a href="/api/openapi" target="_blank">Open API definition</a>. |
19 | | - <br> |
20 | | - <br> |
21 | | - For performance testing, you can find <a href="https://github.com/profiq/swapi-elixir?tab=readme-ov-file#docker" target="_blank">docker image</a> on our GitHub repo and run the whole application yourself. |
22 | | - </p> |
| 16 | + <p>You can use this API in your projects and tutorials. You can find all resources under <a href="/swaggerui" target="_blank">documentation</a> tab. We also provide <a href="/postman" target="_blank">Postman collection</a> and <a href="/api/openapi" target="_blank">Open API definition</a>.</p> |
| 17 | + <p>For performance testing, you can find <a href="https://github.com/profiq/swapi-elixir?tab=readme-ov-file#docker" target="_blank">docker image</a> on our GitHub repo and run the whole application yourself.</p> |
23 | 18 | </div> |
24 | 19 | <div class="col text-center"> |
25 | 20 | <h3>Original project</h3> |
26 | | - <p>This is rewrite of <a href="https://swapi.dev/" target="_blank">swapi.dev</a> project. The motivation for our implementation is to provide <b>better performance</b> (CDN) and different technology aproach (Elixir). |
27 | | - <br> |
28 | | - <br> |
29 | | - Feel free to contribute on our <a href="https://github.com/profiq/swapi-elixir" target="_blank">GitHub.</a> </p> |
| 21 | + <p>This is rewrite of <a href="https://swapi.dev/" target="_blank">swapi.dev</a> project. The motivation for our implementation is to provide <b>better performance</b> (CDN) and different technology aproach (Elixir).</p> |
| 22 | + <p>Feel free to contribute on our <a href="https://github.com/profiq/swapi-elixir" target="_blank">GitHub.</a></p> |
30 | 23 | </div> |
31 | 24 | </div> |
32 | 25 | </div> |
|
35 | 28 | <div class="row row-cols-1 row-cols-lg-2"> |
36 | 29 | <div class="col mt-2"> |
37 | 30 | <div class="border rounded"> |
38 | | - <div class="border-bottom"> |
39 | | - <pre class="m-2">GET /api/planets/1</pre> |
| 31 | + <div class="border-bottom p-2 d-flex align-items-center"> |
| 32 | + <span class="border rounded me-2 px-2 py-1 request-method">GET</span> |
| 33 | + <code id="urlExample1" class="request-url flex-grow-1"><%= url(~p"/api/planets/1") %></code> |
| 34 | + <button class="btn btn-link p-0 d-flex align-items-center" title="Copy URL" onclick="copyExampleUrl('urlExample1')"> |
| 35 | + <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copy" width="20" height="20"> |
| 36 | + <symbol id="copyIcon" viewBox="0 0 24 24" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"> |
| 37 | + <path stroke="none" d="M0 0h24v24H0z" fill="none"/> |
| 38 | + <path d="M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z" /> |
| 39 | + <path d="M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1" /> |
| 40 | + </symbol> |
| 41 | + <use href="#copyIcon" /> |
| 42 | + </svg> |
| 43 | + </button> |
40 | 44 | </div> |
41 | 45 | <%= |
42 | 46 | Phoenix.ConnTest.build_conn() |
|
50 | 54 | </div> |
51 | 55 | <div class="col mt-2"> |
52 | 56 | <div class="border rounded"> |
53 | | - <div class="border-bottom"> |
54 | | - <pre class="m-2">GET /api/starships?search="death star"</pre> |
| 57 | + <div class="border-bottom p-2 d-flex align-items-center"> |
| 58 | + <span class="border rounded me-2 px-2 py-1 request-method">GET</span> |
| 59 | + <code id="urlExample2" class="request-url flex-grow-1"><%= url(~p"/api/starships?search=\"death star\"") %></code> |
| 60 | + <button class="btn btn-link p-0 d-flex align-items-center" title="Copy URL" onclick="copyExampleUrl('urlExample2')"> |
| 61 | + <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-copy" width="20" height="20"> |
| 62 | + <use href="#copyIcon"/> |
| 63 | + </svg> |
| 64 | + </button> |
55 | 65 | </div> |
56 | 66 | <%= |
57 | 67 | Phoenix.ConnTest.build_conn() |
|
0 commit comments