#/api
Insert a new Prayer into the Database prayer contains a text, and a public flag
/api
POST
- Content:
{ "prayer": <TEXT>, "is_public": <BOOL> }
- Code: 200
- Code: 400 INVALID REQUEST
- Reason invalid json format
- Code: 500 INTERNAL SERVER ERROR
- Reason database error
Get all prayers of today from the database
/api
GET
- Required:
key=[string]
(key authentication)
- Code: 200
- Content: array of all prayers of today
[ { "id" : "<int>", "prayer" : "<text>", "is_public" : "<bool>" , "approved" : "<bool>", "date" : "<datetime>" }, ... ]
- Code: 401 UNAUTHORIZED
- Code: 500 INTERNAL SERVER ERROR
- Reason database error
Insert a new Prayer into the Database prayer contains a text, and a public flag
/api
PUT
- Required:
key=[string]
(key authentication)
- Content:
{ "id": <int>, "prayer" : <text>, "is_public": <BOOL> "approved": <BOOL> }
- Code: 200
- Code: 401 UNAUTHORIZED
- Code: 400 INVALID REQUEST
- Reason: invalid json format
- Code: 500 INTERNAL SERVER ERROR
- Reason: database error