Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI docs for new sync endpoints #197

Merged
merged 8 commits into from
Aug 18, 2023
Merged

OpenAPI docs for new sync endpoints #197

merged 8 commits into from
Aug 18, 2023

Conversation

norrisng-bc
Copy link
Contributor

Description

This adds OpenAPI documentation for the new sync endpoints:

  • GET /bucket/:bucketId/sync
  • GET /object/:objectId/sync
  • GET /sync/
  • GET /sync/status

A new section on these endpoints has also been added to the "Endpoint Notes" wiki page. The sync stuff isn't in master yet, so I've added "available in COMS v0.7+" to make that clear:
https://github.com/bcgov/common-object-management-service/wiki/Endpoint-Notes#sync

Jira ticket:
https://apps.nrs.gov.bc.ca/int/jira/browse/SHOWCASE-3305

Types of changes

Documentation (non-breaking change with enhancements to documentation)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

N/A

Adds OpenAPI docs for the following 4 endpoints:
- /bucket/:bucketId/sync
- /object/:objectId/sync
- /sync/
- /sync/status
@github-actions
Copy link

Coverage Report

Totals Coverage
Statements: 46.55% ( 2133 / 4582 )
Methods: 37.99% ( 234 / 616 )
Lines: 53.18% ( 1338 / 2516 )
Branches: 38.69% ( 561 / 1450 )

app/src/docs/v1.api-spec.yaml Outdated Show resolved Hide resolved
app/src/docs/v1.api-spec.yaml Outdated Show resolved Hide resolved
app/src/docs/v1.api-spec.yaml Outdated Show resolved Hide resolved
app/src/docs/v1.api-spec.yaml Outdated Show resolved Hide resolved
app/src/docs/v1.api-spec.yaml Outdated Show resolved Hide resolved
app/src/docs/v1.api-spec.yaml Outdated Show resolved Hide resolved
app/src/docs/v1.api-spec.yaml Outdated Show resolved Hide resolved
app/src/docs/v1.api-spec.yaml Outdated Show resolved Hide resolved
app/src/docs/v1.api-spec.yaml Outdated Show resolved Hide resolved
@jujaga jujaga requested a review from wilwong89 August 16, 2023 19:14
@norrisng-bc norrisng-bc force-pushed the openapi-docs branch 4 times, most recently from 1275b95 to c715fad Compare August 17, 2023 23:53
Cleanup TODO comments
Minor text formatting changes (capitalization and punctuation)
Cleanup YAML indentation and line breaks
The following endpoints previously mentioned an internal queue; this mention has been removed:
 - GET /bucket/:bucketId/sync
 - GET /object/:objectId/sync
 - GET /sync/

Instead, mention that how long it takes to eventually sync depends on how many objects are waiting to be synced.
Replace incorrect sync endpoint references to Query-Public with Query-Full, and add description for said parameter
As previously discussed, all mentions of "queue" should be removed for abstraction purposes. This particular mention was accidentally left out.
@jujaga jujaga merged commit 6aeb8c6 into release/sync Aug 18, 2023
@jujaga jujaga deleted the openapi-docs branch August 18, 2023 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants