Skip to content

Commit

Permalink
fixing incorrect collection urls
Browse files Browse the repository at this point in the history
  • Loading branch information
chriserwin committed Feb 23, 2017
1 parent 91b4889 commit 0b5efe6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ puts collection
```

```shell
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collection/YOUR-COLLECTION-SLUG-HERE
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collections/YOUR-COLLECTION-SLUG-HERE
```

> An example response:
Expand Down Expand Up @@ -1605,7 +1605,7 @@ puts collectionItems
```

```shell
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collection/YOUR-COLLECTION-SLUG-HERE/items
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collections/YOUR-COLLECTION-SLUG-HERE/items
```

> An example response (truncated for simplicity):
Expand Down Expand Up @@ -1817,7 +1817,7 @@ collectionItems = elemeno.getCollectionItems('YOUR-COLLECTION-SLUG-HERE', option
```

```shell
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collection/YOUR-COLLECTION-SLUG-HERE/items?page=2&size=20
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collections/YOUR-COLLECTION-SLUG-HERE/items?page=2&size=20
```

Supported Query Parameter
Expand Down Expand Up @@ -1858,7 +1858,7 @@ puts collectionItem
```

```shell
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collection/YOUR-COLLECTION-SLUG-HERE/items/YOUR-ITEM-SLUG-HERE
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collections/YOUR-COLLECTION-SLUG-HERE/items/YOUR-ITEM-SLUG-HERE
```

> An example response (truncated for simplicity):
Expand Down Expand Up @@ -2030,7 +2030,7 @@ puts singles
```

```shell
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collection/YOUR-COLLECTION-SLUG-HERE/items?sort={"$dateUpdated":"ASC"}
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collections/YOUR-COLLECTION-SLUG-HERE/items?sort={"$dateUpdated":"ASC"}
```

> Sorting Collections
Expand Down Expand Up @@ -2080,7 +2080,7 @@ puts collections
```

```shell
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collection/YOUR-COLLECTION-SLUG-HERE/items?sort={"$dateCreated":"DESC"}
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collections/YOUR-COLLECTION-SLUG-HERE/items?sort={"$dateCreated":"DESC"}
```

> Sorting Items
Expand Down Expand Up @@ -2130,7 +2130,7 @@ puts collectionItems
```

```shell
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collection/YOUR-COLLECTION-SLUG-HERE/items?sort={"$datePublished":"DESC"}
curl -s -H "Authorization: YOUR-API-KEY-HERE" https://api.elemeno.io/v1/collections/YOUR-COLLECTION-SLUG-HERE/items?sort={"$datePublished":"DESC"}
```

By default, content is ordered by `dateUpdated` in reverse chronological order (newer stuff first). If you would like to return content in a different order, you can use the sort option.
Expand Down

0 comments on commit 0b5efe6

Please sign in to comment.