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
259 changes: 259 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ tags:
description: Guided tours of Makerble's own pages for new colleagues; Organisation Admins choose each team's stops, wording and how strict they are, and see who has finished
- name: Announcements
description: '"What''s new in Makerble" popups, written and scheduled by Makerble staff in Site Overview'
- name: Wishlist
description: The gift icon's Wishlist - your feature requests and feedback, and what Makerble is building next (Coming soon)
- name: Albums
description: Albums (Bundles; being renamed Portfolios on screen) group Projects so their results can be seen together
- name: Age Bands
Expand Down Expand Up @@ -835,6 +837,156 @@ paths:
$ref: '#/components/responses/NotFound'
"422":
$ref: '#/components/responses/UnprocessableEntityList'
/wishes:
get:
tags: [Wishlist]
summary: List your Wishlist
description: |
Lists your own feature requests and feedback from Wishlist › Your wishlist (the gift icon), newest
first, with where each one is. You only ever see your own, never a colleague's. A feature request
also goes to Makerble's Helpdesk; `status` then follows it ("Received", "We are looking at this",
"Estimate sent to your bill payer", "Being built", "Shipped" and so on). Feedback stays in Makerble
and reads "Read by the Makerble team".
operationId: listWishes
security: [{tokenAuth: []}]
parameters:
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PerPage'
- $ref: '#/components/parameters/LastSyncDatetime'
responses:
"200":
description: Paginated Wishes
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedWishes'
"401":
$ref: '#/components/responses/Unauthorized'
post:
tags: [Wishlist]
summary: Request a feature or give feedback
description: |
Sends a feature request or feedback, as Wishlist › Your wishlist does. A feature request goes to
Makerble's Helpdesk; if it needs custom work, Makerble sends an estimate to your organisation's
bill payer, not to you. Feedback stays in Makerble. Don't include details of people you support.
`charity_id` says which of your organisations it's about. It must be one you belong to; leave it
out if you belong to only one.
operationId: createWish
security: [{tokenAuth: []}]
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/WishInput'
example:
kind: feature_request
body: Remind me when a register hasn't been filled in by the end of the day.
responses:
"201":
description: The Wish you sent
content:
application/json:
schema:
$ref: '#/components/schemas/Wish'
"401":
$ref: '#/components/responses/Unauthorized'
"422":
$ref: '#/components/responses/UnprocessableEntityList'
/roadmap_items:
get:
tags: [Wishlist]
summary: List Coming soon
description: |
What Makerble has committed to building, as Wishlist › Coming soon shows it: published items,
Building now before Up next, each in order. There are no dates. System Access users (Makerble
staff) also see unpublished items, and `stale` flags any unchanged for 60 days.
operationId: listRoadmapItems
security: [{tokenAuth: []}]
parameters:
- $ref: '#/components/parameters/Page'
- $ref: '#/components/parameters/PerPage'
- $ref: '#/components/parameters/LastSyncDatetime'
responses:
"200":
description: Paginated Coming soon items
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedRoadmapItems'
"401":
$ref: '#/components/responses/Unauthorized'
post:
tags: [Wishlist]
summary: Create a Coming soon item
description: |
Adds an item to Coming soon, at the end of its stage, as Site Overview › Coming soon does. Write it
in customer language, with no dates. Nobody but Makerble staff sees it until `published` is true.
System Access users only.
operationId: createRoadmapItem
security: [{tokenAuth: []}]
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RoadmapItemInput'
example:
title: Formula Trackers
body: Add metrics together to show a combined result.
stage: up_next
published: true
responses:
"201":
description: The created item
content:
application/json:
schema:
$ref: '#/components/schemas/RoadmapItem'
"401":
$ref: '#/components/responses/Unauthorized'
"403":
$ref: '#/components/responses/ForbiddenError'
"422":
$ref: '#/components/responses/UnprocessableEntityList'
/roadmap_items/{id}:
parameters:
- name: id
in: path
required: true
schema:
type: integer
patch:
tags: [Wishlist]
summary: Update a Coming soon item
description: |
Changes only the fields sent. Moving an item to another stage puts it at the end of that stage.
Set `published` to false to take it out of Coming soon. System Access users only.
operationId: updateRoadmapItem
security: [{tokenAuth: []}]
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/RoadmapItemInput'
example:
stage: building_now
responses:
"200":
description: The updated item
content:
application/json:
schema:
$ref: '#/components/schemas/RoadmapItem'
"401":
$ref: '#/components/responses/Unauthorized'
"403":
$ref: '#/components/responses/ForbiddenError'
"404":
$ref: '#/components/responses/NotFound'
"422":
$ref: '#/components/responses/UnprocessableEntityList'
/tours:
get:
tags: [Welcome Tours]
Expand Down Expand Up @@ -15360,6 +15512,113 @@ components:
type: array
items:
$ref: '#/components/schemas/Announcement'
Wish:
type: object
description: A feature request or feedback from Wishlist › Your wishlist
properties:
id:
type: integer
kind:
type: string
enum: [feature_request, feedback]
body:
type: string
status:
type: string
description: Where it is, as the person sees it, e.g. "Received", "Read by the Makerble team" or "Shipped".
helpdesk_key:
type: string
nullable: true
description: The Helpdesk ticket a feature request became (e.g. MC-2501), once it exists.
charity_id:
type: integer
nullable: true
description: The organisation it's about.
announcement_id:
type: integer
nullable: true
description: The Announcement that answered it, if one has.
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
WishInput:
type: object
required: [kind, body]
properties:
kind:
type: string
enum: [feature_request, feedback]
body:
type: string
maxLength: 2000
charity_id:
type: integer
description: One of your organisations. Needed only if you belong to more than one.
PaginatedWishes:
allOf:
- $ref: '#/components/schemas/PaginationEnvelope'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Wish'
RoadmapItem:
type: object
description: Something in Wishlist › Coming soon
properties:
id:
type: integer
title:
type: string
body:
type: string
stage:
type: string
enum: [building_now, up_next]
stage_label:
type: string
enum: [Building now, Up next]
position:
type: integer
description: Its order within its stage.
published:
type: boolean
stale:
type: boolean
description: Unchanged for 60 days.
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
RoadmapItemInput:
type: object
properties:
title:
type: string
maxLength: 90
body:
type: string
maxLength: 280
stage:
type: string
enum: [building_now, up_next]
published:
type: boolean
PaginatedRoadmapItems:
allOf:
- $ref: '#/components/schemas/PaginationEnvelope'
- type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/RoadmapItem'
BulkProjectMove:
type: object
description: A move of many Contacts through Projects, and how far it has got
Expand Down
48 changes: 48 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@ function buildDocsPage() {
<a href="#seats" class="nav-link"><span class="nav-method method-GET">GET</span>Seats</a>
<a href="#usage" class="nav-link"><span class="nav-method method-GET">GET</span>Usage</a>
<a href="#announcements" class="nav-link"><span class="nav-method method-POST">POST</span>Announcements</a>
<a href="#wishlist" class="nav-link"><span class="nav-method method-POST">POST</span>Wishlist</a>
<a href="#welcome-tours" class="nav-link"><span class="nav-method method-POST">POST</span>Welcome Tours</a>
</div>
<div class="nav-section">
Expand Down Expand Up @@ -4051,6 +4052,53 @@ function buildDocsPage() {
</div>
</section>

<!-- Wishlist -->
<section class="section" id="wishlist">
<div class="section-eyebrow">Integrations</div>
<h2 class="section-title">Wishlist</h2>
<div class="section-desc">
<p>Wishlist is the page behind the gift icon. <strong>Your wishlist</strong> holds the feature requests and feedback a person has sent, and where each one is; you only ever see your own, never a colleague's. A feature request also goes to Makerble's Helpdesk, and its <code>status</code> follows it: "Received", "We are looking at this", "Estimate sent to your bill payer", "Being built", "Shipped" and so on. Feedback stays in Makerble and reads "Read by the Makerble team".</p>
<p><strong>Coming soon</strong> (Roadmap items) is what Makerble has committed to building, under <code>building_now</code> and <code>up_next</code>, with no dates. Everyone can read the published items. Makerble staff (System Access) also see unpublished ones, can create and change them, and see <code>stale</code> on any unchanged for 60 days. Anyone else gets <code>403</code> when writing. What's new is <a href="#announcements">Announcements</a>.</p>
</div>
<div class="callout callout-tip">
<span class="callout-icon">✓</span>
<span><strong>Before you send a request:</strong> don't include details of people you support. If a feature request needs custom work, Makerble sends an estimate to the organisation's bill payer, not to the person who asked.</span>
</div>
<div class="endpoint-list">
${endpointCard("GET", "/wishes", "List your Wishlist", true, [
{ 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 Wishes, your own only, newest first, each with <code>kind</code>, <code>status</code> and, for a feature request, its <code>helpdesk_key</code> once the ticket exists" }
])}
${endpointCard("POST", "/wishes", "Request a feature or give feedback", true, [], [
{ code: "201", cls: "response-2xx", desc: "The Wish you sent. A feature request shows \"Received\" straight away" },
{ code: "422", cls: "response-4xx", desc: "Validation failed, e.g. empty text, an unknown <code>kind</code>, or an organisation you're not part of" }
], "Body: <code>kind</code> (<code>feature_request</code> or <code>feedback</code>), <code>body</code> (up to 2,000 characters), <code>charity_id</code> (which of your organisations it's about; needed only if you belong to more than one).")}
${endpointCard("GET", "/roadmap_items", "List Coming soon", true, [
{ 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 items, Building now before Up next, each in order. Published items only, unless you have System Access" }
])}
${endpointCard("POST", "/roadmap_items", "Create a Coming soon item", true, [], [
{ code: "201", cls: "response-2xx", desc: "Item created, at the end of its stage" },
{ code: "403", cls: "response-4xx", desc: "The user doesn't have System Access" },
{ code: "422", cls: "response-4xx", desc: "Validation failed, e.g. no title, or a description over 280 characters" }
], "Body: <code>title</code> (up to 90), <code>body</code> (up to 280, in customer language, no dates), <code>stage</code> (<code>building_now</code> or <code>up_next</code>), <code>published</code>.")}
${endpointCard("PATCH", "/roadmap_items/{id}", "Update a Coming soon item", true, [
{ name: "id", in: "path", type: "integer", required: true, desc: "Item ID" }
], [
{ code: "200", cls: "response-2xx", desc: "Item updated" },
{ code: "403", cls: "response-4xx", desc: "The user doesn't have System Access" },
{ code: "404", cls: "response-4xx", desc: "Not found" },
{ code: "422", cls: "response-4xx", desc: "Validation failed" }
], "Same body as create; only the fields sent change. Moving an item to another stage puts it at the end of that stage. Set <code>published</code> to false to take it out of Coming soon.")}
</div>
</section>

<!-- Welcome Tours -->
<section class="section" id="welcome-tours">
<div class="section-eyebrow">Integrations</div>
Expand Down
Loading