Pharma Commercial Mock
GET/api/google-docs/files

Drive files list (files.list)

Google Drive files.list — listing of pharma team shared documents.

Mocks Drive API v3 files.list. Returns 18 realistic shared docs spanning launch tracking (launch plan, weekly tracker, district performance), market access (payer landscape brief, formulary win/loss log, IRA analysis), submissions (NICE submission plan, evidence dossier index, gap report), competitive intel (ASCO readout, KOL adv board, competitor tracker), and strategic (2026 commercial plan, LCM roadmap).

Query parameters

NameTypeDescription
qstring
Drive-style query. Supports `name contains 'foo'`, `category = 'launch-tracking'`, or free text.
page_sizeinteger
Max files returned. 1-100.
default: 100

Response schema

PathTypeDescription
kindstring
'drive#fileList'.
files[]array
Drive File resources.
files[].idstring
Drive file ID (44 chars, starts with '1', base64url alphabet).
files[].namestring
Document display name.
files[].mimeTypestring
Always 'application/vnd.google-apps.document' (Google Doc native).
Source: Drive MIME types guide
files[].descriptionstring
1-2 sentence summary.
files[].categoryenum
launch-tracking | market-access | submissions | competitive-intel | strategic. Custom team-tagging field; not part of Drive API.
files[].ownerRolestring
Role of the owner — VP Commercial, HEOR Director, etc. Custom field.
files[].createdTime / modifiedTime / modifiedByMeTime / viewedByMeTimestring (RFC 3339)
Drive timestamps.
files[].owners[]array
{ displayName, emailAddress, kind: 'drive#user', photoLink }.
files[].lastModifyingUserobject
Same shape as owners[].
files[].parents[]string[]
Folder IDs.
files[].webViewLinkstring
https://docs.google.com/document/d/{id}/edit URL.
files[].permissions[]array
{ id, kind, type: user|group|domain|anyone, role: owner|writer|commenter|reader, ... }.
Source: Drive Permissions resource
files[].capabilitiesobject
canEdit, canComment, canShare.
nextPageTokenstring | null
Pagination token.
incompleteSearchboolean
Drive flag.

Behaviour notes

  • ·All files are Google Docs (no Sheets / Slides in this mock).
  • ·File IDs start with '1' and use the 44-char base64url alphabet.
  • ·Drive query syntax supported: name contains 'X', category = 'Y', or free-text fallback.

Examples

All shared docs
curl 'http://localhost:3000/api/google-docs/files'
Search by name
curl "http://localhost:3000/api/google-docs/files?q=name+contains+'NICE'"
Filter by category
curl "http://localhost:3000/api/google-docs/files?q=category+%3D+'submissions'"

Sources