Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9339318
ping.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
669 B
Subscribers
None
ping.py
View Options
# Copyright (C) 2020-2022 The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU Affero General Public License version 3, or any later version
# See top-level LICENSE file for more information
from
rest_framework.request
import
Request
from
swh.web.api.apidoc
import
api_doc
from
swh.web.api.apiurls
import
api_route
@api_route
(
r"/ping/"
,
"api-1-ping"
)
@api_doc
(
"/ping/"
,
category
=
"Miscellaneous"
,
noargs
=
True
)
def
ping
(
request
:
Request
):
"""
.. http:get:: /api/1/ping/
A simple endpoint used to check if the API is working.
:statuscode 200: no error
"""
return
"pong"
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Jul 4 2025, 9:36 AM (5 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3238506
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment