Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,8 @@ paths:
and which section it is in: `new_since_joined` (it started on or after the day the user's
account was made) or `before_joined`.

Listing them records nothing; the user still sees an unseen one in the popup.
Listing them records nothing; the user still sees an unseen one in the popup. Use `filter`
to list only the Unread or only the Read ones, as the page's Unread and Read filters do.
operationId: listWhatsNew
security: [{tokenAuth: []}]
parameters:
Expand All @@ -1158,6 +1159,15 @@ paths:
schema:
type: string
enum: [new_since_joined, before_joined]
- name: filter
in: query
required: false
description: |
`unread`: only the ones the user hasn't opened yet, in the popup or in What's new (the page's
Unread filter). `read`: only the ones they have opened (Read). Without it, both.
schema:
type: string
enum: [unread, read]
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PerPage'
- $ref: '#/components/parameters/LastSyncDatetime'
Expand Down
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4696,12 +4696,13 @@ function buildDocsPage() {
<div class="endpoint-list">
${endpointCard("GET", "/whats_new", "List your What's new", true, [
{ name: "section", type: "string", required: false, desc: "Only <code>new_since_joined</code> or <code>before_joined</code>; leave out for both" },
{ name: "filter", type: "string", required: false, desc: "<code>unread</code>: only the ones you haven't opened yet (What's new › Unread); <code>read</code>: only those you have; leave out for both" },
{ name: "page", type: "integer", required: false, desc: "Page number" },
{ name: "per_page", type: "integer", required: false, desc: "Records per page (default 10, max 200)" },
{ name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 incremental sync" }
], [
{ code: "200", cls: "response-2xx", desc: "Paginated What's new announcements for you, newest first: Makerble's own that have gone live for an audience you're in, and scheduled ones still to start that you can read early. Each has its <code>section</code>, <code>includes_tour</code>, <code>asked_for</code> (it answered one of your requests), <code>seen</code> and <code>seen_at</code>" },
{ code: "422", cls: "response-4xx", desc: "An unknown <code>section</code>" }
{ code: "422", cls: "response-4xx", desc: "An unknown <code>section</code> or <code>filter</code>" }
], "Listing them doesn't mark them seen: you still get an unseen one in the popup. Opening one in Wishlist › What's new marks it seen there.")}
${endpointCard("GET", "/wishes", "List your Wishlist", true, [
{ name: "page", type: "integer", required: false, desc: "Page number" },
Expand Down
Loading