Page MenuHomeSoftware Heritage

Add /ping/ endpoint to Web API
ClosedPublic

Authored by krithikvaidya on Feb 28 2020, 1:22 PM.

Details

Summary

Adds a /ping/ endpoint to SWH Web API that simply returns "pong"

References T2294

Diff Detail

Event Timeline

Not sure why the Cypress tests are failing...

Not sure why the Cypress tests are failing...

This is not related to your changes. I will fix the issue and the tests should pass again once your diff rebased on master.

Looks good but you need to add a test to validate the changes. You can inspire from that test implementation.

swh/web/api/views/ping.py
16

s/test/endpoint/

20–24

You can remove these lines.

This revision now requires changes to proceed.Feb 28 2020, 2:00 PM

All good ! Before I accept the diff, please rebase it to origin/master, squash the commits and update the commit log as follow:

Add /ping/ endpoint to Web API

Closes T2294
This revision now requires changes to proceed.Feb 28 2020, 4:39 PM

Squashed commits, rebase branch on origin/master

All done, will merge with master on approval. Thanks for the review πŸ˜„

@krithikvaidya, please rebase the diff once again on origin/master, this will fix the CI builds.

Also I forgot to tell you to add yourself in the CONTRIBUTORS file at the root of the repository.

Once it is done, I will accept the diff.

This revision now requires changes to proceed.Mar 2 2020, 3:04 PM

Rebased branch on origin/master, added name to CONTRIBUTORS

Thanks for your work on this. You can now merge your feature branch to your local master branch and push it to origin/master.

This revision is now accepted and ready to land.Mar 2 2020, 6:50 PM
This revision was automatically updated to reflect the committed changes.