GoConqr has a new look! Let us know what you think.

Notes

Comandos Git e Git Bash

Lucas Carvalho Teste Automatizados QA Profissionalizante Portuguese 1 page

Content of the notes (1)

Page 1

https://www.youtube.com/watch?v=9UINHif1FYw

Aula 6 - Utilização de comando no git bash

Exemplo comando Git Bash:

Utilizado para efetuar uma requisição rest em API via terminal

$ curl -X POST -is http://localhost:8089/api/v1/auth -d '{"email": "admin@email.com","senha": "654321"}' -H 'Content-Type: application/json'

curl (comando base)

-X (Utilizado para informar o metodo a ser utilizado na requisição Ex: "GET - POST - PUT - DELETE")

-is (Dois comandos para apresentar o application e também para limpar a tempo de busca)

http://localhost:8089/api/v1/auth - (endpoint que será efetuado a requisição)

-d (body : o corpo enviado na requisição)

-H (header - pode conter 'Authorization: token' também o 'Content-Type: application/json')

Information

Description
Comandos utilizados no git
Created by
Lucas Carvalho
Views
1
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?