About | Documentation | Technologies | See more
Habits API is an application that provides a REST API to Habits Web/Mobile application.
POST /habits
Field | Type | Description |
---|---|---|
title | string |
Habit title |
weekDays | number[] |
Frequency of the habit (0 to 6) |
PATCH /habits/{id}/toggle
Field | Type | Description |
---|---|---|
id | string |
Habit id |
GET /summary
GET /day?date={date}
Field | Type | Description |
---|---|---|
date | string |
Habit day that you want to search. Format example: 2023-01-23T14:00:00.000z |
This app was made using this technologies:
- Node.js
- Fastify
- zod
- Prisma
- SQLite