|
@@ -8,15 +8,15 @@ block content
|
|
|
hr
|
|
|
p Welcome to Crafatar, an API for Minecraft's faces!
|
|
|
|
|
|
- h2 API
|
|
|
hr
|
|
|
+ h2 Documentation
|
|
|
|
|
|
h3 Endpoint
|
|
|
p
|
|
|
| Replace
|
|
|
mark.green uuid
|
|
|
| with a Mojang UUID to get the related head. All images are PNGs.
|
|
|
- .well.code
|
|
|
+ .code
|
|
|
| <img src="#{domain}/avatars/
|
|
|
mark.green uuid
|
|
|
| ">
|
|
@@ -25,11 +25,11 @@ block content
|
|
|
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. <br> Valid options are
|
|
|
+ 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 default is calculated based on the UUID (even = alex, odd = steve)
|
|
|
+ | .<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
|
|
|
|
|
@@ -42,18 +42,12 @@ block content
|
|
|
|
|
|
h3 Examples
|
|
|
p Get jeb_'s avatar, 160 × 160 pixels
|
|
|
- img(src="/avatars/853c80ef3c3749fdaa49938b674adae6", alt="jeb_'s avatar")
|
|
|
- .well.code <img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6">
|
|
|
+ .code <img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6">
|
|
|
p Get jeb_'s avatar, 64 × 64 pixels
|
|
|
- img(src="/avatars/853c80ef3c3749fdaa49938b674adae6?size=64", alt="jeb_'s avatar")
|
|
|
- .well.code <img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64">
|
|
|
+ .code <img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64">
|
|
|
p Get jeb_'s helmet avatar, 64 × 64 pixels
|
|
|
- img(src="/avatars/853c80ef3c3749fdaa49938b674adae6?size=64&helm", alt="jeb_'s avatar")
|
|
|
- .well.code <img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?size=64&helm">
|
|
|
- p Get jeb_'s avatar, 64 × 64 pixels, or fall back to steve if his avatar is not found
|
|
|
- img(src="/avatars/00000000000000000000000000000000?default=steve&size=64", alt="jeb_'s avatar")
|
|
|
- .well.code <img src="#{domain}/avatars/853c80ef3c3749fdaa49938b674adae6?default=steve&size=64">
|
|
|
- .col-md-2
|
|
|
+ .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")
|