mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
55 lines
2.1 KiB
Plaintext
55 lines
2.1 KiB
Plaintext
extends layout
|
||
|
||
block content
|
||
.container(style= "margin-top: 70px;")
|
||
.row
|
||
.col-md-10
|
||
h1 Crafatar
|
||
hr
|
||
p Welcome to Crafatar, an API for Minecraft's faces!
|
||
|
||
hr
|
||
h2 Documentation
|
||
|
||
h3 Endpoint
|
||
p
|
||
| Replace
|
||
mark.green uuid
|
||
| with a Mojang UUID to get the related head. All images are PNGs.
|
||
.code
|
||
| <img src="#{domain}/avatars/
|
||
mark.green uuid
|
||
| ">
|
||
|
||
h3 Parameters
|
||
h4 size
|
||
p The size of the image in pixels, 1 - 512. <br> Default is 160.
|
||
h4 default
|
||
p The image to be returned when the uuid has no skin (404). <br> Valid options are
|
||
a(href="/avatars/00000000000000000000000000000000?default=steve") steve
|
||
| or
|
||
a(href="/avatars/00000000000000000000000000000000?default=alex") alex
|
||
| .<br> The standard value is calculated based on the UUID (even = alex, odd = steve)
|
||
h4 helm
|
||
p Get an avatar with the second (helmet) layer applied. <br> The content of this parameter is ignored
|
||
|
||
h3 HTTP headers
|
||
p Images will come with these HTTP headers, useful for debugging.
|
||
h4 Response-Time
|
||
p The time, in milliseconds, it took Crafatar to process the request.
|
||
h4 X-Storage-Type
|
||
p Either 'local' or 'downloaded'. Local means that Crafatar already had the image on disk, while downloaded means that it was retrieved from Mojang's skin servers.
|
||
|
||
h3 Examples
|
||
p Get jeb_'s avatar, 160 × 160 pixels
|
||
.code <img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6">
|
||
p Get jeb_'s avatar, 64 × 64 pixels
|
||
.code <img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64">
|
||
p Get jeb_'s helmet avatar, 64 × 64 pixels
|
||
.code <img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64&helm">
|
||
.col-md-2.center
|
||
.sideface.redstone_sheep(title="redstone_sheep")
|
||
.sideface.Jake0oo0(title="Jake0oo0")
|
||
.sideface.Notch(title="Notch")
|
||
.sideface.sk89q(title="sk89q")
|
||
.sideface.md_5(title="md_5") |