restful-architecture 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

16

I'm building a PHP RESTful API, following this tutorial. The following function, which should return the data sent with the request when the 'put' method is used, returns null every time: file_get...
Ragi asked 2/10, 2013 at 21:17

6

Solved

My REST client uses RestTemplate to obtain a List of objects. ResponseEntitiy<List> res = restTemplate.postForEntity(getUrl(), myDTO, List.class); Now I want to use the list returned and r...
Danseuse asked 18/8, 2014 at 1:25

3

Solved

I have a simple RESTful method which currently returns JSON representation of an object. My question is more of from the architectural perspective and not completely technical. Should a RESTful...
Frontwards asked 12/3, 2014 at 20:4

5

Solved

There is a RestFull method that return a List of Menu objects public ResponseEntity<List<Menu>> getMenus() { .. } But I don't know how to get them from the RestTemplate, getting the ...
Statolatry asked 26/5, 2018 at 8:32

4

Solved

I have a POST call in Postman that returns this JSON object: { "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiO3Jsb3Blei5hbnRvbmlvODVAZ21haWwuY29tIiwiZXhwIjoxNTkzNjc0MzUxLCJpYXQiOjE1MzMxOTQzNTF9.oTPVkcgF...

3

When you work on RESTFUL service you often hear the terms GET/POST/PUT/DELETE. My question is what is the idea behind so many verbs? I can achieve everything with the help of GET verb or if I want ...
Shakiashaking asked 22/7, 2014 at 11:21

4

Solved

I'm going to design a RESTful API which checks if there's anything wrong (e.g. duplicate, invalid characters, or names listed in the blacklist ... ) with the username provided by the caller. The A...
Protractor asked 5/1, 2018 at 9:49

10

Solved

I'm developing some kind of RESTful API. When some error occurs, I throw an App::abort($code, $message) error. The problem is: I want him to throw a json formed array with keys "code" and "messag...
Manet asked 14/3, 2014 at 19:53

3

Solved

I have a NotificationsController, in which I only have the action clear. I'd like to access this action by doing POST /notifications/clear So I wrote this in my router: resources :notifications...

5

Solved

How to pass Query String Parameters in GET url using Rest Assured? URL is: http://example.com/building My Query Strings are : globalDates:{"startMs":1473672973818,"endMs":1481448973817,"period":...

4

I have created a RestFUL api using mvc4 asp.net web api, one of my customers needs to consume some services from his visual fox pro system. He tells me can't use my RestFUL services, because there...
Ramsdell asked 9/1, 2013 at 5:7

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...

2

Solved

I'm currently developing an Angular 2 application. While developing I started to use TypeScript classes to create objects from JSON I receive through HTTP or when creating a new object in a form. ...

2

Solved

I have a Lambda function, which is a basic Python GET call to an API. It works fine locally, however when I upload to Lambda (along with the requests library) it will not return the JSON response f...

4

Solved

I am working in a RESTful application and when I was reading about REST, I found that REST is an Architectural Style and not an Architecture but I do not understand the reason. Thanks for your answ...
Toastmaster asked 2/10, 2013 at 7:57

5

Solved

OK, I know already all the reasons on paper why I should not use a HTTP GET when making a RESTful call to update the state of something on the server. Thus returning possibly different data each ti...
Flosser asked 9/5, 2012 at 15:19

2

Solved

I am working on a Laravel 5 RESTful API that seems not to be routing the POST requests correctly. This is my routes.php: Route::group(array('prefix' => 'api/v1'), function() { Route::resource...
Badger asked 8/7, 2015 at 22:31

3

Solved

In the login service, a user is posting a json as payload to a Spring RESTful login service like below: { "username": "john", "password": "doe" } Once the Spring RESTful service receives the c...
Shuster asked 14/12, 2016 at 8:16

4

Solved

I'm trying to learn django so while I have a current solution I'm not sure if it follows best practices in django. I would like to display information from a web api on my website. Let's say the ap...
Leucocyte asked 15/5, 2015 at 12:22

4

I am redesigning a small monolith ETL software written in Python. I find a microservice architecture suitable as it will give us the flexibility to use different technologies if needed (Python is n...

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

4

I'm having a real hard time conceptually understanding something proper concerning URLs for versioned resources. Let's say I have an application that tracks recipes in a way very similar to a vers...
Cylix asked 27/2, 2013 at 22:9

4

Solved

I have trouble understanding why PATCH is not safe where PUT is. Aso the idempotent part - if I update a field of the resource, wouldn't that field return the same value after update?
Sinistral asked 30/12, 2016 at 5:18

6

Solved

I have a url to fetch appointments for a user like this: /user/:userId/appointments How should the url look like if I want to get appointments for multiple users? should it be: /appointments?u...
Curriculum asked 14/8, 2012 at 1:3

© 2022 - 2024 — McMap. All rights reserved.