Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Branch Develop Projeto Test Backend Coderock #58

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[docker-compose.yml]
indent_size = 4
58 changes: 58 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
11 changes: 11 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
* text=auto eol=lf

*.blade.php diff=html
*.css diff=css
*.html diff=html
*.md diff=markdown
*.php diff=php

/.github export-ignore
CHANGELOG.md export-ignore
.styleci.yml export-ignore
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/.phpunit.cache
/node_modules
/public/build
/public/hot
/public/storage
/storage/*.key
/vendor
.env
.env.backup
.env.production
.phpunit.result.cache
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
yarn-error.log
/.fleet
/.idea
/.vscode
260 changes: 260 additions & 0 deletions ApiInvestimento.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,260 @@
{
"info": {
"_postman_id": "6c67f4e1-430f-48dc-ae8a-c366b253aec1",
"name": "Api Investimento",
"description": "StartFragment\n\nApi Desenvolvida que tem por objetivo criar um investimento, visualizar e sacar investimentos.\n\nEndFragmen",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "19838517"
},
"item": [
{
"name": "Criar Investimento",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "investimento",
"value": "TESOURO_PRE",
"type": "text"
},
{
"key": "investidor_id",
"value": "1",
"type": "text"
},
{
"key": "valor_inicial",
"value": "300.88",
"type": "text"
},
{
"key": "data_criacao",
"value": "2023-02-12",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:8000/api/v1/investimento",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"investimento"
]
},
"description": "StartFragment\n\nCriação de um Investimento\n\nEndFragment"
},
"response": []
},
{
"name": "Visualizar Investimento",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": []
},
"url": {
"raw": "http://localhost:8000/api/v1/investimento/TESOURO_PRE/1/visualizar",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"investimento",
"TESOURO_PRE",
"1",
"visualizar"
]
},
"description": "StartFragment\n\nVisualização de um Investimento com Ganhos e Saldo Esperado\n\nEndFragment"
},
"response": []
},
{
"name": "Visualizar Investimentos Investidor",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "proprietario",
"value": "Luane Lisboa Pires",
"type": "text"
},
{
"key": "valor",
"value": "2220.00",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:8000/api/v1/investimento/1/investimentos",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"investimento",
"1",
"investimentos"
]
},
"description": "StartFragment\n\n**Visualização de todos os Investimentos do Investidor**\n\nEndFragment"
},
"response": []
},
{
"name": "Retirar Investimento Simulação",
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "investimento",
"value": "TESOURO_PRE",
"type": "text"
},
{
"key": "investidor_id",
"value": "1",
"type": "text"
},
{
"key": "valor_inicial",
"value": "300.88",
"type": "text"
},
{
"key": "data_criacao",
"value": "2023-02-12",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:8000/api/v1/investimento/TESOURO_POS/2022-03-05/1/retirar/simulacao",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"investimento",
"TESOURO_POS",
"2022-03-05",
"1",
"retirar",
"simulacao"
]
},
"description": "StartFragment\n\nSimulação de Retirada de um Investimento\n\nEndFragment"
},
"response": []
},
{
"name": "Retirar Investimento",
"request": {
"method": "POST",
"header": [
{
"key": "Accept",
"value": "application/json",
"type": "text"
}
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{
"key": "investimento",
"value": "CDB",
"type": "text"
},
{
"key": "data_retirada",
"value": "2022-03-23",
"type": "text"
},
{
"key": "investidor",
"value": "1",
"type": "text"
}
]
},
"url": {
"raw": "http://localhost:8000/api/v1/investimento/retirar",
"protocol": "http",
"host": [
"localhost"
],
"port": "8000",
"path": [
"api",
"v1",
"investimento",
"retirar"
]
},
"description": "StartFragment\n\nRetirada de um Investimento\n\nEndFragment"
},
"response": []
}
]
}
Loading