QuotationAPI | API em PHP para Cotação de Mercado Financeiro | REST library
kandi X-RAY | QuotationAPI Summary
kandi X-RAY | QuotationAPI Summary
QuotationAPI
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Retorna a dolar
- Retorna o boleas .
- Retorna os dados
- Get variation .
- Initialize the API .
QuotationAPI Key Features
QuotationAPI Examples and Code Snippets
Community Discussions
Trending Discussions on QuotationAPI
QUESTION
I have a simple Spring Boot + Spring Security REST app with quotations. Only 3 endpoints for GET, POST, DELETE. Only moderator and admin accounts defined. GET rest method works fine - it shows list of quotations. The problem is with POST and DELETE methods. When I try to invoke them in Postman it returns HTML (logging form defined in SecurityConfig).
QuotationApi.java
...ANSWER
Answered 2019-Jul-30 at 13:05Doesn't matter that Postman is sending Basic authentication header, when you haven't enabled Basic authentication in Spring.
Since you only called formLogin()
to enable form based authentication, you have to login using the form POST
.
Of course, you could just call httpBasic()
to enable Basic authentication too.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install QuotationAPI
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page