📄 Add /svg/*.svg endpoint to the API docs

This commit is contained in:
Pablo Hdez
2025-08-06 07:36:16 +00:00
parent ad0768d5f0
commit 819e90ea4e
+26
View File
@@ -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