~sircmpwn/sr.ht-docs

531a4043a1634c976e68ee24a50aca24dc1675d3 — Drew DeVault 2 years ago cf44fa1
Add links to resource schemas
2 files changed, 10 insertions(+), 10 deletions(-)

M api-conventions.md
M paste.sr.ht/api.md
M api-conventions.md => api-conventions.md +4 -4
@@ 223,16 223,16 @@ that occurred, e.g. `profile:update`.

**Response**

The new subscription resource.
The new [subscription resource](#subscription-resource).

### GET /api/.../webhooks

List of subscription resources.
List of [subscription resources](#subscription-resource).

### GET /api/.../webhooks/:id

Retrieves a subscription resource.
Retrieves a [subscription resource](#subscription-resource).

### GET /api/.../webhooks/:id/deliveries

List of delivery resources for this subscription.
List of [delivery resources](#delivery-resource) for this subscription.

M paste.sr.ht/api.md => paste.sr.ht/api.md +6 -6
@@ 44,13 44,13 @@ available for paste.sr.ht:

### GET /api/pastes

List of paste resources.
List of [paste resources](#paste-resource).

**OAuth scope**: `pastes:read`

### POST /api/pastes

Create a new paste;
Create a new paste resource.

**OAuth scope**: `pastes:write`



@@ 71,19 71,19 @@ Create a new paste;

**Response**

The new paste resource.
The new [paste resource](#paste-resource).

### GET /api/pastes/:sha

**OAuth scope**: `pastes:read`

Retrieves a paste resource.
Retrieves a [paste resource](#paste-resource).

### GET /api/blobs/:sha

**OAuth scope**: `pastes:read`

Retrieves a blob resource.
Retrieves a [blob resource](#blob-resource).

## Webhooks



@@ 98,4 98,4 @@ Issued when a new paste is created. Requires `paste:read` OAuth scope.

**Request body**

Affected paste resource.
Affected [paste resource](#paste-resource).