Quantcast
Browsing all 3683 articles
Browse latest View live

Sharepoint Angular REST add item yields 400 (Bad Request)

I have been banging my head against the wall for a couple of days now. I'm trying to add an item to a list in Sharepoint with Angular js.Retrieving items is smooth but adding items doesn't work for...

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


How do I retrieve query parameters in a Spring Boot controller?

I am developing a project using Spring Boot. I've a controller which accepts GET requests.Currently I'm accepting requests to the following kind of URLs:http://localhost:8888/user/data/002but I want to...

View Article

How to implement Stripe PaymentMethod in a REST API

I am trying to integrate Stripe in my REST API using python. The client API call will provide the credit card info, address etc. I am using the below code create the PaymentMethod using the stripe test...

View Article

Links for a resource deep into another

I'm currently developing an API using HAL-forms, and it's been frictionless until now. For this representation, I have some properties deep into it that are related to some other resource.If I...

View Article


Sending the bearer token with axios

In my react app i am using axios to perform the REST api requests.But it's unable to send the Authorization header with the request.Here is my code:tokenPayload() { let config = { headers:...

View Article

Getting 415 on initial request, after that everything is working fine

When I start my App the first time I click on the map and click on the submit button, I am getting an Error "type=Unsupported Media Type, status=415", when I click back and do the same thing again, it...

View Article

Image may be NSFW.
Clik here to view.

Unable to use a custom ValueResolver

I'm developing a Symfony 7 REST API. I'm following the official docs to implement a custom argument resolver to handle mapping of the request payload format that my endpoints are receiving to DTOs...

View Article


WP-API GET multiple pages by id

I want to get page id 12 and 14 using WP-API.Normally, if I wanted only 1 page I would write'/wp-json/pages?filter[p]=14'or'/wp-json/pages?filter[page_id]=14'If I wanted pages by author id 1 and 2, I'd...

View Article


How do development .net core rest api take byte [] array

I developed an endpoint in .net core that takes parameters from FromBody as a byte array. This endpoint converts the incoming file into an image and saves it in the folder in the file directory.I know...

View Article

What should there be at the root resource of a RESTful API?

Requesting '/cats' to an API returns a collection of cats, while requesting '/cats/123' returns the cat whose id is '123'My question is: what should be the response when '/' (the root of the API) is...

View Article

Why should we put Resource not Found -404 response in under a resource itself...

I am raising this question to clarify the following matter.Here I am attaching a piece of openapi spec file.openapi: 3.0.0info: title: Your API version: 1.0.0paths: /your-resource/{resourceId}: get:...

View Article

Image may be NSFW.
Clik here to view.

Does Quarkus provides any solution for joining websockets together like in...

ProblemI am currently working on a JAVA Quarkus backend and I am trying to solve the problem of communtication between users in different so called "rooms" like socket io does it with joining the...

View Article


Should I fetch parent resource along with nested resources in one call, fetch...

I have an API design question. If I have a resource with nested resources and half the time I need to fetch the parent along with the nested resources from the client, should I use one call to fetch...

View Article

Binding result does not catch any errors. Why?

Im very new to the SpringBoot framework, currently i'm trying to create a working page for CRUD operations required for my project.The problem is in my controller BindingResult wont catch any errors...

View Article


Redmine - author_id Params Not Working When Creating New Issue Through REST API

I have migrated the Redmine version from 3.4.6 to 5.0.5 and I used to create a Redmine issue via the rest API, After migration author_id param is not workingI used the below code to create an...

View Article

PHP: CurlFile upload with remote URL

From past few days I have been searching on how to upload file in PHP >=5.5 with Curl. Finally I found the new CurlFile method but cant get it work with remote URLs. Here is the code i am using:...

View Article


What is the difference between HTTP and REST?

After reading a lot about the differences between REST and SOAP, I got the impression that REST is just another word for HTTP. Can someone explain what functionality REST adds to HTTP?Note: I'm not...

View Article

Image may be NSFW.
Clik here to view.

Error codes on slack -- is this normal for an API? [closed]

In Slack, it seems almost every response is a 200 OK, for example:Is this common in APIs, or is this considered bad practice, or there's really no standard in the real world for how APIs return a good...

View Article

Image may be NSFW.
Clik here to view.

QLIK REST API giving 401 Unauthorized Error

i am trying to use the following api for qlik cloud along with the documentation URL:curl "https://your-tenant.us.qlikcloud.com/api/v1/apps/{appId}" \ -H "Authorization: Bearer...

View Article
Browsing all 3683 articles
Browse latest View live


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