Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CO-890 Updates the catalogs API documentation #4348

Merged
merged 14 commits into from
Nov 8, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The status code `202` could return the following response body.

### Example error response

The status code `400` could return the following response body. Refer to [API errors and responses]({{site.baseurl}}/api/errors/) for more infomation about various errors and server responses.
The status code `400` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ The status code `202` could return the following response body.

### Example error response

The status code `400` could return the following response body. Refer to [API errors and responses]({{site.baseurl}}/api/errors/) for more infomation about various errors and server responses.
The status code `400` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The status code `202` could return the following response body.

### Example error response

The status code `400` could return the following response body. Refer to [API errors and responses]({{site.baseurl}}/api/errors/) for more infomation about various errors and server responses.
The status code `400` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The status code `202` could return the following response body.

### Example error response

The status code `400` could return the following response body. Refer to [API errors and responses]({{site.baseurl}}/api/errors/) for more infomation about various errors and server responses.
The status code `400` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ If you'd like to share your feedback on this endpoint or make a request, contact

This endpoint has a shared rate limit of 50 requests per minute between all synchronous catalog item endpoints.

## Request parameters

There is no request body for this endpoint.

## Path parameters

| Parameter | Required | Data Type | Description |
Expand All @@ -39,6 +35,10 @@ There is no request body for this endpoint.
| `item_id` | Required | String | The ID of the catalog item. |
{: .reset-td-br-1 .reset-td-br-2 .reset-td-br-3 .reset-td-br-4}

## Request parameters

There is no request body for this endpoint.

## Example request

```
Expand Down Expand Up @@ -74,7 +74,7 @@ The status code `200` could return the following response body.

### Example error response

The status code `404` could return the following response. Refer to [API errors and responses]({{site.baseurl}}/api/errors/) for more infomation about various errors and server responses.
The status code `404` could return the following response. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ If you'd like to share your feedback on this endpoint or make a request, contact

This endpoint has a shared rate limit of 50 requests per minute between all synchronous catalog item endpoints.

## Request parameters

There is no request body for this endpoint.

## Path parameters

| Parameter | Required | Data Type | Description |
Expand All @@ -47,6 +43,10 @@ Note that each call to this endpoint will return 50 items. For a catalog with mo
| `cursor` | Optional | String | Determines the pagination of the catalog items. |
{: .reset-td-br-1 .reset-td-br-2 .reset-td-br-3 .reset-td-br-4}

## Request parameters

There is no request body for this endpoint.

## Example requests

### Without cursor
Expand Down Expand Up @@ -118,7 +118,7 @@ Link: </catalogs/all_restaurants/items?cursor=c2tpcDow>; rel="prev",</catalogs/a

### Example error response

The status code `400` could return the following response body. Refer to [API errors and responses]({{site.baseurl}}/api/errors/) for more infomation about various errors and server responses.
The status code `400` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The status code `200` could return the following response body.

### Example error response

The status code `400` could return the following response body. Refer to [API errors and responses]({{site.baseurl}}/api/errors/) for more infomation about various errors and server responses.
The status code `400` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The status code `201` could return the following response body.

### Example error response

The status code `400` could return the following response body. Refer to [API errors and responses]({{site.baseurl}}/api/errors/) for more infomation about various errors and server responses.
The status code `400` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ If you'd like to share your feedback on this endpoint or make a request, contact

This endpoint has a shared rate limit of 5 requests per minute between all synchronous catalog endpoints.

## Request parameters

There is no request body for this endpoint.

## Path parameters

| Parameter | Required | Data Type | Description |
|---|---|---|---|
| `catalog_name` | Required | String | Name of the catalog. |
{: .reset-td-br-1 .reset-td-br-2 .reset-td-br-3 .reset-td-br-4}

## Request parameters

There is no request body for this endpoint.

## Example request

```
Expand All @@ -62,7 +62,7 @@ The status code `200` could return the following response body.

### Example error response

The status code `404` could return the following response body. Refer to [API errors and responses]({{site.baseurl}}/api/errors/) for more infomation about various errors and server responses.
The status code `404` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
Expand All @@ -82,7 +82,7 @@ The status code `404` could return the following response body. Refer to [API er
}
```

## Troubleshooting
## Troubleshooting

The following table lists possible returned errors and their associated troubleshooting steps.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ If you'd like to share your feedback on this endpoint or make a request, contact

This endpoint has a shared rate limit of 5 requests per minute between all synchronous catalog endpoints.

## Request parameters
lydia-xie marked this conversation as resolved.
Show resolved Hide resolved

There is no request body for this endpoint.

### Example request

```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ The status code `201` could return the following response body.

### Example error response

The status code `400` could return the following response body. Refer to [API errors and responses]({{site.baseurl}}/api/errors/) for more infomation about various errors and server responses.
The status code `400` could return the following response body. Refer to [Troubleshooting](#troubleshooting) for more information about errors you may encounter.

```json
{
Expand Down