Quantcast
Channel: Active questions tagged rest - Stack Overflow
Browsing all 3607 articles
Browse latest View live

Using multiple repositories in application layer DDD

I'm learning about DDD and am attempting to model a basic interaction between a user and a shopping cart, and am wondering if the following code is directly aligned with DDD principles, or if there is...

View Article


cxf webclient call api using TLSV1

I have a requirement to call and rest endpoint hosted by a third party. their service is only supporting TLSv1 and does not support any newer versions at the moment. I tried to set the webclient...

View Article


NiFi InvokeHttp: How to send multiple files with multipart/form-data without...

Normally, when I have to POST multiple files with multipart/form-data to a RestAPI-Server, I use ExecuteGroovyScript as described...

View Article

POST Request fail with basic auth in spring boot

Im new to spring boot and learning how to make rest api, here im trying to add a basic auth to api and get requests work fine but post request not.This is my Test for it:@Test @DirtiesContext void...

View Article

Splunk - Rest API - Curl - Failing with Unbalanced Quotes

I'm trying to write data to outputlookup file by doing a REST API Call (by running a search query).The below command works and writes data to outputlookup csv file when running the search directly from...

View Article


403 Forbidden - Missing Authentication Token for GET Method in AWS API Gateway

I'm really new to all this REST API stuff. Recently, I ran into a problem while trying to create the GET method handler (403 Forbidden) and a json message "Missing Authentication Token" being returned....

View Article

Palantir Foundry - Calling webhook

So I currently have a Code Repository set up, and within this I have imported a REST API as a source (called “Gdelt2Retrieve”) . Within this REST API, I also have a webhook called ("Gdelt2) configured....

View Article

HTTP/1.1 422 Unprocessable Entity Error when sending data to LoopBack from...

I am doing an HttpPost to send data to LoopBack and get the response. I am getting an error as below from LoopBack :HTTP/1.1 422 Unprocessable Entity [X-Powered-By: Express, Vary: Origin,...

View Article


deploy spring boot rest application on wildfly10

I have a spring boot rest api which is developed on Java 1.8 and deployed on Wildfly 15. when I try to deploy it on wildfly 10 errors are reported and deployment fails.>2019-04-05 21:47:29,228 WARN...

View Article


What's the difference between REST & RESTful

What's the difference between a REST system and a system that is RESTful?From a few things I've read most so called REST services are actually RESTful services. So what is the difference between the two?

View Article

How to retrieve all archived cards on a board through the Trello API?

The following question was asked on the Trello API board.I thought I'd add it here.How can I obtain all archived cards on a board?

View Article

What status code to use when a parameter is missing in the query string?

I have an endpoint that requires a parameter passed via the query string (is a GET verb).What is the appropriated status code to give when this parameter is missing from the request? 400 is the one? or...

View Article

disable Wordpress REST API ability to view page names

I run a site that is a compeitive puzzle solving site and users must crack codes or solve ciphers to get to the next puzzles. Using woocommerce memberships (which uses Rest API) I noticed that...

View Article


Github REST API full example

I would like to create a new file in the my github repository by using github REST API. I've found following link, but honestly I don't understand it((As I understand, I could do POSTurl:...

View Article

Validate Enum directly in controller function

I have a query parameter in my REST API, which values should be restricted by an enum type. I'm looking for a way to throw a "Bad Request" error, when a client gives something different.My enum looks...

View Article


How to migrate large dataset in MongoDB with new unique fields without...

ContextI am working on a microservice that uses CosmosDB with the MongoDB API, providing two main functionalities:Importer: Updates and imports data from JSON files into CosmosDB.Provider: Exposes REST...

View Article

Authenticating against a REST API with iOS client using Facebook SSO as the...

I'm planning to use Facebook as the only sign-on mechanism for an application that I'm building and need some feedback on the design. Here it goes -User opens the app and is presented with a register...

View Article


How allow to request my API only by my mobile app?

I have developed an API restful in JSON to retrieve data from my server by a mobile app (iOS).I want to keep hidden my API avoiding someone via a network sniffing tool (like Wireshark) could find out...

View Article

Should an API return NULL for an int parameter? + How to handle

At the moment our API is returning NULL for any int parameters which don't have a value.e.g. In our user API one of our parameters looks like this:{ ..."user_id":NULL ...}I understand this can't be 0...

View Article

IOS how to POST GET DELETE PUT Rest Api

I am building my App conected to a Rest API and until now I only made a GET request with the following code ://Start login processNSString *emailstring = email.text;NSString *passstring = pass.text;//...

View Article
Browsing all 3607 articles
Browse latest View live