rest Questions

2

We are designing a public API, and trying to figure out what is the best practice for GET with following cases: Path param: /orders/{orderId} Found: 200 with a response body. Not Found: 404. Query...

1

Mlfow exp delete api does soft delete and when you create experiment with that name, it gives error RESOURCE_ALREADY_EXISTS. Is there any way to delete experiment permanently through api? https://w...
Tinfoil asked 12/4, 2022 at 9:46

2

We have REST API endpoints that all users are free to use and other endpoints that users can use if they have explicitly enabled and paid for some specific feature. What should be the correct stat...
Eiser asked 29/8, 2019 at 10:52

2

The following scenario does not follow RESTful standards and would be keen to know how best to structure my API to achieve the same goal. For a given GET request against a resource, e.g. GET /api/p...
Howell asked 29/7, 2020 at 15:49

2

On a REST based system what are the options to "encrypt" resources ID. For instance: /client/2 would be accessible at /client/SOMEHASHKEY I am thinking : 1 - Have DB tables that keeps t...
Kelvinkelwen asked 12/5, 2013 at 1:8

3

I have a whole bunch of Feign clients that uses a shared configuration(MyFeignConfiguration.class): @FeignClient(name = "clientA", url = "http://serviceA.com", fallbackFactory =...
Integer asked 24/1, 2022 at 22:50

4

I have been unable to deduce why Chrome(97.x.x.x) is unable to load the response for a successful POST XHR. It displays the following message in the response section: Failed to load response data: ...

4

How do I update a REST API Client from a Swagger file in Visual Studio? I created my REST API Client via the "Add -> REST API Client" menu option when right-clicking on the project. See screenshot ...
Largeminded asked 3/8, 2016 at 18:13

1

I found two approaches to working with databases in FastAPI. Are there any fundamental differences? if so which approach is preferable? Approach 1 This is found in official FastAPI-fullstack exampl...
Fung asked 15/8, 2021 at 16:14

3

Solved

The following REST Url of GitLab API gives me the repository tree of a project. Get Repo Tree (WORKS) https://gitlab.gspt.net/api/v3/projects/2931/repository/tree?private_token=XXXX Output: [...
Frumpy asked 30/6, 2017 at 2:33

3

Solved

I've already checked several questions / answers regarding similar subjects, but can't find the proper answer for my case. I'm using Spring's RestTemplate but fails to get the response from a thir...
Hotien asked 27/7, 2016 at 13:44

4

Solved

I have a .NET minimal API project, as described here. One of the endpoints accepts JSON in the request body, and this is deserialized automatically. The code looks something like this: app.MapPost(...
Cockloft asked 15/9, 2023 at 7:51

4

Let's say I have a /createPost POST endpoint in my nestjs backend. The request and response object should be fully typed in the backend via the DTO. However, how do I bring these types into the fro...
Stalag asked 11/4, 2022 at 20:25

11

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...
Archipelago asked 30/3, 2016 at 18:37

5

Solved

I am trying to send an array of the object as a form-data using postman. But it's not working. I follow this link in StackOverflow...But it's worked for mt. When I send my category like this it's ...
Applecart asked 10/2, 2022 at 8:54

1

I see the Python API: download_artifacts(run_id: str, path: str, dst_path: Optional[str] = None) → str (here), but I can't find the equivalent in REST.
Handwriting asked 8/11, 2021 at 11:13

4

I have tried to add authentication to my Rest API using OAuth Toolkit. I get to the login page and enter in my username and password then redirect to my api. I then get a message {"detail":"Authent...
Palmy asked 7/12, 2014 at 14:11

4

Solved

I am using laravel sanctum in my project, but I am facing a problem. I want to customize the 401 response code (unauthorized) to return a JSON when a token is invalid, something like this: { &quo...
Glare asked 25/7, 2021 at 7:0

2

I'm a new user to REST services. I need to consume a RESTful API service generated with Jersey. The problem comes because that service is hosted on remote host and it requires https access with cer...
Anlage asked 11/7, 2012 at 9:41

10

Solved

I am trying to retrieve all products using rest api. I have read this question. I am using postman to make calls. Here is my query https://squatwolf.com/wp-json/wc/v2/products?filter[posts_per_pag...
Rhymester asked 27/1, 2018 at 14:0

4

Solved

Configure Proxy Route Planner on Feign I need to know how to make requests being behind a proxy server using the spring boot REST client. I can do this configuration using apache commons for REST ...
Shu asked 23/4, 2018 at 13:50

8

I am building a Django application that exposes a REST API by which users can query my application's models. I'm following the instructions here. My Route looks like this in myApp's url.py: from ...
Beam asked 27/2, 2014 at 23:38

5

Solved

Given that RESTful web services are all based around the sacred idea that "everything is represented as resources and can be accessed by an address (URI)", this may make sense for CRUD applications...
Few asked 25/11, 2011 at 23:54

6

I want to do a post (twitter in this case) with a oneliner. If I don't have proxy curl -u user:pass -d status="message" http://twitter.com/statuses/update.xml works perfectly. But when I am be...
Multifaceted asked 6/11, 2010 at 0:8

13

Solved

I'm building REST service on Jersey and using Jackson to produce JSON from java classes of my model. Model with absolutely simple values, I think this is the most typical case. But I get strange re...
Cantone asked 23/1, 2017 at 21:19

© 2022 - 2024 — McMap. All rights reserved.