From 0e9f1b4cde968945edf7733c5ccd787654510b04 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 6 Dec 2026 09:03:04 +0000 Subject: [PATCH] Add Explore Experts listing (CP-5839) Documents GET /api/v2/experts: search, Service, Level, Toolkit and Works filters, three sorts and facets, for Makerble Rails PR CP-5839. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01F1a5xpLhfbLFkbgLzEr9Uj --- openapi.yaml | 198 +++++++++++++++++++++++++++++++++++++++++++++++++++ server.js | 17 ++++- 2 files changed, 214 insertions(+), 1 deletion(-) diff --git a/openapi.yaml b/openapi.yaml index b213fee..552d489 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -15842,6 +15842,128 @@ paths: $ref: '#/components/responses/Unauthorized' "404": $ref: '#/components/responses/NotFound' + /experts: + get: + tags: [Explore] + summary: Explore Experts + operationId: listExperts + description: | + Lists the Makerble Experts in the Makerble® ImpactStore™ (consultants, evaluators and implementers reviewed by + Makerble), with the same search, filters, counts and sort as the Explore Experts page. Listed and Paused Experts + appear; a Paused Expert has `taking_introductions: false`. There are no ratings and no paid placement. + + - `query` matches the Expert's organisation name, headline or bio. + - The filters take option keys, as arrays (`service[]=integrations`) or comma-separated + (`service=integrations,staff_training`). Options in one filter combine with OR and filters combine with AND: + - `service`: `theory_of_change`, `choosing_measures`, `survey_design`, `setup_and_migration`, `integrations`, + `independent_evaluation`, `interviews`, `analysis_and_reporting`, `staff_training` + - `level`: `certified` (Makerble Certified Implementer), `expert` (Makerble Expert) + - `toolkit` (Toolkits they know): Toolkit ids + - `works`: `remotely`, or `in_person_` for each region an Expert works in (see `facets`) + - `chip` is one of the page's Popular chips: `Evaluation`, `Makerble setup`, `Theory of Change`, + `IT and integrations`. + - `facets` gives each filter's options with how many Experts each would return, given the other filters already + chosen. + - `sort` is `match` (the default: Experts who know a Toolkit installed on one of your organisations' projects + first, then the most recently active), `active` (most recently active: when one of the Expert organisation's + people last signed in, or when it was listed) or `az`. + - `matching_toolkit` is the Toolkit the Expert knows that your organisation uses, or null. + - Read one Expert's full profile with **Read a Makerble Expert's profile**. + security: [{tokenAuth: []}] + parameters: + - name: query + in: query + required: false + schema: + type: string + example: evaluation + description: Words to look for in the Expert's name, headline or bio + - name: service + in: query + required: false + schema: + type: string + example: independent_evaluation + description: Service option keys, comma-separated or repeated as service[] + - name: level + in: query + required: false + schema: + type: string + example: certified + description: Level option keys (certified, expert), comma-separated or repeated as level[] + - name: toolkit + in: query + required: false + schema: + type: string + example: "5" + description: Toolkit ids, comma-separated or repeated as toolkit[] + - name: works + in: query + required: false + schema: + type: string + example: remotely + description: How they work option keys, comma-separated or repeated as works[] + - name: chip + in: query + required: false + schema: + type: string + enum: [Evaluation, Makerble setup, Theory of Change, IT and integrations] + description: One of the Popular chips + - name: sort + in: query + required: false + schema: + type: string + enum: [match, active, az] + default: match + description: Best match for you, Most recently active, or A to Z + - $ref: '#/components/parameters/Page' + - $ref: '#/components/parameters/PerPage' + - $ref: '#/components/parameters/LastSyncDatetime' + responses: + "200": + description: The Experts that match, and each filter's option counts + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExperts' + example: + page: 1 + page_size: 1 + page_count: 1 + total_count: 1 + data: + - id: 12 + name: Ellison Associates + level: Certified Implementer + headline: Theory of Change for youth charities + logo_url: null + how_they_work: Remotely, and in person in Bath and Bristol + taking_introductions: true + services: + - key: theory_of_change + name: Theory of Change and needs analysis + toolkits: + - id: 5 + name: Youth Employability + matching_toolkit: + id: 5 + name: Youth Employability + profile_url: https://makerble.com/explore/experts/12-ellison-associates + facets: + - key: level + label: Level + options: + - value: certified + label: Makerble Certified Implementer + count: 1 + selected: true + "401": + $ref: '#/components/responses/Unauthorized' /experts/{id}: get: tags: [Explore] @@ -29515,6 +29637,82 @@ components: items: $ref: '#/components/schemas/ExploreFacetGroup' + ExpertSummary: + type: object + properties: + id: + type: integer + name: + type: string + description: The Expert's organisation + level: + type: string + enum: [Certified Implementer, Makerble Expert] + headline: + type: string + nullable: true + logo_url: + type: string + nullable: true + how_they_work: + type: string + nullable: true + description: Remotely, in person in named places, or both + taking_introductions: + type: boolean + description: False while the Expert is Paused + services: + type: array + items: + type: object + properties: + key: + type: string + name: + type: string + toolkits: + type: array + description: The ImpactStore Toolkits the Expert knows, by name + items: + type: object + properties: + id: + type: integer + name: + type: string + matching_toolkit: + type: object + nullable: true + description: A Toolkit the Expert knows that is installed on one of the caller's organisations' projects + properties: + id: + type: integer + name: + type: string + profile_url: + type: string + description: The Expert profile page + + PaginatedExperts: + type: object + properties: + page: + type: integer + page_size: + type: integer + page_count: + type: integer + total_count: + type: integer + data: + type: array + items: + $ref: '#/components/schemas/ExpertSummary' + facets: + type: array + items: + $ref: '#/components/schemas/ExploreFacetGroup' + ExpertProfile: type: object properties: diff --git a/server.js b/server.js index b7605a1..ffa954f 100644 --- a/server.js +++ b/server.js @@ -3786,9 +3786,24 @@ function buildDocsPage() {
Learning

Makerble Experts

-

Makerble Experts are consultancies and freelancers the Makerble team has reviewed and listed in the Makerble® ImpactStore™ to help organisations with impact measurement, evaluation and setting up Makerble. Read an Expert's profile, the same as the Expert profile page shows it. An Expert is a Certified Implementer while one of its people holds a current Makerble implementation certification, and a Makerble Expert otherwise.

+

Makerble Experts are consultancies and freelancers the Makerble team has reviewed and listed in the Makerble® ImpactStore™ to help organisations with impact measurement, evaluation and setting up Makerble. List them with the same search, filters, counts and sort as the Explore Experts page, and read an Expert's profile, the same as the Expert profile page shows it. An Expert is a Certified Implementer while one of its people holds a current Makerble implementation certification, and a Makerble Expert otherwise. There are no ratings and no paid placement.

+

Filters take option keys, as arrays (service[]=integrations) or comma-separated (service=integrations,staff_training). Options in one filter match any of them; different filters must all match.

+ ${endpointCard("GET", "/experts", "Explore Experts", true, [ + { name: "query", type: "string", required: false, desc: "Words in the Expert's name, headline or bio" }, + { name: "service", type: "string", required: false, desc: "theory_of_change, choosing_measures, survey_design, setup_and_migration, integrations, independent_evaluation, interviews, analysis_and_reporting, staff_training" }, + { name: "level", type: "string", required: false, desc: "certified (Makerble Certified Implementer) or expert (Makerble Expert)" }, + { name: "toolkit", type: "string", required: false, desc: "Ids of Toolkits the Expert knows" }, + { name: "works", type: "string", required: false, desc: "remotely, or an in_person_<region> key from the facets" }, + { name: "chip", type: "string", required: false, desc: "A Popular chip: Evaluation, Makerble setup, Theory of Change, IT and integrations" }, + { name: "sort", type: "string", required: false, desc: "match (Experts who know a Toolkit your organisation uses first, then the most recently active; default), active or az" }, + { name: "page", type: "integer", required: false, desc: "Page number" }, + { name: "per_page", type: "integer", required: false, desc: "Experts per page (default 10, max 200)" }, + { name: "last_synced_datetime", type: "string", required: false, desc: "ISO 8601 — only Experts updated after this" } + ], [ + { code: "200", cls: "response-2xx", desc: "Experts with id, name, level, headline, logo_url, how_they_work, taking_introductions (false while Paused), services, toolkits, matching_toolkit (a Toolkit they know that your organisation uses, or null) and profile_url, plus facets" } + ])} ${endpointCard("GET", "/experts/{id}", "Read a Makerble Expert's profile", true, [ { name: "id", in: "path", type: "string", required: true, desc: "The Expert's id, alone (12) or with the organisation's name from the profile page URL (12-ellison-associates)" } ], [