https://github.com/dacmarcell/laraveltasksapi
https://github.com/dacmarcell/laraveltasksapi
laravel php postgresql
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dacmarcell/laraveltasksapi
- Owner: dacmarcell
- Created: 2025-01-07T02:36:22.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-08T05:10:28.000Z (5 months ago)
- Last Synced: 2025-01-08T06:18:29.711Z (5 months ago)
- Topics: laravel, php, postgresql
- Language: PHP
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LaravelTasksAPI
Projeto CRUD de Tarefas e categorias em Laravel

## Stack


#### Versões
PHP v8
Laravel v11
PostgreSQL v17
## Documentação da API
#### Retorna todas as tarefas
```http
GET /api/tasks
```#### Retorna uma tarefa por ID
```http
GET /api/tasks/${id}
```| Parâmetro | Tipo | Descrição |
| :-------- | :------- | :------------------------------------------ |
| `id` | `string` | **Obrigatório**. O ID do item que você quer |#### Cria uma tarefa
```http
POST /api/tasks
```| Parâmetro | Tipo | Descrição |
| :------------ | :------- | :-------------------------------------------------- |
| `title` | `string` | **Obrigatório**. O título da tarefa a ser criada |
| `description` | `string` | **Obrigatório**. A descrição da tarefa a ser criada |
| `status` | `string` | **Obrigatório**. O status da tarefa a ser criada |#### Atualiza uma tarefa
```http
PUT /api/tasks
```| Parâmetro | Tipo | Descrição |
| :------------ | :------- | :------------------------------------- |
| `title` | `string` | O título da tarefa a ser atualizada |
| `description` | `string` | A descrição da tarefa a ser atualizada |
| `status` | `string` | O status da tarefa a ser atualizada |#### Deleta uma tarefa
```http
DELETE /api/tasks/${id}
```## Rodando localmente
Clone o projeto
```bash
git clone https://github.com/dacmarcell/LaravelTasksAPI
```Entre no diretório do projeto
```bash
cd LaravelTasksAPI
```Instale as dependências
```bash
composer install
```Rode as migrações
```bash
php artisan migrate
```Inicie o servidor
```bash
php artisan serve
```