Skip to content

Instantly share code, notes, and snippets.

@dakotafabro
Last active March 6, 2023 17:45
Show Gist options
  • Save dakotafabro/44305fd0ac7bd451b2c3252dd5abaae2 to your computer and use it in GitHub Desktop.
Save dakotafabro/44305fd0ac7bd451b2c3252dd5abaae2 to your computer and use it in GitHub Desktop.
MentyB API Docs

API Reference

Usage:

https://mentyb-api.onrender.com

Get all emotions

  GET /api/emotions

Get single emotion

  GET /api/emotions/${emotion}
Parameter Type Description
emotion string Required. Name of emotion (e.g. 'happy')

Return Object Shape

{
  "singleEmotion": {
    "_id": "63c4ec691b6343cac265ee16",
    "emotion": "happiness",
    "wellnessSphere": {
      "physical": [
        "exercise"
      ],
      "emotional": [
        "give someone a hug"
      ],
      "occupational": [
        "plan your work week"
      ],
      "social": [
        "make plans with a friend"
      ],
      "spiritual": [
        "meditate for 10 mins"
      ],
      "intellectual": [
        "read a book"
      ],
      "environmental": [
        "appreciate your home space"
      ],
      "financial": [
        "donate $ to a cause of your choice"
      ]
    }
  }
}

Available Emotions

happiness
anger
sadness
joy

🚧 Database seeding... 🌱 More emotions will be available soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment