mirror of
https://github.com/pheralb/svgl.git
synced 2025-12-29 08:01:36 +08:00
📄 Add /svg/*.svg endpoint to the API docs
This commit is contained in:
@@ -138,6 +138,32 @@ The list of categories is available [here](https://github.com/pheralb/svgl/blob/
|
|||||||
|
|
||||||
</Endpoint>
|
</Endpoint>
|
||||||
|
|
||||||
|
<Endpoint title="Get the SVG code for a logo" method="GET" description="Returns the SVG code directly.">
|
||||||
|
|
||||||
|
```bash
|
||||||
|
https://api.svgl.app/svg/adobe.svg
|
||||||
|
```
|
||||||
|
|
||||||
|
<p></p>
|
||||||
|
|
||||||
|
```html
|
||||||
|
// Returns:
|
||||||
|
<svg width="91" height="80" viewBox="0 0 91 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<g clip-path="url(#clip0_906_1839)">
|
||||||
|
<path d="M56.9686 0H90.4318V80L56.9686 0Z" fill="#EB1000"/>
|
||||||
|
<path d="M33.4632 0H0V80L33.4632 0Z" fill="#EB1000"/>
|
||||||
|
<path d="M45.1821 29.4668L66.5199 80.0002H52.5657L46.1982 63.9461H30.6182L45.1821 29.4668Z" fill="#EB1000"/>
|
||||||
|
</g>
|
||||||
|
<defs>
|
||||||
|
<clipPath id="clip0_906_1839">
|
||||||
|
<rect width="90.4318" height="80" fill="white"/>
|
||||||
|
</clipPath>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
```
|
||||||
|
|
||||||
|
</Endpoint>
|
||||||
|
|
||||||
<Endpoint title="Get only categories" method="GET" description="Returns only categories with the number of SVGs in each category.">
|
<Endpoint title="Get only categories" method="GET" description="Returns only categories with the number of SVGs in each category.">
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user