All Questions
5 questions
0
votes
3
answers
180
views
Communicating error conditions in client API for remote RESTful server, what's the best way?
I'm writing an application based on a RESTful API located in a server (written in Python).
An Android app will access the API endpoints to get, post, put or delete data. The usual.
The server has a ...
3
votes
4
answers
7k
views
Check if resource exists before inserting to the database or wait until the DAO throw the Exception?
I have two paths:
/students
/students/{id}/addresses
...with the following behavior:
POST to /students - 201 Created (if successfully created the Student)
POST to /students/{id}/addresses - 201 ...
-1
votes
1
answer
63
views
Handling RuntimeExceptions thrown from Services and Libraries
I am working on a ReST based service which calls other ReST based services and also deals with Persistence in a database. So a typical call might look like
Get some data from the database.
Make a call ...
1
vote
2
answers
106
views
Should a client check for persisted item existence before modifying it?
I'm developing a MVC Web application with a REST interface.
The REST controller performs actions on persisted items through a service class, which translates exceptions coming from the persistence ...
0
votes
5
answers
2k
views
Handling DomainExceptions using REST endpoint
Suppose I'm doing some DDD.
Now, I have a microservice reflecting a bounded context/a part of a bounded context.
Now, suppose there is a REST endpoint:
'/somedomainmodel/someaction'
My API user is ...