restful-url Questions

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

Solved

Is it possible to create an EventBrisge rule which can be scheduled to run at a certain time of day and call an API as a custom target? It seems as though a schedule can be setup for targets if the...
Vernitavernoleninsk asked 17/11, 2022 at 17:43

3

Solved

Is there an authoritative position I can cite when it comes to a trailing slash on a Restful URI? One from Roy Fielding would be great. The web has authoritative opinions both ways. The two positio...
Shallot asked 1/5, 2020 at 16:58

4

I try to build API with Django rest framework And I got Object of type 'TypeError' is not JSON serializable What should I do to fix? Here's my view.py class NewsViewSet(viewsets.ModelViewSet...
Pinhead asked 28/3, 2018 at 14:23

3

I'm working on a SPA which is a client to a RESTful web service. Both the client and server are part of the same project, i.e. I can modify the code for both sides freely. I've been reading up on R...

1

In my system, I have multiple services exposing REST apis for their resources. A specific service on the system needs to make rest calls to other services in dry-run mode in specific circumstances ...
Mouse asked 16/8, 2017 at 0:2

3

Imagine, We have an Entity School and this entity has a one to many relationship with Student entity. In other words, there is a collection of Students attached to a given School If we are to repl...
Cup asked 11/12, 2017 at 12:35

15

Solved

I'm developing a REST API service for a large social networking website I'm involved in. So far, it's working great. I can issue GET, POST, PUT and DELETE requests to object URLs and affect my data...
Groovy asked 15/9, 2010 at 8:41

7

Solved

I was designing a web app and then stopped to think about how my api should be designed as a RESTful web service. For now, most of my URI's are generic and might apply to various web apps: GET /lo...
Feinstein asked 21/8, 2011 at 18:6

1

I want to do a partial delete of resources, which means that after calling that API, some of the data will be deleted, but we will retain some minimal information about the deleted data, this data ...
Jerky asked 9/8, 2022 at 11:27

8

Solved

I'm designing an HTTP-based API for an intranet app. I realize it's a pretty small concern in the grand scheme of things, but: should I use hyphens, underscores, or camelCase to delimit words in th...
Compelling asked 24/4, 2012 at 16:37

8

Is it true that to implement a RESTful API, one has to implement a URL structure that looks like this http://example.com/post/ http://example.com/post/123 where the /123 would be used for edit, ...
Santamaria asked 30/10, 2010 at 8:29

8

I want to make my RESTful API very predictable. What is the best practice for deciding when to make a segmentation of data using the URI rather than by using query params. It makes sense to me tha...

4

Solved

My question is about the advantages of nesting resources when building URLs for API purposes. Consider the following two alternatives for accessing an employee resource: /api/employees?department=...
Linalool asked 27/8, 2016 at 4:22

5

Guzzle client creates by default from this code $client->get('https://example.com/{?a}', array('a' => array('c','d'))); this url https://example.com/?a=c,d What is the best practice to ...
Irreverent asked 18/12, 2012 at 8:34

7

Solved

To my knowledge both serve the same purpose. Except that @PathVariable is from Spring MVC and @PathParam is from JAX-RS. Any insights on this?
Dawson asked 3/9, 2015 at 5:20

6

Solved

I am using Swagger as my API tooling framework and it is working out great so far. I just came across this page https://petstore.swagger.io/ and saw how each method has a description. For example,...
Leschen asked 18/10, 2018 at 22:27

6

Solved

I am trying to set up a simple Restful Web-Service which returns either JSON or XML according to the Accept header. I am using Spring, Maven and WebLogic Server. I took the example from this post h...
Fated asked 11/2, 2014 at 15:30

9

Solved

I'm struggling to determine how to design restful URLs. I'm all for the restful approach of using URLs with nouns and not verbs don't understand how to do this. We are creating a service to implem...
Fiance asked 24/10, 2009 at 21:14

2

Solved

What is swagger-ui and what is the use of it? I have visited http://swagger.io/, but I need more information. Please guide me.
Wixted asked 28/11, 2014 at 12:21

5

Solved

Facing difficulty in configuring Sybase server with a fresh Spring boot application. Not sure how to configure Sybase server with spring boot successfully. Getting error "Cannot load driver class: ...
Uncurl asked 4/4, 2018 at 19:16

6

I'm new to developing web services in Java (previously I've done them in PHP and Ruby). I'm writing a resource that is of the following format: <URL>/myService/<domain>/<app_name&gt...
Entelechy asked 24/7, 2013 at 17:4

3

Solved

For example, there's a restful API GET http://luexu.com/users/{page} to list the users in Nth page. Suppose there're 20 users in each page. There're 100 users total in the database. GET http:...
Taro asked 1/6, 2019 at 14:51

1

Solved

I need to retrieve the 500 most popular films from a REST API, but the results are limited to 20 per page and I am only able to make 40 calls every 10 seconds (https://developers.themoviedb.org/3/g...
Claus asked 19/5, 2019 at 8:29

2

I need to download a file, but, I am wondering which is the best approach to publish my resource. Lets say I have a Document http://api/documents/id where I make a GET request should I receive t...
Elusive asked 19/3, 2018 at 16:18

© 2022 - 2024 — McMap. All rights reserved.