spec.yml 23.5 KB
Newer Older
Dan Millar's avatar
Dan Millar committed
1
2
3
4
5
6
7
8
9
10
11
12
13
openapi: 3.0.0
info:
  title: MoonCat Data
  description: API to serve data and images to support the MoonCat ecosystem
  version: 0.1.0
servers:
  - url: http://localhost:25690
    description: Development (local) server
  - url: https://api.mooncat.community
    description: Main (production) server
paths:
  /traits/{catId}:
    get:
14
      tags:
Dan Millar's avatar
Dan Millar committed
15
        - traits
16
      summary: Trait metadata for the requested MoonCat
17
      description: Full metadata used as the return URL for a TokenURI request on the Acclimated wrapper. This includes an `attributes` property that adheres to [OpenSea metadata standards](https://docs.opensea.io/docs/metadata-standards), and a `detials` property that is more MoonCat-specific in formatting.
Dan Millar's avatar
Dan Millar committed
18
      parameters:
19
        - $ref: '#/components/parameters/MoonCatIdentifier'
Dan Millar's avatar
Dan Millar committed
20
21
22
      responses:
        '200':    # status code
          $ref: '#/components/responses/Traits'
23

Dan Millar's avatar
Dan Millar committed
24
25
26
27
28
29
30
31
32
33
  /contract-details:
    options:
      tags:
        - traits
      responses:
        '200':
          $ref: '#/components/responses/ContractOptions'
    post:
      tags:
        - traits
34
      summary: Contract-related trait metadata for multiple MoonCats at once
Dan Millar's avatar
Dan Millar committed
35
36
37
38
39
40
41
42
43
44
45
46
      requestBody:
          required: true
          content:
            application/json:
              schema:
                type: array
                items:
                  anyOf:
                    - $ref: '#/components/schemas/CatId'
                    - $ref: '#/components/schemas/RescueIndex'
      responses:
        '200':
47
          description: JSON array of contract details for the requested MoonCats
Dan Millar's avatar
Dan Millar committed
48
49
50
51
52
53
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ContractDetails'
54
55


Dan Millar's avatar
Dan Millar committed
56
57
  /contract-details/{catId}:
    get:
58
      tags:
Dan Millar's avatar
Dan Millar committed
59
        - traits
60
      summary: Contract-related trait metadata for the requested MoonCat
Dan Millar's avatar
Dan Millar committed
61
      parameters:
62
        - $ref: '#/components/parameters/MoonCatIdentifier'
Dan Millar's avatar
Dan Millar committed
63
64
65
      responses:
        '200':    # status code
          $ref: '#/components/responses/ContractDetails'
66
67


Dan Millar's avatar
Dan Millar committed
68
69
  /image/{catId}:
    get:
70
      tags:
Dan Millar's avatar
Dan Millar committed
71
72
        - images
      summary: Image in PNG format of requested MoonCat as returned by metadata
73
      description: This endpoint is highly-customizable and can return PNG renderings of MoonCats with and without Accessories, as well as head-only renderings.
Dan Millar's avatar
Dan Millar committed
74
      parameters:
75
76
77
78
79
        - $ref: '#/components/parameters/MoonCatIdentifier'
        - in: query
          name: scale
          schema:
            type: integer
80
81
            minimum: 1
            maximum: 20
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
        - in: query
          name: padding
          schema:
            type: integer
            minimum: 0
            maximum: 10
        - in: query
          name: backgroundColor
          schema:
            type: string
        - in: query
          name: glowSize
          schema:
            type: integer
            minimum: 0
97
            maximum: 20
98
99
100
        - in: query
          name: glowOpacity
          schema:
101
            type: number
102
            minimum: 0
103
            maximum: 1
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
        - in: query
          name: acc
          description: Of all the accessories owned by the MoonCat, only show these Accessories
          schema:
            type: array
            items:
              type: string
          style: form
          explode: false
        - in: query
          name: acc-inc
          description: Of all the accessories currently being worn by the MoonCat, only show these Accessories
          schema:
            type: array
            items:
              type: number
          style: form
          explode: false
        - in: query
          name: acc-exc
          description: Of all the accessories currently being worn by the MoonCat, don't show these Accessories
          schema:
            type: array
            items:
              type: number
          style: form
          explode: false
        - in: query
          name: fullSize
          schema:
            type: boolean
          allowEmptyValue: true
        - in: query
          name: noCat
          schema:
            type: boolean
          allowEmptyValue: true
        - in: query
          name: headOnly
          schema:
            type: boolean
          allowEmptyValue: true
        - in: query
          name: noBackground
          schema:
            type: boolean
          allowEmptyValue: true
        - in: query
          name: glow
          schema:
            type: boolean
          allowEmptyValue: true

Dan Millar's avatar
Dan Millar committed
157
158
159
      responses:
        '200':    # status code
          $ref: '#/components/responses/Image'
160

161
162
163
164
  /cat-image/{catId}:
    get:
      tags:
        - images
165
      summary: Image in PNG format of the requested MoonCat by themselves
166
167
168
169
170
171
172
      description: PNG rendering of the MoonCat by itself, with no additional accessories or extras, and if they're not Acclimated, not glowing either
      parameters:
        - $ref: '#/components/parameters/MoonCatIdentifier'
      responses:
        '200':    # status code
          $ref: '#/components/responses/Image'

Dan Millar's avatar
Dan Millar committed
173
174
  /regular-image/{catId}:
    get:
175
      tags:
Dan Millar's avatar
Dan Millar committed
176
        - images
177
      summary: Image in PNG format of the requested MoonCat in an original state
178
      description: PNG rendering of the MoonCat by itself, not glowing, with no additional accessories or extras.
Dan Millar's avatar
Dan Millar committed
179
      parameters:
180
        - $ref: '#/components/parameters/MoonCatIdentifier'
Dan Millar's avatar
Dan Millar committed
181
182
183
      responses:
        '200':    # status code
          $ref: '#/components/responses/Image'
184

Dan Millar's avatar
Dan Millar committed
185
186
  /glow-image/{catId}:
    get:
187
      tags:
Dan Millar's avatar
Dan Millar committed
188
        - images
189
      summary: Image in PNG format of the requested MoonCat with an Acclimated glow
190
      description: PNG rendering of what this MoonCat looks like when Acclimated; it gains a glow around it, which has a color matching its core hex identifier color.
Dan Millar's avatar
Dan Millar committed
191
      parameters:
192
        - $ref: '#/components/parameters/MoonCatIdentifier'
Dan Millar's avatar
Dan Millar committed
193
194
195
      responses:
        '200':    # status code
          $ref: '#/components/responses/Image'
196

197
198
199
200
  /face-image/{catId}:
    get:
      tags:
        - images
201
      summary: Image in PNG format of the requested MoonCat's face
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
      description: PNG rendering of this MoonCat's face, with no additional accessories or extras, and if they're not Acclimated, not glowing either.
      parameters:
        - $ref: '#/components/parameters/MoonCatIdentifier'
      responses:
        '200':    # status code
          $ref: '#/components/responses/Image'

  /accessorized-image/{catId}:
    get:
      tags:
        - images
      summary: Image in PNG format of requested MoonCat with worn accessories
      description: PNG rendering of what this MoonCat with any accessories its current owner has indicated on-chain that they want the MoonCat to be wearing.
      parameters:
        - $ref: '#/components/parameters/MoonCatIdentifier'
      responses:
        '200':    # status code
          $ref: '#/components/responses/Image'

  /cat-walk/{rescueIndex}:
    get:
      tags:
        - images
      summary: Image in PNG format of requested MoonCat as a sprite sheet for 8-frame animation
      description: PNG rendering of this MoonCat as a sprite sheet of different walk cycles for the different cardinal directions, for use as an 8-frame animation.
      parameters:
        - $ref: '#/components/parameters/RescueIndex'
      responses:
        '200':    # status code
          $ref: '#/components/responses/Image'

Dan Millar's avatar
Dan Millar committed
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
  /cats-by-owner/{address}:
    get:
      tags:
        - owners
      summary: List of Rescue Indexes owned by a given address (broken into contract)
      deprecated: true
      parameters:
        - in: path
          name: address
          required: true
          schema:
            $ref: '#/components/schemas/EthAddress'
          description: Ethereum Address
      responses:
        '200':
          description: A JSON object containing Rescue Indexes owned by given Address under each contract
          content:
            application/json:
251
              schema:
Dan Millar's avatar
Dan Millar committed
252
253
254
255
256
257
258
259
260
261
262
263
                type: object
                additionalProperties: false
                properties:
                  original:
                    type: array
                    items:
                      $ref: '#/components/schemas/RescueIndex'
                  wrapped:
                    type: array
                    items:
                      $ref: '#/components/schemas/RescueIndex'
                  acclimated:
264
                    type: array
Dan Millar's avatar
Dan Millar committed
265
266
                    items:
                      $ref: '#/components/schemas/RescueIndex'
267

Dan Millar's avatar
Dan Millar committed
268
269
270
271
272
273
274
275
276
277
  /accessory/{accessoryId}:
    get:
      tags:
        - accessories
      summary: Details of the given Accessory
      parameters:
        - $ref: '#/components/parameters/AccessoryId'
      responses:
        '200':
          $ref: '#/components/responses/Accessory'
278

Dan Millar's avatar
Dan Millar committed
279
280
281
282
283
284
285
286
287
288
289
  /accessory-image/{accessoryId}:
    get:
      tags:
        - accessories
        - images
      summary: Image in PNG format of requested Accessory (displayed on a random MoonCat)
      parameters:
        - $ref: '#/components/parameters/AccessoryId'
      responses:
        '200':    # status code
          $ref: '#/components/responses/Image'
290

Dan Millar's avatar
Dan Millar committed
291
292
  /dynamic/{catId}:
    get:
293
      tags:
Dan Millar's avatar
Dan Millar committed
294
295
296
        - html
      summary: An HTML page with functionality to toggle accessory images
      parameters:
297
        - $ref: '#/components/parameters/MoonCatIdentifier'
Dan Millar's avatar
Dan Millar committed
298
299
300
      responses:
        '200':    # status code
          $ref: '#/components/responses/Dynamic'
301

Dan Millar's avatar
Dan Millar committed
302
303
304
305
306
307
308
309
310
311
312
313
314
315
  /costumes:
    get:
      tags:
        - accessories
      summary: A list of accessories which have been marked as Costumes
      responses:
        '200':
          description: Returns an array of accessory ids
          content:
            application/javascript:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AccessoryId'
316

Dan Millar's avatar
Dan Millar committed
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
  /invalidate:
    post:
      tags:
        - admin
      summary: Invalidate specific items in the cache
      parameters:
        - $ref: '#/components/parameters/CacheType'
        - $ref: '#/components/parameters/CacheKey'
      responses:
        '200':
          description: Invalidate a cached item
          content:
            text/plain:
              schema:
                type: string
332

Dan Millar's avatar
Dan Millar committed
333
334
335
336
337
338
339
340
341
342
343
344
345
  /static/all-traits:
    get:
      tags:
        - static
      summary: A JSON object containing all of the trait data
      deprecated: true
      responses:
        '200':
          description: A JSON object containing all of the trait data
          content:
            application/json:
              schema:
                type: object
346
347


Dan Millar's avatar
Dan Millar committed
348
349
350
351
  /lib/mooncatdata.js:
    get:
      tags:
        - static
352
353
      summary: the libmooncat library
      description: Serves up a copy of the [libmooncat](https://www.npmjs.com/package/libmooncat) module.
Dan Millar's avatar
Dan Millar committed
354
355
356
357
358
359
360
361
      responses:
        '200':
          description: Returns the LibMoonCat JS
          content:
            text/plain:
              schema:
                type: string
                format: binary
362

Dan Millar's avatar
Dan Millar committed
363
364
365
366
367
  /lib/mooncatparser.js:
    get:
      tags:
        - static
      summary: Returns the MoonCat Parser JS
368
      description: Serves up a copy of the `mooncatparser.js` file from the original 2017 project.
Dan Millar's avatar
Dan Millar committed
369
370
371
372
373
374
375
376
377
      responses:
        '200':
          description: Returns the MoonCat Parser JS
          content:
            text/plain:
              schema:
                type: string
                format: binary
components:
378
  parameters:
Dan Millar's avatar
Dan Millar committed
379
380
381
382
383
384
    CatId:
      in: path
      name: catId
      required: true
      schema:
        $ref: '#/components/schemas/CatId'
385
      description: A five-byte hex string, storing the base attributes of a MoonCat in a compressed form
Dan Millar's avatar
Dan Millar committed
386
387
388
389
390
391
    RescueIndex:
      in: path
      name: rescueIndex
      required: true
      schema:
        $ref: '#/components/schemas/RescueIndex'
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
      description: A decimal number representing the index of the MoonCat in the collection (the order they entered the Rescue ship in)
    MoonCatIdentifier:
      in: path
      name: catId
      required: true
      schema:
        oneOf:
          - $ref: '#/components/schemas/CatId'
          - $ref: '#/components/schemas/RescueIndex'
      description: A unique identifier for a MoonCat; either a five-byte hex string, or a decimal index value
      examples:
        hex:
          summary: Hex ID
          value: '0x00d658d50b'
        rescue:
          summary: Rescue index
          value: 0
Dan Millar's avatar
Dan Millar committed
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
    AccessoryId:
      in: path
      name: accessoryId
      required: true
      schema:
        $ref: '#/components/schemas/AccessoryId'
      description: An Accessory ID
    CacheType:
      in: query
      name: type
      required: true
      schema:
        type: string
        enum: ["accessory", "lootprint", "mooncat"]
      description: A Cache Type
    CacheKey:
      in: query
      name: key
      required: true
      schema:
        type: integer
        example: 0
      description: The ID of the item in the Cache
  schemas:
    CatId:
      type: string
      pattern: '^0x[0-9a-fA-F]{10}$'
      example: '0x00d658d50b'
    RescueIndex:
      type: integer
      minimum: 0
      maximum: 25439
      example: 0
    AccessoryId:
      type: integer
      minimum: 0
      example: 21
    EthAddress:
      type: string
      pattern: '^0x[0-9a-fA-F]{40}$'
    Hash32:
      type: string
      pattern: '^[0-9a-fA-F]{32}$'
    Bytes32:
      type: string
      pattern: '^0x[0-9a-fA-F]{64}$'
    Lootprint:
      type: string
      enum: ['Claimed']
    Accessory:
      type: object
      additionalProperties: false
      properties:
        accessoryId:
          type: integer
          minimum: 0
        name:
          type: string
        displayName:
          type: string
        visible:
          type: boolean
      required:
        - accessoryId
        - name
        - displayName
        - visible
    AccessoryDetails:
      type: object
      additionalProperties: false
      properties:
        palettes:
          type: array
          minItems: 1
          maxItems: 7
          items:
            type: array
            minItems: 1
            maxItems: 8
            items:
              type: integer
        meta:
          type: integer
        eligibleCount:
          type: integer
        idat:
          type: string
        name:
          type: string
        width:
          type: integer
        manager:
          $ref: '#/components/schemas/EthAddress'
        audience:
          type: integer
        poses:
          type: array
          items:
            type: string
            enum: ["standing", "sleeping", "pouncing", "stalking"]
        eligibleList:
          type: array
          nullable: true
          minItems: 100
          maxItems: 100
          items:
            $ref: '#/components/schemas/Bytes32'
516

Dan Millar's avatar
Dan Millar committed
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
        eligibleRescueOrders:
          type: array
          nullable: true
          items:
            $ref: '#/components/schemas/RescueIndex'
        availablePalettes:
          type: integer
        metadata:
          $ref: '#/components/schemas/Metadata'
        verified:
          type: boolean
        positions:
          type: array
          minItems: 4
          maxItems: 4
          items:
            type: array
            minItems: 2
            maxItems: 2
            items:
              type: integer
        height:
          type: integer
        eligibleListActive:
          type: boolean
      required:
        - palettes
        - meta
        - eligibleCount
        - idat
        - name
        - width
        - manager
        - audience
        - poses
        - availablePalettes
        - metadata
        - verified
        - positions
        - height
        - eligibleListActive
    Attribute:
      type: object
      additionalProperties: false
      properties:
        trait_type:
          type: string
        value:
          oneOf:
            - type: string
            - type: integer
        max_value:
          type: integer
      required:
        - trait_type
        - value
    Contract:
      type: object
      additionalProperties: false
      properties:
        tokenId:
          type: integer
        description:
          type: string
        address:
          $ref: '#/components/schemas/EthAddress'
        capabilities:
          type: array
          items:
            type: string
            enum: ["ERC20","ERC721","ERC998"]
      required:
        - tokenId
        - description
        - address
        - capabilities
    ContractDetails:
      type: object
      additionalProperties: false
      properties:
        rescueIndex:
          $ref: '#/components/schemas/RescueIndex'
        catId:
          $ref: '#/components/schemas/CatId'
        name:
          type: string
          nullable: true
        isAcclimated:
          type: boolean
        owner:
          $ref: '#/components/schemas/EthAddress'
        lootprint:
          $ref: '#/components/schemas/Lootprint'
        contract:
          $ref: '#/components/schemas/Contract'
        accessories:
          type: array
          items:
            $ref: '#/components/schemas/Accessory'
      required:
        - rescueIndex
        - catId
        - name
        - isAcclimated
        - owner
        - lootprint
        - contract
        - accessories
    Details:
      type: object
      additionalProperties: false
      properties:
        hue:
          type: string
        kInt:
          type: integer
        onlyChild:
          type: boolean
        isPale:
          type: boolean
        litterId:
          $ref: '#/components/schemas/Hash32'
        catId:
          $ref: '#/components/schemas/CatId'
        expression:
          type: string
        cloneSet:
          type: array
          items:
            $ref: '#/components/schemas/RescueIndex'
        accessories:
          type: array
          items:
            $ref: '#/components/schemas/Accessory'
        name:
          type: string
          nullable: true
        contract:
          $ref: '#/components/schemas/Contract'
        facing:
          type: string
        hasTwins:
          type: boolean
        litter:
          type: array
          items:
            $ref: '#/components/schemas/RescueIndex'
        twinId:
          $ref: '#/components/schemas/Hash32'
        classification:
          type: string
        pale:
          type: boolean
        lootprint:
          $ref: '#/components/schemas/Lootprint'
        kBin:
          type: string
          pattern: '^[01]{8}$'
        hasClones:
          type: boolean
        twinSetSize:
          type: integer
        litterSize:
          type: integer
        mirrorSetSize:
          type: integer
        isAcclimated:
          type: boolean
        pose:
          type: string
        rescueIndex:
          $ref: '#/components/schemas/RescueIndex'
        rescuedBy:
          $ref: '#/components/schemas/EthAddress'
        cloneId:
          $ref: '#/components/schemas/Hash32'
        genesis:
          type: boolean
        twinSet:
          type: array
          items:
            $ref: '#/components/schemas/RescueIndex'
        rescueYear:
          type: integer
          enum: [2017,2018,2019,2020,2021]
        mirrorId:
          $ref: '#/components/schemas/Hash32'
        glow:
          type: array
          minItems: 3
          maxItems: 3
          items:
            type: integer
            minimum: 0
            maximum: 255
        owner:
          $ref: '#/components/schemas/EthAddress'
        mirrorSet:
          type: array
          items:
            $ref: '#/components/schemas/RescueIndex'
        hasMirrors:
          type: boolean
        cloneSetSize:
          type: integer
        pattern:
          type: string
        hueValue:
          type: integer
      required:
        - hue
        - kInt
        - onlyChild
        - isPale
        - litterId
        - catId
        - expression
        - cloneSet
        - accessories
        - contract
        - facing
        - hasTwins
        - litter
        - twinId
        - classification
        - pale
        - lootprint
        - kBin
        - hasClones
        - twinSetSize
        - litterSize
        - mirrorSetSize
        - isAcclimated
        - pose
        - rescueIndex
        - rescuedBy
        - cloneId
        - genesis
        - twinSet
        - rescueYear
        - mirrorId
        - glow
        - owner
        - mirrorSet
        - hasMirrors
        - cloneSetSize
        - pattern
        - hueValue
    Metadata:
      type: object
      additionalProperties: false
      properties:
        verified:
          type: boolean
        reserved:
          type: integer
        audience:
          type: integer
        mirrorPlacement:
          type: boolean
        mirrorAccessory:
          type: boolean
        background:
          type: boolean
      required:
        - verified
        - reserved
        - audience
        - mirrorPlacement
        - mirrorAccessory
        - background
    Traits:
      type: object
      additionalProperties: false
      properties:
        animation_url:
          type: string
          format: uri
        description:
          type: string
        external_url:
          type: string
          format: uri
        license:
          type: string
          format: uri
          enum: ['https://mooncat.community/mooncatlicense']
        name:
          type: string
          nullable: true
        background_color:
          type: string
          pattern: '^[0-9A-F]{6}$'
        details:
          $ref: '#/components/schemas/Details'
        image:
          type: string
          format: uri
        attributes:
          type: array
          items:
            $ref: '#/components/schemas/Attribute'
      required:
        - animation_url
        - description
        - external_url
        - license
        - name
        - background_color
        - details
        - image
        - attributes
  responses:
    ContractDetails:
      description: A JSON object containing contract related metadata
      content:
        application/json:
834
          schema:
Dan Millar's avatar
Dan Millar committed
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
            $ref: '#/components/schemas/ContractDetails'
    ContractOptions:
      description: OK
      headers:
        Access-Control-Allow-Origin:
          schema:
            type: string
            example: "*"
        Access-Control-Allow-Methods:
          schema:
            type: string
            example: "POST, OPTIONS"
        Access-Control-Allow-Headers:
          schema:
            type: string
            example: "Accept, Content-Type"
      content:
        text/plain:
          schema:
            type: string
            example: "ok"
    Traits:
      description: A JSON object containing full MoonCat metadata
      content:
        application/json:
860
          schema:
Dan Millar's avatar
Dan Millar committed
861
862
863
            $ref: '#/components/schemas/Traits'
    Image:
      description: A PNG image of the MoonCat
864
865
866
867
868
869
870
871
872
873
874
875
876
      headers:
        Content-Length:
          schema:
            type: integer
          description: The file size of the image
        X-Image-Width:
          schema:
            type: integer
          description: The width of the image being returned, in pixels
        X-Image-Height:
          schema:
            type: integer
          description: The height of the image being returned, in pixels
Dan Millar's avatar
Dan Millar committed
877
878
      content:
        image/png:
879
          schema:
Dan Millar's avatar
Dan Millar committed
880
881
882
883
884
885
886
887
888
889
890
891
            type: string
            format: binary
    Accessory:
      description: A JSON object containing full details of an Accessory
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AccessoryDetails'
    Dynamic:
      description: An HTML page used to provide OpenSea with functionality to toggle accessory images
      content:
        text/html:
892
          schema:
Dan Millar's avatar
Dan Millar committed
893
894
            type: string
            format: binary