Skip to content

[chore] Added .net client to BrasilAPI - #419

Merged
lucianopf merged 1 commit into
BrasilAPI:mainfrom
farukaf:patch-1
Sep 12, 2022
Merged

lucianopf merged 1 commit into
BrasilAPI:mainfrom
farukaf:patch-1

Conversation

@farukaf

@farukaf farukaf commented Sep 11, 2022

Copy link
Copy Markdown
Contributor

Added .net client repository and author to BrasilAPI readme file.

Added .net client repository and author to BrasilAPI readme file.
@vercel

vercel Bot commented Sep 11, 2022 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
brasilapi ✅ Ready (Inspect) Visit Preview Sep 11, 2022 at 5:13PM (UTC)

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@lucianopf lucianopf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍 👏

Mestre @farukaf só uma dúvida, a gnt ta enviando algum user-agent especificando que a request vem dessa lib? Acho que fica mto bom pra investigar algumas coisinhas no futuro ^^

@farukaf

farukaf commented Sep 11, 2022

Copy link
Copy Markdown
Contributor Author

@lucianopf vou ver se client do .net manda algo por padrão... senão teria que implementar nas próximas versões.

@farukaf

farukaf commented Sep 11, 2022

Copy link
Copy Markdown
Contributor Author

@lucianopf não tem nada na requisição

GET https://brasilapi.com.br/api/banks/v1 HTTP/1.1
Host: brasilapi.com.br

Essa é a requisição feita do client.
Pra comparação quando abro no navegador.

GET https://brasilapi.com.br/api/banks/v1 HTTP/1.1
Host: brasilapi.com.br
Connection: keep-alive
sec-ch-ua: "Microsoft Edge";v="105", " Not;A Brand";v="99", "Chromium";v="105"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "Windows"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.33
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9,pt;q=0.8

@farukaf

farukaf commented Sep 12, 2022

Copy link
Copy Markdown
Contributor Author

Adicionado user-agent: o padrão vai ser "BrasilAPI.DotNet/{version}"
Esta disponível a partir da versão 1.0.6.0

@lucianopf

Copy link
Copy Markdown
Member

Boa mestre!! 🚀 👏

@lucianopf
lucianopf merged commit c3ecd96 into BrasilAPI:main Sep 12, 2022
@lucianopf lucianopf mentioned this pull request Sep 18, 2022

This branch was successfully deployed

1 active deployment
Preview — c4128606 Deployed Sep 11, 2022 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants