Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

docs: first pass at consolidating API docs #392

Merged
merged 5 commits into from
May 26, 2022
Merged

Conversation

grayside
Copy link
Collaborator

This is a first pass at consolidating the API service documentation. It does not include revisions to the API usage documentation.

This is an iteration towards #337

@grayside grayside requested a review from a team as a code owner May 20, 2022 22:56
@grayside
Copy link
Collaborator Author

The docs PR has revealed some bitrot in our API unit tests: https://pantheon.corp.google.com/cloud-build/builds;region=global/b7d3be9a-68bb-4ca7-bb7e-45a2bb702f1c;step=3?project=emblem-ops

These seem unrelated to this change.

@grayside grayside self-assigned this May 20, 2022
@grayside grayside mentioned this pull request May 23, 2022
Copy link
Contributor

@ace-n ace-n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, but I'd like @engelke to review as well (once comments are addressed).


1. [Navigate to Cloud Firestore](https://console.cloud.google.com/firestore/data)
and select **Native** mode. This can only be done once, before the database is used.
1. "Seed" the Emblem API Cloud Firestore database with the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this step necessary if we're asking users to run the seeding script?

export EMBLEM_API_URL=$(gcloud run services describe content-api --project $PROJECT_ID --format "value(status.url)")

# Make an HTTP request to get a "cause" entry.
curl -X GET $EMBLEM_API_URL/causes/6aee60eead3741a98f15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: describe where this value (6aee60eead3741a98f15) comes from.

e.g.

# This cause ID (`6aee60eead3741a98f15` ) comes from our seeding data.

docs/content-api.md Outdated Show resolved Hide resolved

You may use the Cloud Firestore emulator if working with data in the Cloud
introduces too much latency. Warning: This is not a standard workflow and these
instructions may be out of date.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like it should be a TODO issue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It probably should, I'm inclined to think maybe we should reduce our docs and point to emulator docs somewhere else? We're mostly not recommending this path right now.

Copy link
Contributor

@ace-n ace-n May 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah - either is fine by me, so long as we log a follow-up issue.

(It can wait until after Public Preview, if need be.)

@ace-n ace-n requested a review from engelke May 24, 2022 22:48
Co-authored-by: Ace Nassri <anassri@google.com>
@grayside
Copy link
Collaborator Author

Noting for reviewers: this PR moves some docs around, removes some redundant text, and clarifies a few things. It's meant as a raw first iteration. I would prefer to keep scope tight and not reopen discussions about what's been written. More PRs to improve it are very welcome!

@grayside grayside merged commit 7a8cb90 into main May 26, 2022
@grayside grayside deleted the consolidate-api-readmes branch May 26, 2022 22:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants