coordinista-service

Clothing resource

Contains information about clothing items stored in the Coordinista app. The user must upload clothing items to the service to create outfits. The outfits property of the clothing resource is what tells the service which clothing items make up an outfit.

If you add a clothing item to the service, that item is not added to an outfit automatically. You must add the clothing item to the applicable outfits. For details, refer to Add a new clothing item.

Base endpoint


{server_url}/clothing

The {server_url} for the service is http://localhost:3000.

Properties of the clothing resource

Name

A string that uniquely identifies the clothing item.

Type

A string that describes the clothing item type. Accepted values for the type property:

Color

A string that describes the clothing item’s color. The service uses the color property to coordinate outfits.

Description

A string that provides a long description of the clothing item.

Outfits

An array of strings that display the list of outfits that the clothing item fits into. Each clothing item can belong to many outfits.

Id

A number that represens the clothing item’s unique record ID.

Sample clothing resource

 {
      "name": "sneakers",
      "type": "footwear",
      "color": "white",
      "description": "Trusty pair of shoes",
      "outfits": ["picnic outfit"],
      "id": 11
    }

Clothing operations

Read operations

Create operations

Update operations

Delete operations