Skip to content

A API server developed in NLW Setup, event created by Rocketseat.

Notifications You must be signed in to change notification settings

erick-menezes/habit-tracker-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Habits API

Índice

About   |    Documentation   |    Technologies   |    See more

ℹ About

Habits API is an application that provides a REST API to Habits Web/Mobile application.

📘 Documentation

Habits

Create a habit

POST /habits

Field Type Description
title string Habit title
weekDays number[] Frequency of the habit (0 to 6)

Toggle a habit progress (complete/uncomplete)

PATCH /habits/{id}/toggle

Field Type Description
id string Habit id

Summary

Get a summary of all day habits

GET /summary


Day

Get details of a habit day

GET /day?date={date}

Field Type Description
date string Habit day that you want to search. Format example: 2023-01-23T14:00:00.000z

⚙ Technologies

This app was made using this technologies:

  • Node.js
  • Fastify
  • zod
  • Prisma
  • SQLite

➕ See more

About

A API server developed in NLW Setup, event created by Rocketseat.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published