8min

Retrieve a Document By Id

GET /{appname}/data/{servicename}/{_id}

Get a single document by _id. This command will return the full JSON document identified by the URL _id parameter.

Parameters

Path

  • appname - string - the name of your hyper cloud application.
  • servicename - string - the name of your hyper cloud service.
  • _id - string - unique document identifier

Examples

Don't forget!

Be sure to set your HYPER environment variable with the value of your hyper app's connection string.

Node.js
Curl
|

Responses

Status Code

Description

Example Response

200

Successfully retrieved document

{...}

404

Not Found

{"ok": false, "msg": "not found"}

500

Error

{"ok": false, "msg": "server error occured"}

Need Help?

You can always reach out to our support team for any additional assistance on slack.

ο»Ώ

Updated 24 Mar 2022
Did this page help?
Yes
No