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

REST API GET for multiple items and individual items

As I understand it, when creating a REST API to get multiple items the path would beGET v1/itemsFor a single item the path would beGET v1/items/{itemId}Is it considered good practice to combine them so...

View Article


GraphQL readiness for .net development

I found GraphQL as an enticing option to decouple front-end development from APIs (potentially a great fit for our company, which does lots of API customization for each customer). However, I can't...

View Article


file_get_contents(): SSL operation failed with code 1, Failed to enable crypto

I’ve been trying to access this particular REST service from a PHP page I’ve created on our server. I narrowed the problem down to these two lines. So my PHP page looks like this:<?php$response =...

View Article

Linkedin API - get company ID from url

Is there a way to get the numeric company ID from the URL of a company page on Linkedin? This ID is the one I'll use to query the Linkedin API and get more information on the company.I need to get the...

View Article

Can Django identify first-party app access

I have a Django app that authenticates using allauth and, for anything REST related, dj-rest-auth.I'm in the process of formalising an APIMy Django app uses the API endpoints generally via javascript...

View Article


Compress JSON payload in Django for both request from client and response...

I am wondering if there's a way to compress the JSON payload I have to send every time with many repetitive field names. While this question is only about compressing the response, I would like to know...

View Article

Is it possible to configure Spring Data Rest to use id as references instead...

The rest of my project was designed without hypermedia in mind. So association between entity is done via database unique id. For example, an association is done via apost /api/user/1/address/1Whereas...

View Article

Should i write minimal or big ones with data duplication in microservices

Consider i have these two models that live in a different microservices. I can write them in two ways:public class Order{    public Guid Id { get; set; }          public Guid ItemId { get; set; }...

View Article


triggering all the checkbox event while selecting checkall in angularjs

<table class="table"><thead><th> <input type='checkbox' name='selectall' ng-model="value1" ng-click="selectAll()"></th><th> Name </th></thead><tr...

View Article


Should I use Singular or Plural name convention for REST resources?

Some RESTful services use different resource URIs for update/get/delete and Create. Such asCreate - using /resources with POST method (observe plural) at some places using /resource (singular)Update -...

View Article

Internal Server Error, The server encountered an unexpected condition that...

hi everyone i am getting error 500 i don't know how to get rid of these error so i will be happy if you help me to get out of this error and thanks to you in advancehere is my index.jsp file and on...

View Article

How to hide certain schemas from 'Schemas' section in Swagger UI (OpenAPI 3,...

I'm using Springdoc to document my REST API made in Spring Boot.I need to hide some models/schemas from Schemas section in Swagger UI which are used only internally in API, so there is no need to...

View Article

javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request

I'm trying, as a client, to post a zip file to a "Restservice", using RestEasy 3.0.19.This is the code:public void postFileMethod(String URL) { Response response = null; ResteasyClient client = new...

View Article


Servicenow scripted rest api returning 301/redirect

I have made scripted rest api and now being accessed by other applications.when I access this same exact url through postman with same Auth information, header and body that will return 200(normal...

View Article

How do I update an azure monitor LogSearchRuleResource using the python sdk?

I'd like to use the python sdk to retrieve and then update alerts in azure monitor. However, there seems to be an issue with the sdk where it will not understand that I'm updating an existing alert -...

View Article


REST API design for non-CRUD actions, e.g. save, deploy, execute code

Resource in my REST API context is application code written in some programming language. CRUD operations that can be easily mapped to HTTP verbs are save/edit/delete code. Non-CRUD operations that are...

View Article

how to specify a range of data or multiple entities in a restful web-service

To access an instance of a User in a restful web-service the url is structured as shown in the curl request below:curl -v -X GET -s "$BASE_URL/User/${customer_id}.json"If I wanted to specify all User...

View Article


Mexc API authentication fail while retriving account balance, error code 602

I am using C# and unity to get user account balance of USDT but i am getting error code 602. please help. my code is given below. I was using endpoint from there future api docs`public class...

View Article

Reproduce and avoid RESTEASY004655: Unable to invoke request:...

I'm getting the error "RESTEASY004655: Unable to invoke request: java.net.SocketException: Connection reset" in a low percent comparing with total number of request per day...however I still cannot...

View Article

Openfeign + Spring cloud : Field required a bean of type that could not be found

I have a problem with spring and openfeign in which I think you can help me.I have a pom file as follows:<?xml version="1.0" encoding="UTF-8"?><project...

View Article
Browsing all 3619 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>