All Questions
Tagged with rest web-services
117
questions
0
votes
2
answers
307
views
Is this service considered "an API"? Could it benefit from being Restful?
I'm confused about the meaning of API, specially in the context of REST. I'm thinking of one example.
My company creates an application that runs on a server (the "backend"). (JavaScript in ...
-1
votes
2
answers
355
views
How to deal with upsert PUT requests in a Spring Boot web application without crossing service and controller layers?
I've got a pretty simple web service that I need to add a PUT endpoint for that can handle upserts. This application is primarily a middleware layer to handle logging, caching and instrumentation in ...
0
votes
2
answers
1k
views
Does PUT need to be idempotent?
It has been said that "PUT is idempotent":
The difference between PUT and POST is that PUT is idempotent: calling it once or several times successively has the same effect (that is no side ...
0
votes
1
answer
48
views
Validating REST API requests against previous requests as part of a larger process
I am building a REST API for warehouse inventory picking.
I have a very shallow understanding of REST, so to me that just == stateless and try to make your URL mappings nouns instead of verbs.
The ...
1
vote
1
answer
163
views
Consuming complex JSON service that does not have schema
Hi I have this weird situation where I have a JSON producing service that represents a very complex object graph and this bject graph does not have a JSON schema that it is based on. The reason for ...
0
votes
4
answers
1k
views
When to throw error in response vs save error in database for POST API
I am creating a API to create Personnels of X city. Assume that there is a generalised service for creating personnel of any city and I want to call this service for X city personnels from my API.
...
0
votes
1
answer
693
views
Is this an anti-pattern to have a service have both APIs and listening to events?
I am planning to make a service which will have simple REST APIs and will have a database in backend. I also wanted to add a logic to listen to notifications emitted by other service and there is some ...
3
votes
3
answers
3k
views
@OneToMany relationship in a microservice environment
I am coming from a typical monolithic background and I've been experimenting a lot with Spring Framework. I have also build some simple microservices communicating with each other etc.
Now I want to ...
3
votes
2
answers
5k
views
Combining PUT and POST on the same resource
I have the resource OrderRequest which I guess can be qualified as process. The OrderRequest can be create of update. The create should be idempotent, because creating the same order request 2 times ...
0
votes
3
answers
498
views
how to build microservices that also have GUIs
In a microservices architecture where each component does one thing, how do you handle GUI logic? How do you avoid building a front end web application that has a lot of smarts built into it where it ...
4
votes
4
answers
1k
views
How to model correctly a non persistent action via REST API
Hi I have a Order this order needs to be sent to an order system. There are several oprations that can be performed.
Create
Modify
Check-Modification (this happens on existing order)
Simulate ...
2
votes
2
answers
886
views
Building a rest api layer on top of a soap webservice
We want to build a rest api layer on top of a soap webservice.
Our current situation is that we have a coldfusion application that talks with the webservice, both running on different servers. The ...
8
votes
4
answers
2k
views
Advantages of HATEOAS based RESTful service
There is a scenario, where we have two commercial applications that are so called REST based(java) but not HATEOAS compliant. Development activity is out-sourced to vendor
Development phase of ...
-2
votes
1
answer
187
views
Monitoring my REST API service
I have a REST API. I want to monitor it -- that it's always up.
That's the canonical way to ping it? Especially when all of its calls require an API key.
Should I create an empty open end point ...
1
vote
0
answers
63
views
Are REST Resources and GraphQL Object Types conceptually equal?
I'm in the process of outlining the intended business logic of a web service. At this point, I'm not too concerned with implementation details. On the contrary, I'm looking for ways to abstract them ...