restful-url Questions

4

Important note The focus of this question is on API endpoints that differentiate which resources are returned depending who authenticates, e.g. Alice gets resource A and B returned, and Bob gets ...
Marvamarve asked 12/3, 2015 at 8:48

5

Solved

In terms of RESTful and stateless it's pretty legal to have resource like /users/123 But, the question is: is it legal to have resource that omits user id and assumes that it's implicitly resolv...
Substantialism asked 22/2, 2017 at 9:26

6

Solved

I'm trying to redirect without parameters being added to my URL. @Controller ... public class SomeController { ... @RequestMapping("save/") public String doSave(...) { ... return "redirect:/...
Cowan asked 6/11, 2012 at 8:35

5

For our Web api project we use the following url versioning system: https://{fqdn}/{apiVersion}/{apiResourceName}/{resourcePath}?{parameters} for instance we can have something like the following...

2

How to design operations like: calculate convert translate For example: convert from "EUR" to "CNY" amount "100". Is this /convert?from=EUR&to=CNY&amount=100 RESTful ?
Alameda asked 29/11, 2016 at 8:53

2

Solved

When designing a RESTful API with ASP.NET Web API, I can create several routes to retrieve the same data. But should I? Is it considered helpful or confusing? For example, if I have an object rela...
Fleeman asked 23/9, 2015 at 15:16

3

Solved

The method in myController looks like this @RequestMapping(value="/{processId}/dependents", method=RequestMethod.POST,consumes="application/json") @ResponseBody public Dependents postdependent(@Mo...
Adala asked 26/2, 2014 at 18:28

4

Solved

I have a RESTful API that I'm designing which uses numeric primary keys for all of its resources. However one type of resource has a convenient natural key, which I'd like to be able to use as an o...
Interfluent asked 10/7, 2014 at 4:0

2

Solved

I have a typical user management module for which I want create REST APIs. User should be able to access his/her details but shouldn't be allowed to access other user details. Being an administrato...
Malcolm asked 24/9, 2016 at 13:27

3

Solved

The HTTP/1.1 standard states that if a POST operation results in the creation of a resource, then the response should include a Location header with the address of the new resource. If a resourc...
Montherlant asked 17/3, 2015 at 6:38

2

Solved

I searched, but I didn't find an answer. I have a RESTful API to manage a basic CRUD. I'm trying to create an update method using PUT, but I can't retrieve the params values. I'm using Postman to m...
Pardon asked 20/5, 2014 at 13:38

5

I want to change a user password via a REST API. This is not a forgotten or reset password function, but a logged in user wanting to change their password. The form requires the current password, ...
Confute asked 22/11, 2011 at 17:58

3

I often get into issue like this, very similar to this Hierarchical RESTful URL design Supposed the service only offers the user to upload a document. POST, GET /accounts PUT, DELETE /accounts/{n...
Loath asked 19/12, 2013 at 23:0

1

OK I can GET POST PUT DELETE simple resources (entities) in my RESTful web service ex. /rest/foos /rest/foos/1 /rest/bars /rest/bars/1 But how to handle adding relationships ex. @OneToMany, ...
Celeski asked 12/9, 2015 at 15:52

2

Solved

I am using jersey with Struts2. But by RestFul Service calls are not working. Below are my configurations files struts.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE strut...
Bersagliere asked 25/6, 2013 at 8:57

3

Solved

I'm considering the following two ways of identifying the tenant of a HTTP request, in a multi-tenant environment - hardcoding the tenant in the URI: /{tenantUuid}/foos/{id} Or passing the tenan...
Strum asked 25/10, 2012 at 22:3

1

var hsbc = angular.module('hsbc',['ngResource','ngRoute']); hsbc.config(['$routeProvider','$locationProvider', function ($routeProvider, $locationProvider){ //console.log('config part working');...
Catarinacatarrh asked 26/4, 2015 at 14:17

2

Solved

Sometime back I developed a Restful service in Java with only 1 GET resource. It was accessed like this: GET http://localhost:8080/my-project/customers/transactions This GET request returns all t...
Retrace asked 9/3, 2015 at 16:32

1

Solved

I'm developing the search functionality of my REST API and currently URI's structured as: api/items?type=egg,potato Let's say each item resource has 4 properties: Id, Name, Type, Rating What ...
Radium asked 23/2, 2015 at 18:48

6

I'm looking for some direction in regards to the URI design for a RESTful API. I'm going to have several nested linked resources and have currently designed my URI's similar to this post: Hierarchi...
Serpens asked 23/10, 2012 at 20:45

2

I have the following entity: <car> <carID>7</carID> <...>...</...> <externalCarID>23890212</externalCarID> </car> The problem is now that carID...
Scientistic asked 7/11, 2014 at 10:46

2

Solved

I have a Java application and I want to log all execution times for each REST service. How to measure execution time for each request? How the filter will be configured?
Ultra asked 11/11, 2014 at 14:52

4

Solved

Currently I have two controllers 1 - Parent Controller 2 - Child Controller I access my Parent Controller like this someurl\parentcontroller Now I want to access my children controller like ...
Cyclopropane asked 28/5, 2012 at 11:29

3

Solved

Let's take the following example: We want to expose company and employee information from a RESTful API. Company data should be quite simply: GET api/v1/companies GET api/v1/companies/{id} Em...

2

Solved

Given the requirement other departments have for our REST API they would like to use POST not just for CREATE but for UPDATE OR CREATE. I know in a RESTful API PUT could or should be used for that,...
Chromatograph asked 18/9, 2014 at 9:33

© 2022 - 2024 — McMap. All rights reserved.