Skip to main content

Questions tagged [rest]

Representational state transfer, or REST, is an architectural style for networking software to transfer information through the web.

-2 votes
1 answer
77 views

How to Implement Spring Boot Endpoint for Confluent Cloud-Like Batch Payloads?

I'm currently working on a Spring Boot application where I need to create an endpoint similar to the one mentioned in the Confluent Cloud documentation (link). The cURL example provided in the ...
Manupriya Logus's user avatar
0 votes
0 answers
174 views

REST Api filtering, sorting and order

I've seen in several REST API guidelines recommendations to use filtering in form of, e.g.: /products?filter=name eq 'Milk' or price lt 2.55 (example from: https://github.com/microsoft/api-guidelines/...
andrew.fox's user avatar
2 votes
2 answers
190 views

Do RESTful endpoints elminate the need to SQL triggers?

Do RESTful endpoints eliminate the need to SQL triggers? Triggers are supposed to execute after a certain event. Would moving to RESTful api endpoints conceptually eliminate the need for SQL triggers? ...
henhen's user avatar
  • 149
0 votes
3 answers
509 views

Is it appropriate to use PUT for resources when the id is deterministically derived from immutable properties?

I'm working with a RESTful API where a POST operation is used to create a user. A required field, which could be an email or a unique user nickname, is unique across the system. The response to this ...
Sergey Kolesnik's user avatar
2 votes
3 answers
1k views

Is it bad practice to create a resource in a GET request when the resource will be created later automatically?

At the moment I design a RESTful API for a resource that is normally created by a cron job from existing data. Since the cron job runs only every 10 minutes it is possible that GET: /user/{id}/...
Timo's user avatar
  • 29
1 vote
3 answers
1k views

Should I use a REST API in addition to websockets?

I am writing a web application for a simple, multiplayer dice game so the traffic from the client to the server is going to be pretty light and latency tolerant. The client will need real-time updates ...
StaticMethod's user avatar
1 vote
2 answers
359 views

Handling simultaneous duplicate expensive read-only HTTP requests

(updated) We have a read-only REST endpoint that performs a somewhat “expensive“ but transient request. Without client needing to poll, we need a mechanism for the server to avoid unnecessary ...
eliangius's user avatar
  • 111
0 votes
0 answers
88 views

sync over async in K8S

We build up a microservice architecture which is called from above by a REACT SPA. All is deployed in the AWS Cloud, that is to say in an AWS EKS (K8S). We have at most 600 users in parallel. Do you ...
kladderradatsch's user avatar
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 ...
Juan Perez's user avatar
-1 votes
3 answers
1k views

HTTP REST API: Is it wrong to put search parameters in a custom header?

The contents of search string are typically sent as part of the URI query: https://domain.name/resource?search=something+i+am+searching+for Those same contents can be sent as the value of a custom ...
SunSparc's user avatar
  • 175
0 votes
1 answer
83 views

REST API: Include graphical resource representation URL: multiple formats problem

Many resources in the REST API I'm designing have a graphical representation. My fist idea was to include the image URL into the resources: Resource1: type: object properties: image: ...
Maxim Zabolotskikh's user avatar
0 votes
1 answer
172 views

How do I avoid reading from S3 every time the user updates a filter on the webpage?

I am building a web application where a user logs in, and uploads a CSV file with employee data to S3. This is an example of the format of the file. id name country age 3243 John Doe USA 48 Using ...
the_muffin_man's user avatar
1 vote
3 answers
2k views

Correct way to return JSON schemas in a REST API

in our company we have some APIs that return some JSON data. Before sending, for instance, data to the backend using PUT, PATCH, or POST, we need to do some kind of validation in the different clients ...
Antonio Gamiz Delgado's user avatar
1 vote
4 answers
4k views

What's the convention to name a REST endpoint that returns a boolean?

I have an endpoint that returns whether a resource is valid or not (true or false): GET resource/{id}/valid Where the returned value is not a field of the resource and is dynamic, it does not depend ...
Marco Lackovic's user avatar
0 votes
1 answer
190 views

How can I implement a lazy-loading cache for REST objects with custom role-based access?

I'm thinking through adding a lazy-loading cache to my API. Currently, REST objects are filtered out (scoped) based on the user's role, and additional constraints in the system. Users of the same role ...
Brady Dean's user avatar

15 30 50 per page