Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 810 Bytes

File metadata and controls

39 lines (31 loc) · 810 Bytes

#/api/view

Get Prayers

Get all approved and filtered prayers of today from the database. The prayers json objects are shorten to only contain text and id

Opt.: request only Prayers with an id bigger than a given id.

URL

  • /api/view

Method:

  • GET

URL Params

  • Required: key=[string] (key authentication)
  • Optional: l=[id] (id to filter only bigger values)

Success Response:

  • Code: 200
    • Content: array of approved and filtered prayers of today
    [
     { 
       "id" : "<int>", 
       "prayer" : "<text>"
     },
      ...
    ]

Error Response:

  • Code: 401 UNAUTHORIZED
  • Code: 500 INTERNAL SERVER ERROR
    • Reason database error