Displaying Data to Front-End Securely with React, Flask API, and Postgres...
I'm relatively new to web development and am currently building a React website that uses a Flask API to communicate with a Postgres database. The website is read-only with no user authentication, kind...
View ArticleHow to pass credential to NiFi rest api
I have enabled LDAP authentication for Apache NiFi-1.1.1.I can able to access NiFi web UI after logged in with LDAP user.When I try to access REST API with basic authentication /process-groups/root, it...
View ArticleHow to pull ad insights in bulk using Facebook Graph API?
I am trying to do what I thought would be a very simple task which is to use the Facebook API to retrieve insights about ads, but I'm having so much trouble. I know how to use multiple API calls to...
View ArticleSharepoint REST API not authorized with Azure
I want to use REST API with Sharepoint, i'm not here talking about using graph API.I created an Azure Application and selected SHarepoint API to set authorizations:I created secret for OAuth 2.0. Here...
View ArticleSmart Slider disponivel via REST API do Wordpress [closed]
Estou com um projeto de usar o Wordpress Headless com NextJS 14.Tentei implementar o Smart Slider como gestor de banner na home, mas estou com dificuldade de disponibilizar ele na REST API do...
View ArticleSpringboot POST API is returning 200 but no JSON
I am a little confused as to why my Spring service is not returning any content. I tried mvn clean install and I also see that the response POJO at the return statement line has actual data when I hit...
View ArticleGetting Exception with message "http protocol is not supported" when using...
I'm trying to hit a URL using a GET request using RestTemplate. It gives an exception stating http protocol is not supported.I'm able to get the expected response using the plain old HttpURLConnection...
View ArticleHow to name REST resource for similar endpoints (findById / findByEmail)?
I have 2 endpoints as shown below, but I cannot use the endpoint urls like this:@GetMapping("/{email}")public ResponseEntity<Void> findByEmail(@PathVariable String email)...
View ArticleIn what unit does django display response time?
I am using Django to serve an application, and I noticed some slowing down recently.So I went and checked the console that serves the server, that usually logs lines of this format :<date_time>...
View ArticleHow do I implement JWT authentication across multiple REST services in Django...
I'm going to end up having multiple microservices for this project (calculation, customer, and others). The workflow is: the user logs in, gets the JWT, and then will be making multiple calls to the...
View ArticleXmlElement(name="custom_name") not working in spring boot integrated with...
I am almost new to rest services world,here i am trying to change the field name displayed in the output xml.Not sure,am i following the right method,any help is a good thing.Activity.javaimport...
View ArticleWSO2 Micro Integrator: 400 Bad Request Error While Calling API via Mediator
I am using WSO2 Micro Integrator to call a native API that works successfully when tested directly via Postman, returning a 200 status code. However, when calling the same API through the Micro...
View ArticleHow to return a partial struct based on query parameters in Go?
I am trying to achieve attribute selection on a Rest Resource according to query parameters. API client will provide a query parameter called fields. Server will return only attributes of the resource...
View ArticleKicked out of JIRA when using API
I'm using the JIRA REST API in an iOS app I'm building.Every time I connect to the API using basic authentication with my credentials I'm kicked out of JIRA on my desktop.Any ideas how I can stop...
View ArticleHow to write a Change Cloth function with Fooocus API [duplicate]
i am new at coding. I am working on a AI project to improve myself but i got stuck at a point. That's why i am looking for some help. 😅I am trying to use the API of Fooocus AI for this project.I am...
View ArticleCustom error messages in Spring Rest Api validation - ProblemDetails
I am trying to get a ProblemDetail response populated with the message provided on the message attribute of certain controller @Valid annotations.For example, the message attribute on the @Pattern...
View ArticleWhat is the number at the end of the Django GET log?
I am using Django to serve an application, and I noticed some slowing down recently.So I went and checked the console that serves the server, that usually logs lines of this format :<date_time>...
View ArticleAPI fetch (Able to fetch data in console log, but can't display it)
import UIKitclass ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { @IBOutlet weak var tableView: UITableView! var data = [WeatherResponse]() override func viewDidLoad() {...
View ArticleMocking a HTTP server in Python
I'm writing a REST client and I need to mock a HTTP server in my tests. What would be the most appropriate library to do that? It would be great if I could create expected HTTP requests and compare...
View ArticleWhat is the difference between Django and Django Rest Framework?
I am familiar with Django and understand that it is used to create web applications.Now, the issue is Django Rest Framework (DRF). Google says it's used to create APIs, but I just don't get it.If...
View Article