Representational state transfer, or REST, is an architectural style for networking software to transfer information through the web.
0
votes
1answer
39 views
Real time middleware system: Direct DB access vs REST API access
I'm developing a complex environment which involves a web application, a mobile app and a real time middleware system which accesses the DB for on-site tag readings. Currently, the web application ...
-2
votes
1answer
89 views
JAX-RS and application wide business logic/resources. My brick wall has be found [on hold]
I think I'm definitely hitting a brick-wall in understanding how to implement this. I would very much appreciate any assistance in this.
All my JAX-RS links, Oracle, IBM and Stack overflow links ...
0
votes
1answer
39 views
What are the standards for having nested resources in REST API
I am designing a REST API and figured I'll just look at how others are naming their resources and choosing the routes.
I look at Twitter's API and see that they have nested resources. For example:
...
1
vote
0answers
29 views
ASP.NET how to handle external application settings
I'm converting an application from C# WebForms to MVC.
The application gets settings from a centralized location using Web Services. These are settings you would typically find in a Web.Config, but ...
-1
votes
1answer
71 views
How to design RESTful URI to get all unread messages?
I'm developing an ASP.NET MVC Web Api 2 with .NET Framework 4.5.1 and C#.
I have these entities in database:
Users, which are members of groups.
Groups.
Messages. Users can sent messages to a ...
2
votes
2answers
96 views
What is a good design pattern to implement REST services on mobile?
It is easy to implement calls to API endpoints, then to parse JSON and handle the data - but what is a good design pattern for this?
Here are some ways I have tried but I feel like there should be a ...
0
votes
1answer
74 views
Anonymous access to api REST, protection
I have a public website that does not require authentication. It's a lighting calculator for indoor cultivation. Anyone can enter and complete the process and ultimately save your settings for future ...
1
vote
2answers
169 views
Is this a good Visual Studio solution structure for a domain driven design RESTful web service?
I am building a .NET 4.5 C# Web API RESTful solution and I would like someone to tell me if my project solution is correct and/or wise(-enough?) for a solution designed using Domain Driven Design, ...
0
votes
4answers
111 views
How to design RESTful Web Api to represent Resources
I'm developing an ASP.NET Web Api 2 RESTful web api with .NET Framework 4.5.1 and C# and I'm trying to understand how to expose resources through a Web Api:
Imagine that I'm a group owner and I am ...
1
vote
2answers
99 views
Architecture to handle service concurrency on resources exposed via REST API [on hold]
REST API frameworks like Python Eve handle concurrency control via an entity tag. This ensures that several clients which loaded the same resource will not overwrite the changes of each other, because ...
14
votes
4answers
399 views
Providing friendly URLs for a website vs. realities of database IDs
We have a database of resources, be they products, blog posts or something. We need to design a URL scheme to address them, for the public website.
Here are two examples that are database ID bound:
...
2
votes
1answer
205 views
What is the advantage of using Direct Web Remoting over a REST web services design? [closed]
I have an enterprise Java web application deployed in tomcat. I am looking for ways to integrate a HTML & JS UI with the mid tier java code. So far, looking around I have found that there are two ...
0
votes
1answer
36 views
How to avoid model duplication in JavaEE web applications with a JSON front end
Recently we developed a web app that uses the following tech stack:
hibernate as orm
spring
extjs (MVC javascript front end)
For 1 business object, let it be a Personnel, we have:
1) a Personnel ...
0
votes
1answer
85 views
Public API Facade with Micro Services
Consider a micro service infrastructure in which each service is responsible for one set of activities, and exposes a RESTful interface to its functionality. For example, assume a chat application.
...
1
vote
1answer
92 views
What standard to use for RESTful JSON API [closed]
I am currently reading the book RESTful Web APIs by Leonard Richardson, Mike Amundsen and Sam Ruby, that describes the Collection+JSON pattern, and while searching around the web during my exploration ...
6
votes
3answers
255 views
Proper Response to HTTP Request When Too Much Data is Requested
I'm building an API for an ad serving platform that will allow you to request tracker data for ad campaigns. Campaigns often exceed hundreds of millions of requests, which means there will be many ...
-2
votes
0answers
13 views
UnmarshalException while consuming a web service [migrated]
I have a web service based on a number of entity classes. one of them is shows below
@Entity
@Table(name = "users")
@XmlRootElement
@NamedQueries({
@NamedQuery(name = "Users.findAll", query = "SELECT ...
0
votes
1answer
71 views
REST API design for associations/aggregation
I am building RESTful API that manages persons and lists.
There can be many List and many Person each with its own set of properties. Person can be in zero or more lists, List can contain zero or more ...
1
vote
1answer
84 views
Is routing a site with RESTful not the best when you have very long URLs?
I've read a lot about RESTful, but I have always had a hard time figuring out how I'd use it with a very long query string. This is an in-house project, and it won't always have a simple /someAction ...
1
vote
2answers
129 views
Is RESTFUL API as back-end service one of the best (or suitable) choice for Mobile App? [closed]
I have a background on .NET development, recently I was asked to code back-end service for a mobile app. I had experiences on MVC, and now I'm trying to understand more on Restful Web API.
My ...
0
votes
1answer
102 views
How does “dogfooding” work?
I heard that twitter practices "dogfooding," meaning that they use their own API for the website. However, I don't really understand how that's true. When I use Firebug, I see that all the AJAX calls ...
35
votes
5answers
4k views
Passing functions into other functions as parameters, bad practice?
We've been in the process of changing how our AS3 application talks to our back end and we're in the process of implementing a REST system to replace our old one.
Sadly the developer who started the ...
0
votes
2answers
111 views
API Class with intensive network requests
I'm working an API which works as "intermediary" between a REST API and the developer.
In this way, when the programmer do something like this:
User user = client.getUser(nickname);
it will ...
0
votes
0answers
28 views
Single result as REST/ODATA response on GET
In an API which should be both restful and support OData for different client types.
I have an endpoint that always returns a single result.
Should I:
Return the entity as a single entity?
Put it ...
0
votes
2answers
101 views
Which pattern is suitable to send multiple type of responses through REST web service?
I have bunch of REST style web services which support XML and JSON type responses. Now I have to modify existing web services such that they provide Protobuf type of responses.
Developer who has ...
0
votes
1answer
61 views
Ideal & idomatic javascript interface for RESTful API
I am trying to write an angular service to interface with a RESTful API.
For sake of simplicity, lets assume the API is
+ Company
|___+ Department
| |____ Person
|
|____ Person
Notice how ...
1
vote
0answers
92 views
How to make sure media are used only on authorised sites?
I have a video library that I need to publish for my clients. The clients need to be able to embed a player to their sites and play the videos. I need to restrict access to my clients only so that ...
-2
votes
2answers
179 views
Where and when should I use RESTful [closed]
When I should use REST? In what kind of web applications? In terms of java in what situation RESTful would be better than ordinary servlets / JSP ?
Imagine that I have a web page where users can ...
5
votes
4answers
535 views
Is it a good idea to merge multiple HTTP requests to save bandwidth?
I am preparing a single page application that would be sometimes used over slow mobile connection. Some of its part are quite heavy in terms of API requests (fetching ten different resources for a new ...
1
vote
1answer
89 views
Should data be stored to local database in Android when heavily using REST services?
Let's say I have an application that has constantly changing data. Changes are so frequent that you basically need to refresh data every time you open some screen and keep refreshing it. Is it worth ...
1
vote
0answers
30 views
Defining user operations on application/collection+json response?
I'm fairly new to Collection+JSON. I have a bunch of questions regarding Collection+JSON and user operations.
Use Case
Having user permissions in a Collection+JSON response would be useful in ...
1
vote
1answer
111 views
Avoiding Double POST
We are implementing a RESTful webservice that will allow client applications to POST documents to it and it will store the document returning a unique identifier in the response. The clients will ...
1
vote
1answer
70 views
How to handle a Restful Call in a RESTless state?
I have a bit of a dilemma. We are choosing our DBContext using a dynamic builder. This is done because in the current database structure we have a separate server for every "Customer". All of these ...
3
votes
1answer
79 views
Should I add a key to the items of my REST API response?
I have an REST API endpoint which the JSON response looks like:
{
"products": [
{"id": 1040, "price": 2.95, ...}
{"id": 4545, "price": 3.95, ...}
]
}
One of my colleagues ...
2
votes
2answers
208 views
Best pratice for return json in a REST application?
I'm starting now with REST (using Laravel 4.2) and Mobile (Android, iOS, SP, etc.) applications.
Initially I'm checking if the request is ajax/json and then return a json response.
But this ...
0
votes
1answer
42 views
How to communicate side effects in a RESTful API on the server to the client?
I have been thinking a lot about Hypermedia REST-APIs for the last couple of weeks. One thing I am not quite sure about is how I want to model side effects on the server side.
In my current project, ...
1
vote
2answers
224 views
What is the purpose of RESTful URIs for POST/PUT/PATCH/DELETE methods?
In the process of conceiving a web application framework, I spent some time pondering the notion of RESTful paths. If I wanted to create e.g. a new topic, I might send a POST request to /topics. The ...
0
votes
1answer
76 views
In a REST service project, where should we put code that calls a third party REST API?
My project is organized in layers like
Configuration
Controller
Service
Repository
Domain
Our REST Controller is in the Controller layer. We need to connect to another API via REST calls and I'm ...
0
votes
1answer
48 views
How should a REST API handle PUT when missing parameters?
I have a list of users that are being assigned to a certain office. I use checkboxes to select each user and when the client is done, a PUT is performed:
PUT offices/:id
users[0] : 14
users[1] : 12
...
1
vote
0answers
28 views
Android network Lib development
I have to develop an Android library that should frequently communicate with a server in the background. Access to the lib Object should be guaranteed everywhere in the Apps that will use it, so I ...
4
votes
3answers
253 views
How to handle business rules with a REST API?
I have a REST API to manage a booking system
I'm searching how to manage this situation :
A customer can book a time slot :
A TimeSlot resource is created and linked to a Person resource. In order to ...
1
vote
1answer
51 views
Web-services REST security clarification
I'm newbie of web services programming and I have some problem to understand how to work authentication/security for REST WS pattern.
I had read about OAuth but I haven't understand how it work in ...
2
votes
1answer
58 views
Web Service REST clarification
I'm new to web-service programming, and I'm unsure of a few things. I know that REST web-services can be used to interact with the system like this:
to retrieve a user: GET /user?id=1
to retrieve ...
2
votes
1answer
86 views
How to handle hidden folders on deployed website
Our security team at work did a security scan of our soon-to-be-deployed website and one of the items that was found was "Hidden Directory Detected". It shows up for 3 different folders, ...
1
vote
1answer
48 views
URLs with variable query strings and cache
I am developing a media server, the basic functionality is to serve an image, which is done the following way
/media/:id
where :id is the id of the image.
You may want to ask for a specific size, ...
3
votes
1answer
177 views
Good way to handle the notification counter like Facebook does
I want to build a similar notification mechanism that Facebook handles.
I actually store the user's notification in an SQL table (actually it's a graph database but everybody master RDBMS terms).
...
0
votes
1answer
87 views
Single page app permissions represented through RESTful APIs
I'm trying to figure out the right way to handle permissions in a single page app that talks directly to several RESTful APIs, that implement HATEOAS.
As an example:
"As a user of my application I ...
1
vote
3answers
140 views
Commenting strategies in C# & asp.net web api
I've been working on a ASP.NET Web Api 2 project as a learning exercise, and I was wondering what the norm regarding commenting is.
I use the Repository / Service Pattern, and everything is very much ...
0
votes
0answers
57 views
Multitier architecture using API
I have been reading a number of posts and I am leaning towards building an SOA.
My main dependencies are:
Need to support multiple clients
Need individual client environments to not effect other ...
0
votes
2answers
181 views
DTO - service layer - statelessness best practices interfering with each other
I am designing a REST API coupled with a service layer that takes DTOs as input and produces them as output. This works fine for most service calls where the DTO is used to access an underlying ...