Page MenuHomePhabricator

Add an endpoint to Device Analytics to serve the API spec
Closed, ResolvedPublic

Description

To make the API docs for Device Analytics publicly available, add an endpoint to Device Analytics that serves the raw swagger.json file at /api-spec.json

Event Timeline

codebug changed the task status from Open to In Progress.Apr 12 2023, 9:45 PM
codebug claimed this task.
codebug moved this task from Next Up to In Progress on the API Platform (Sprint 07) board.

Change 909701 had a related patch set uploaded (by WQuarshie; author: WQuarshie):

[generated-data-platform/aqs/device-analytics@main] endpoint for docs adding an endpoint to serve the swagger.json file

https://gerrit.wikimedia.org/r/909701

Change 914707 had a related patch set uploaded (by WQuarshie; author: WQuarshie):

[generated-data-platform/aqs/device-analytics@main] api-spec refactoring api-spec endpoint that serves the swagger.json file

https://gerrit.wikimedia.org/r/914707

@apaskulin @BPirkle As per linked task , the endpoint should be unique-devices/api-spec.json. Please confirm!

@codebug Reviewed, added a couple of comments.

After fairly extensive discussion in Slack, we decided to present the swagger spec at:

/device-analytics/api-spec.json

As discussed , @codebug is going to push remaining MR amends in a day or two.

Change 914707 merged by Sg912:

[generated-data-platform/aqs/device-analytics@main] api-spec refactoring api-spec endpoint that serves the swagger.json file

https://gerrit.wikimedia.org/r/914707

Change 922811 had a related patch set uploaded (by Sg912; author: Sg912):

[generated-data-platform/aqs/device-analytics@main] Modifying tests

https://gerrit.wikimedia.org/r/922811

Change 922811 merged by BPirkle:

[generated-data-platform/aqs/device-analytics@main] Modifying tests

https://gerrit.wikimedia.org/r/922811

Verified this task , the api-specs is served at device-analytics/api-spec.json.It serves the swagger specs with detailed schemas

Change 909701 abandoned by Sg912:

[generated-data-platform/aqs/device-analytics@main] endpoint for docs adding an endpoint to serve the swagger.json file

Reason:

https://gerrit.wikimedia.org/r/909701