coordinista-service

Outfits resource

Contains information about the outfits generated by the service. The user must upload clothing items of differen types to the service before creating outfits out of those clothing items.

The clothingItems property is what tells the service which clothing items make up an outfit.

Base endpoint


{server_url}/outfits

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

Properties of the outfits resource

Name

A string that uniquely identifies the outfit.

Season

A string that describes the season in which the user can wear the outfit. The service allows one season per outfit. Accepted values for the season property:

Event

A string that describes the event type that the user can wear the outfit to. The service uses the event property to determine what types of clothing make up an outfit.

Description

A string that provides a long description of the outfit.

clothingItems

A string with arrays that contain the clothing resources that make up an outfit.

Id

A number that represens the outfit’s unique record ID.

Sample clothing resource

 {
      "name": "picnic outfit",
      "season": "spring",
      "event": "outdoors",
      "description": "Cottage-core, but make it practical.",
      "clothingItems": [
        "long-sleeved shirt",
        "denim jeans",
        "sneakers",
        "backpack"
      ],
      "id": 4
    }

outfit operations

Read operations

Create operations

Update operations

Delete operations