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.

0
votes
0answers
11 views

Access difference Windows Service - User

I have the problem that I have a different behaviour of the same code when it runs as a local system service or as a user I am trying to access some "etas" hardware which is connected with Ethernet ...
-1
votes
0answers
10 views

Struts2 Rest Plugin - id parameter not being set

So disclaimer: i know my non-maven project structure is bad practice, but it is a legacy project that i cant really change. I have a controller and my struts.xml talking to eachother, but cant seem to ...
0
votes
0answers
5 views

How to use the Bugzilla rest API to find all bugs that a user has commented on?

In the Bugzilla advanced search, you can search for bugs that a specific user has commented on (in the Search by People section). Is there a way to perform the same search using the rest API?
0
votes
3answers
18 views

REST design principles: Referencing related objects vs Nesting objects

My team and I we are refactoring a REST-API and I have come to a question. For terms of brevity, let us assume that we have an SQL database with 4 tables: Teachers, Students, Courses and Classrooms. ...
0
votes
0answers
13 views

Combining Vue.js app and Restful API service

Would some kind sole please explain if it is possible to combine a Vue.js app with a restful API service? New to Vue but written my first Vue/Typescript app that is a front end that consumes some ...
0
votes
0answers
10 views

How to do proper validation for array of objects ids in nodeJS rest api

I am currently struggling to implement rest api build in nodeJS, mongoDB, express. One of fields takes array of objects ids (field sprints in model project). The question is how to do proper ...
0
votes
0answers
6 views

rest post request to execute stored procedure dynamically

I have a requirement where I have to create rest endpoint which takes in a request in the form of below dto. The endpoint will execute the stored procedure (Report Source) with AsOfDate being the ...
-1
votes
1answer
43 views

PUT Request for REST API in C# console application using HttpClient()

I am very new in creating and consuming REST web services in C#. I have programmed the data I want to send over to REST end point. Not sure if I am doing everything correctly. Like I mentioned this is ...
0
votes
1answer
20 views

Spring boot Rest thymeleaf javascript is not returning HTML

HI I am trying the example given in spring.io getting started guide. it doesn't show any error but I am not getting HTML view when I open the link http://localhost:8070/testJson in my browser all it ...
-1
votes
0answers
13 views

Internal/External models. Best practices

I have a small simple microservice, which expose few api's. I user swagger in order to define my rest models and interfaces. My question is - should I or can I use this rest model in my business ...
3
votes
3answers
39 views

HTTP 200 (not 404) status for an empty list result returned from a REST endpoint

Please give me examples of official specification, or trusted recommendations that can prove my business partner that when they return an empty list from a REST endpoint, the HTTP status should be 200,...
0
votes
0answers
15 views

Connection with the server was terminated abnormally

I have a django-python server with a VBA front end connecting using winhttp and REST API. So, in this case the requests sent and received are controlled by us and per-determined. A while ago when our ...
0
votes
0answers
11 views

Project Suggestions for building a QR Code based private library [on hold]

I'm quite new to programming and a huge fan of learning by doing as I've done in other fields of expertise as well, so I wanted to start out with a not too complex project. Project description: I've ...
0
votes
1answer
28 views

How to use @PostMapping from browser?

I'm developing a simple REST service using Spring. I've a entity and a controller to that. My problem is that I can't use Post function from browser, it's just works from terminal. The Get function ...
0
votes
0answers
14 views

No of Services (end points) can Docker/ AWS ECS Container support

We have a single docker container (256 CPU units & 1GB RAM) which runs around 40+ services -java based application (controller endpoints). Will there be any problem in running on one container or ...
0
votes
0answers
18 views

Kubernetes REST API - Unauthorized

I have following Kubernetes REST API request GET https://theserver/api/v1/pods?includeUninitialized=true and include following HTTP Headers in the request: Authorization: Basic *************** ...
0
votes
1answer
16 views

Transient json jax-rs

I am learning to create a rest api. Here is my MessageResource class: @Path("/message") @Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML}) @Consumes({MediaType.APPLICATION_JSON, ...
-2
votes
0answers
20 views

Undefined offset: 0 Guzzle Laravel

my name is Juan I want to send some data to an api to make a payment with laravel, I recommended the guzzle library to perform the REST, but I do not understand how to perform the query api, here I ...
-1
votes
1answer
18 views

Jenkins for running a background Script?

I wrote a python script to send Data from a local DB via REST to Kafka. My goal: I would like this script to run indefinitely, by either restarting in set intervals (i.e. every 5min) or whenever the ...
0
votes
1answer
21 views

Custom Django Rest JWT Login

I'm trying to write custom jwt login view for django rest api authentication. But it doesn't work, and I don't know why.Could you help me to fix this code or put some example. Thanks in advance. my ...
0
votes
0answers
13 views

No body present upon receipt with https POST with body using nodejs client and golang server

I am attempting to send a rest request over https using the following // Construct the POST auth body and options let postData = JSON.stringify({ username: this.state.username, ...
0
votes
1answer
23 views

In Marklogic, I have a custom JavaScript function. How do I call it through REST API? What is the process of calling it from CURL?

I have a few documents in my database and I've designed search functions for them. So I want to use curl in cmd and call the function so that I can run the searches and print the results in cmd only. ...
0
votes
1answer
23 views

Track REST API calls using google analytics/

I want to track which resources are popular using the data from google analytics. Is this possible with google analytics?
0
votes
1answer
7 views

How to use Rest on webpage

How do I communicate with a Rest api from webpage? I have this script but can't get it to work. <script> var xhr = new XMLHttpRequest(); xhr.open('POST', 'https://my.site/api/incidents/', true);...
1
vote
1answer
31 views

pyrequests encoding dict values as lists in JSON

I'm working on a Python client for a REST API, and i'm using requests to handle the communication with the server. When using the post method though, I get some weird behaviour. Here is the code that ...
0
votes
0answers
15 views

Angular JS - HTTPS call with certificate validation

I know the component $http will call both http and https urls. But how do I use a certificate and make a validated https call to an https API. Something like $http({ url : 'https://myurl', ...
-1
votes
0answers
16 views

Efficiently calling REST API in loop for Powershell

I am working with a Powershell script that requires me to search using REST API call. I am searching for a certain level for a user's team, if the team's level is obtained, then i will retrieve the ...
-2
votes
0answers
17 views

How can we put authentication on the REST API's written in Flask with Python? [on hold]

I have to apply authentication over the Flask REST API with Python to make them access securely by the genuine user. What code and config settings I have to do in Flask to achieve it?
0
votes
0answers
18 views

Angular JS - Rest API - Authorization sent from browser but not received in server

I have a spring boot application with basic spring security enabled. And I have a web application written in Angular JS When I make a rest call, I can clearly see the Authorization header being ...
0
votes
1answer
25 views

Adding a backend web api to an existing game server program

I have a program that runs a game server and wants to add Restful API to it to allow other platforms (web and mobile) to interact with the game server. I am having a difficult time making asp.net core ...
0
votes
0answers
12 views

Advantages of using pixel tracking mechanism versus regular HTTP GET API call for client side tracking

Pixel tracking method seems to be gaining traction recently especially in the field of marketing and analytics. For client side tracking internally (tracking system is not opened to be used by public)...
0
votes
0answers
18 views

Why are parameters not being passed within my test in Rails 5?

I have the following code in users_controller.rb: def create params = user_params x = 1 render :json => { :message => "New user created!"}, :status => :ok end private def ...
-3
votes
1answer
30 views

how to apply again for twitter developer account after application rejection? [on hold]

I'm a beginner in twitter development. I applied for twitter developer account to make a simple application for my client. but my application was rejected. Kindly suggest me what are my options now? ...
0
votes
0answers
15 views

Testing RESTAPIs post method with MockMvc in Spring Boot

I keep receiving an InvalidMediaTypeException Heres my post method PostMapping("/notes") public Note createNote(@Valid @RequestBody Note note) { return noteRepository.save(note); } Here ...
-1
votes
0answers
7 views

Download and open Word file with Android and the Word App

I need to download a Word file inside my Android App and then open it with the Word app. Does anybody know any good tip for this issue? Thank you for your time.
1
vote
2answers
27 views

Error Handling in REST API: Best Practice

I am trying to develop a rest api that basically return information about country. So my url will be something like http://myrestservice/country/US so when a request come with valid country, my ...
0
votes
1answer
15 views

Paypal REST API with PHP SDK - How to get the transaction number?

I'm using the REST API Paypal ExpressCheckout with the PHP SDK, my script is able to process payment but I would like to get a essential information about the payment : the transaction number, usefull ...
0
votes
2answers
33 views

How to Send a logout message from Java REST servlet to angular Client?

I have some doubts about how to send a message from a Java Rest Server, to an Angular Client. I have read about WebSockets, but Im not sure if it suits what im looking for. We use a token-based ...
0
votes
0answers
15 views

java.lang.UnsupportedOperationException: Request with non-absolute URL not supported with empty target using openFeign

I am calling an Azure api from inside my application.The reason for using empty target is because the baseUrl is dynamic. The feign implementation is as below @Bean public IDataUserAdd ...
-1
votes
0answers
19 views

REST web service deployed to Docker will only give 404 errors

I have a simple REST web service with one endpoint that works when deployed to a local Tomcat 9 instance: http://localhost:8080/rest/hello works. When I deploy it to Tomcat 9 in a Docker container ...
1
vote
1answer
15 views

Spring Boot application with Actuator

I have an SpringBoot app. 2.1.3.RELEASE securized by JWT, I want to add an actuator. I added this dependency <dependency> <groupId>org.springframework.boot</groupId> ...
0
votes
0answers
9 views

How do you define boundary values in swagger without being restricted by them?

so in my project we seem to be having some issues with fluid requirements and some things are getting lost between the cracks. I'm proposing we keep our Swagger docs as the source of truth. However, ...
-1
votes
0answers
14 views

REST CRUD API Challange for internship

I have a challange for internship but i dont really quite understand what should i do. As i am a beginner in porgramming. Here is the challange : Implement a basic REST CRUD API to create and ...
-2
votes
1answer
34 views

@ManyToMany in Spring Framework , Why is the result of “/findAll” isinfinite loop? [on hold]

Sorry , I Have a question for you . Please help me ! When I create RestAPI , I want get a list all user .But it loads all nested objects to JSON . Why is the result of "/getAll" isinfinite loop? ...
0
votes
1answer
11 views

What is the correct way to test an API with token api_key:access_token header?

Following the below steps: created a new app at https://developers.kite.trade/apps obtained the <API key> from the app details page obtained the <API secret> from the app details page ...
0
votes
0answers
4 views

Trying to create a usergroup in Jira Cloud with REST API

I have an upcoming tool migration where I can import assignees but not inactive ones - and there is no user group by default with only active users. So I've exported all jira users and filtered ...
0
votes
0answers
12 views

POST request for soft deleted entity conflict when external PK provided

I am working on a very particular integration with a client that is sending us data through our RESTful APIs. They are setting the PK for POSTed data to match their own and remove the need for a ...
0
votes
0answers
23 views

REST API post give html response

I have a problem with REST API, when I make a request (POST) from my login form, I receive my signin html instead of User JSON. I guess problem is with configuration of Spring Security but I have no ...
-1
votes
0answers
17 views

Spring Boot OData

Guys I'm trying to build an API using Spring Boot and OData to handle requests. I search many places looking for an implementation using both technologies but I couldn't find anything explicit. Can ...
0
votes
0answers
6 views

Large octet-stream files stall jax-rs api with request forward

I have a REST API made using Java and JAX-RS. Recently, we had a requirement which required us to forward an endpoint which accepts octet-stream to another endpoint for further processing. The ...

http://mssss.yulina-kosm.ru