Getting data from REST API for iOS
This is my first time using Swift and creating an iOS app and I am having trouble retrieving data from a REST API. I am familiar with Android Development but not iOS.I am trying to use the API from...
View ArticlePOST request with Alamofire and deeply nested dictionary
Whenever I send some request with basic parameters, it works like a charm, for example:let parametersServices = ["name": ["first": "\(givenName)","last": "\(familyName)" ]]But if I send parameters with...
View ArticleHow API calls are done with headers in swift
I want to securely provide my data from the API using JWT token.So Currently I have implemented security in the backend and each ajax call eith the headerurl:"https://dataurl, contentType :...
View ArticleBuilding a 3D Configurator API Service
I have been building product configurators with Unity and Unreal Engine for almost 5 years now.I would like to create an API service that will do the following:send a configurationcombine all meshes...
View ArticleProper implementation of Authentication flow for Mobile app + Google OAuth +...
I don’t understand how to properly organize the Authentication Flow for a Mobile application + Google OAuth + Backend REST API. I need Google OAuth to register/authenticate the user in the Backend REST...
View ArticleRESTful API with zip or json content
I'm creating an API which is going to be exposed via Spring REST Controller to serve SteamingResponseBody containing a zip file. This result zip file would contain other zip files inside packed with...
View ArticleError copying matching creds -- Swift (REST API call)
I'm trying to make an REST API call to a universal devices hub to turn a switch on. It seems like the call is going through, however I am getting an error that says I need credentials, which makes...
View ArticleSwift Post Request - JSON Body is empty
I am trying to do a POST Request based on a REST server API.Everytime I execute the code the server doesn't receive the sent body.The server receives a body looking like this: {}The struct used in the...
View ArticleIs there a way to show Activity Indicator or Progress Bar during response...
Right now I display progress bar that hardcoded to fill in 2 seconds (average response time), but I want it to be intelligent.My request looks like this.func makeRequest(to endPoint: String) {...
View ArticleWhen I hit player API to Rounaz Cricket API it sends back to me "AccessDenied"
When I try to access Rounaz Cricket API, server send me back:{"data": null,"status": false,"status_code": 403,"status_msg": "AccessDenied","version": "2.0.2"}I get access key from my app and hit auth...
View ArticleHow to fix invalid JSON response in swift when using get request in Alamofire?
I am creating an app wherein it pulls PatientList from API Server and it will display to a TableView. Upon checking, it returns 200 status code but falls to invalidJSON error. But when I checked in...
View ArticleIsssue with Revalidate Itinerary Rest Api
{"type": "SERVER","errorCode": "SEC_DENY","message": "Permission denied because of missing FFOCUS in the user attributes"},{"type": "SERVER","errorCode": "SEC_DENY","message": "Permission denied...
View ArticleHow to change Spring Rest generated urls to kebab case?
By default Spring Rest generates endpoints in camel case. So, for example,@Entity@Datapublic class UserName { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String...
View ArticleProduce JSON by RESTful web service in Spring Boot?
My problem: I don't return JSON but an array.So, I will want JSON to be returned.My repository interface:public interface SuiRepository extends JpaRepository<Folder, Integer> {@Query("...")...
View ArticleError: connect ETIMEDOUT at TCPConnectWrap.afterConnect [as oncomplete]
I'm trying to call REST API asynchronously in a for loop using XMLHttpRequest module. I'm making 400 requests in 1 loop, with a wait time of 1 sec after every 100 requests. This works fine on...
View ArticleHOW to Call NIFI REST API to START/STOP generate flow file
I want to call Start and Stop Generate flow file using NiFi REST API.For example, I can call NiFi Generate flow file from Python or Shell script using NiFi REST API.
View ArticleFedex API Ship : Error 400 when downloading label PDF via URL
I use the Fedex API to generate shipping labels (https://developer.fedex.com/api/fr-fr/catalog/ship/v1/docs.html) but I can't download the label via the url provided.Here is the URL...
View ArticleDoes Google expose "Find my Device" APIs? [closed]
Google has its "Find my Device" service allowing you to find your phone, make it ring (even when silenced), remotely wipe it, etc. by entering here: https://myaccount.google.com/find-your-phoneWhat I...
View ArticleMake REST API call in Swift
I'm trying to use Swift to make a GET call to a REST API, and have tried to follow numerous tutorials, but can't figure it out. Either because I cannot figure out how to translate all the Obj-C to...
View ArticleIntegrating Clarifai Face Detection API into Final React App Zero to Mastery...
*Please stop marking questions as solved because the question still has not been answered adequately.I am taking the Complete Web Developer in 2022 course with Zero to Mastery and am working on a final...
View Article