Questions tagged [rest]

REST (Representational State Transfer) is a style of software architecture for distributed hypermedia systems such as the World Wide Web. It has increased in popularity relative to RPC architectures such as SOAP due to the intrinsic de-coupling of client from server that comes from having a uniform interface between heterogeneous systems.

1
vote
1answer
20 views

Getting “Attempt to get length of null array” error

I m getting "Attempt to get length of null array" error. I m trying to fetch the random quotes as following from the link https://gturnquist-quoters.cfapps.io/api/random when I try to click the button ...
1
vote
0answers
8 views

Is it normal to have regular model for GET and “flat” model for POST from Design REST point of view?

The questions about possibility to have different models for POST and GET methods in REST api have been asked several times but I would like to clarify one specific moment. Suppose we are designing ...
-1
votes
0answers
11 views

Translation curl command in an Jersey REST client

How can be translated curl command curl -i "/home/user1/file.xml" "http://localhost:8080/application/upload/file.xml" in code for an REST client using Jersey framework? So, that client use ...
0
votes
1answer
15 views

Angular loop through posts with multiple id

I want to loop through GET request of posts and get favorite posts from favorite id array I have tried code bellow but i don't know is this the best way data.service.ts getPosts(): Observable<...
-1
votes
0answers
10 views

What's difference between API Platform and FOSRestBundle? [on hold]

Soon I will make a Rest API with Symfony 4 and I hesitate between API Platform and FOSRestBundle. I wanted to know what the difference was between the two? Advantages and disadvantages? Thanks
0
votes
1answer
16 views

HTTP response code for REST GET - subresource not found (but not referenced by identifier)

I'm building a REST API and have a dilemma around the returning response code to a GET operation. I've found many examples and answers online but not for my particular scenario. Here is what I have ...
0
votes
0answers
12 views

How to fix added parameter in rest call with ajax?

I'm trying to test Datatables composer with ajax Rest calls to spring RestController. I setup front in wampserver and the back with spring boot. I'm using the spring tuto to setup the RestController ...
-1
votes
0answers
19 views

Unable to load json ,excel in flask?

I had created flask api .I am trying to get json,csv and excel file from post method .It gives me an key error 'Phrase' but when i loaded all files type separately its working fine .? Python 3,Flask ...
-1
votes
0answers
31 views

Spring Rest API Design pattern [on hold]

I got requirement for design a Rest API with spring boot. Once we designed the API completely , don't touch the rest API entry point in future or any further enhancement even adding new rest API ...
0
votes
0answers
5 views

how to fix rest template holding on to old server(https - rest endpoint) cookies?

I have a spring MVC application which calls a 3rd party Rest API (HTTPS) using rest template exchange. This 3rd party rest api returns a specific cookie name region back in the set-cookie header. ...
0
votes
1answer
13 views

Firestore: How to update an existing field

I am trying to update a Firestore document field I have set earlier through REST API. I have a document (users) which contains all user data. Now I like to be able to update the field 'testfield' - ...
1
vote
0answers
53 views

Self signed certificate in Android application of RAD

I have REST service over SSL with self-signed certificate. I can call it from regular delphi application through TRESTClient. But When I use it inside Android application it raises the following ...
0
votes
0answers
16 views

hybrid JPA repository / REST respository entity - hibernate

I'm wondering if there is a feature on hibernate (or JPA spec) that allows me to have some fields of an entity being fetched from a whole diferent type of repository (rest in this case). @Entity ...
0
votes
0answers
19 views

How to GET a binary file with metadata from server to client through WCF API Restful?

I've been searching around the web for a long time but I couldn't find something specific about the best approach for this architecture issue. I have an upload pattern that derives from Amazon which ...
0
votes
1answer
23 views

Dart Add SSL certificate and key to HttpClient

I'm trying to secure a REST API using TLS/SSL, to do so I needed to update my client to use the public key and certificate. The client is written in dart and here's how I implemented the ...
0
votes
1answer
12 views

SerenityRest Filter Response Body

I am trying to return the value "Welcome!" where the object contains "name" key that equals to "Subject". The response body data is as follows: "payload": { "mimeType": "multipart/alternative", ...
-2
votes
1answer
38 views

its possible consume a spring boot api rest from JSF?

I try execute a ajax query from the xhtml file, and its trows error : Uncaught SyntaxError: Invalid or unexpected token This is my ajax query: <h:form> <script type="text/...
0
votes
1answer
33 views

Customize body error message - Spring boot REST

I am trying to customize my body error message. My springboot version is 2.1.5.RELEASE I want this: { "This should be application specific" } but I'm receiving this: { "timestamp": "2019-05-...
-2
votes
0answers
10 views

How to find the type of devices that are connected on my network for the given IP? For eg: Printer, router, phone, switch, etc

I'm trying to find out what are the type of devices that are connected on my network. Will try to implement through python code to get the details. I tried using tools like Advanced IP scanner to ...
0
votes
0answers
13 views

Required argument [GenreSaveDTO dto] not specified

I'm currently learning micronaut in java and do an example in this site. But everything seems doesn't work as I expected Here is some code: CrudRepository.java public interface CrudRepository<T, ...
0
votes
0answers
16 views

What is the proper method to receive consumed costs by virtual machine

I have faced some difficulties with receiving spent money by Azure Virtual Machine. For example there is metrics for receiving consumption of CPU Usage and CPU Credits Consumed. https://management....
0
votes
0answers
16 views

Permission error with Classview extending ViewSet, how can I add permissions to non model viewset?

I am trying to create a set of endpoints that are not related to models in Django. I am using Oauth2 for authentification and I am getting all the time 403 error asking for missing permissions. How ...
0
votes
0answers
12 views

Android Studio Remote Debugging Connecting to Locahost on Dev Mechine

I have a android app. I am using url as String url ="http://localhost:62249/api/profile/" + query; I am using Volley for API Call But I am getting Error for Request Timeout I like to know ...
0
votes
1answer
15 views

Can I send access token using GET method?

I'm building RESTful API, but I have some question while implementing /valid endpoint. /valid endpoint checks token expiration. Is GET method good choice for this endpoint? Is there any problem ...
0
votes
0answers
7 views

How do I create a TfvcLabel using TfvcHttpClient in Azure DevOps Services?

We are a team trying to upgrade our windows application to use Azure DevOps Services' new REST based .NET Client Libraries instead of Client OM that uses SOAP. The part of the application that we ...
0
votes
0answers
9 views

office 365 api startTime endTime doesn't work when retrieving contents

I am trying to fetch audit logs from office 365 and it works fine for contents that were created in the last 24h. When I try to fetch some older contents (for example that were created 3 days ago) ...
0
votes
0answers
16 views

Anonymous Authentication in rest wcf

All, I am having WCF Rest service which is working fine with windows authentication but when i am using anonymous authentication it's causing issue, Any help or suggestion much appreciated. App....
0
votes
1answer
20 views

How to send database table name like a parameter in the request and handle it in the function on server?

I have my own API and everything is just fine, but I need help with this : I wabt a function to get database table name within its parameters and according to that name it will insert the data. For ...
0
votes
0answers
13 views

Azure app service: How to allow access of rest api to mysql server?

I've deployed spring-boot app as a rest api, on azure app services, how can I enable access of web service on remote MySql server?
0
votes
1answer
23 views

Return remaked call after JWT token refresh

I'm using JWT and I have this logic: Make an http call Return 401 if the token is exipered or the result When return 401 I have to make an http call to require the new token Remake the ...
-2
votes
1answer
21 views

LInkedIn API: The remote server returned an error: (410)

I am facing issue while making call to https://api.linkedin.com/v1/people using C#. The following code was working fine before. Suddenly today I notice that it's not working. Here is my code: ...
-1
votes
2answers
52 views

Determining the API is RPC or REST

I recently designed a REST API using flask for a sample project. The front end was based on React.JS. But i got a feedback from a colleague that the API is not REST API and its RPC. The API basically ...
0
votes
3answers
23 views

Mapping a no-args function to REST

Let's imagine you have a REST resource Restriction (think of a roadblock) that has some filters (e.g. street, direction etc.). The restriction has an expiry which is a datetime. It is only considered ...
0
votes
0answers
16 views

Pentaho Kettle - Rest Client Unauthorized for HTTP Method DELETE

I'm working on Pentaho 7.1 and i'm using a rest client to perform activities through a specific URL. Authentication parameters such as Username and Password are properly set, in fact when i'm using ...
0
votes
3answers
17 views

How to complete multiple ajax calls before starting next chained function?

I can get the emails, usernames, etc of multiple users in a SharePoint person picker control. Unfortunately, Id is not one of the available values. To get this, I'm assuming you need to perform ...
0
votes
0answers
30 views

Use GET before PATCH in REST API to validate record?

I'm designing an API to update a record in a database, and we know our calling application has the Primary Key of the records in the target system, but the target system won't let us update using ...
0
votes
1answer
20 views

Node-Red: Deploy flow via Admin HTTP API containing credentials in nodes properties

I try to deploy a flow via Admin HTTP API containing credentials in nodes properties. In my case it's a node of type mqtt-broker. The security tab contains a property user which I try to put within ...
0
votes
0answers
19 views

Correct status code for validation error in SOAP service

I've got SOAP service which returns HTTP 400(Bad Request) in case validation errors are present in request body. Problem is, when I invoke SOAP service like this var client = new ...
0
votes
1answer
13 views

Form Data Is Not Getting Validated Even If ExceptionHandler Is Defied

I'm implementing validation logic to the application. I have declared a class for custom validation logic. My class extends ResponseEntityExceptionHandler and overrides one method (...
0
votes
1answer
18 views

Retrieve count related lookup value using REST in SharePoint 2016

I am following this post: http://pawansatope.blogspot.com/2012/01/how-to-create-count-related-lookup.html Now I want to get the same results(i.e DepartmentTitle and NbOfEmployees) values ...
0
votes
0answers
8 views

Angular 6 calling REST API with proxy but AAD SSO doesn't work

Here is the issue that I am facing: I have a REST API application built with Java 8 and Angular 6. The backend and the frontend are not under one unique project. The frontend (Angular) makes calls ...
0
votes
4answers
37 views

Type 'number' is not assignable to type 'string'. How to cast number to string

I want to cast a number to a string in a typescript file in Angular 7. I want to send two data to the backend a id and a name. The backend only accepts the name. How do I solve this error? public ...
0
votes
2answers
50 views

How to post an json object correctly in Spring Boot Rest

I am new to Spring Boot Rest and trying to use post ab object as a rest request. But it is not working and I am getting null return: This is my Object that I want to post: public class Flight { ...
1
vote
0answers
16 views

How I can start a build using Rest API

I want start app's build using Openshift Rest API https://docs.openshift.com/container-platform/3.7/rest_api/index.html. What I need: change source ref (branch) for build start new build from new ...
-1
votes
0answers
14 views

Issue with Observables types

I get error on the declaration of the functions getPosts() and getMedia() I'm following an old guide to create an ibrid app with Ionic that shows the posts of my Wordpress site, there could be some ...
0
votes
1answer
36 views

upload data to online MySQL database through android

In my app, I have a form whose all fields are being saved in SQLite database, including a sync_state column. If sync_state is 0, that item is not saved in online database, but if sync_state is 1, it ...
0
votes
1answer
30 views

Best Practice using two controllers [on hold]

I have a Main service, that executes a lot of actions in a certain system. It is based in a @RestController and a @Service that performs back actions. Now I would like to add a front functionality ...
0
votes
0answers
20 views

How to ingegrate sabre booking SOAP API into React Native

We are planning to use sabre SOAP api for booking https://beta.developer.sabre.com/docs/soap_apis/air/book/book_air_segment as its not available for REST. we are using react native to build our app ...
0
votes
1answer
33 views

Class cast exception when invoking JBPM process through REST API and passing in custom object

I have downloaded JBPM business application template from http://start.jbpm.org. I have added a custom data model in the model project and gave reference to the same in the kjar and service projects. ...
0
votes
1answer
54 views

Handle exceptions in a rest controller in Spring Boot

I create REST web-service with Spring Boot. I would like to know what is a better way to handle exceptions in a controller. I have seen other questions and didn’t found an answer. My controller: @...

http://mssss.yulina-kosm.ru