This repository is a astrology-app-server created to feed data into the React Application below.
{ id:, name:, dateStart:, dateEnd:, duality:, triplicityId:, quadruplicity:, rulingPlanet:, motto:, polarity:, description:, imgUrl: }
{ id:, name:, description:, imgUrl: }
{ signId:, text:, id: }
| HTTP Method | URL | Request Body | Description |
|---|---|---|---|
| GET | /signs |
Sends all signs |
| GET | /triplicities | | Sends all triplicities |
| GET | /signs/:signId | | Sends all details of a sign |
| GET | /games/:triplicityId | | Sends all details of a triplicity |
GET | triplicities/:triplicityId?_embed=signs | | Sends all details of a triplicity and its all signs |
| GET | /comments | | Sends all comments |
| GET | /comments/:commentId | | Sends all details of a comment |
| POST | /comments | {text, signId} | Creates a new comment |
| PATCH | /comments/:commentId/edit | {text} | Edits a comment |
| DELETE | /comments | | Deletes a comment |