Questions tagged [rest]
REST (REpresentational State Transfer) is a simple stateless architecture that generally runs over HTTP. It is an "architectural style" that basically exploits the existing technology and protocols of the Web, including HTTP (Hypertext Transfer Protocol) and XML. REST is easy to use than the well-known SOAP (Simple Object Access Protocol) approach.
258 questions
0 votes
0 answers
8 views
SafeDelete for Mongodb plugin
Title: Code Review Request: Mongoose Soft Delete Plugin with Query & Aggregate Middleware Body: I’ve implemented a soft delete plugin for Mongoose to handle REST API data safely in a MENN stack ...
8 votes
2 answers
625 views
Own HTTP server implementation in Java with a simple template engine
I would like to hear what you think about my simple HTTP Server implementation with a template engine in Java. Have I overlooked any "pitfalls or caveats", or is there anything else to note? ...
4 votes
2 answers
500 views
Improving upon the Security of my Export Remote Database to Local PHP API
I am working on an in-house application, and I am working on how our application communicates with our remote server. I have a PHP script that acts as an API to call to our MySQL DB and dump its ...
4 votes
1 answer
215 views
Fetching data from a REST-API then converting to CSV
I like to have a script which fetches data from a REST-API then writes the data into a CSV file. Here's what I've got so far (prototype, using a publicly accessible dummy-API): ...
1 vote
0 answers
68 views
Mongo Rest Server
Using the server architecture to provide a REST interface. So I can send/recieve JSON that is put/retrieved from a mongo server. The Fir class MongoRest is similar ...
0 votes
2 answers
158 views
[Spring Boot][REST] Design Pattern Best Practice (Single Entity, multiple business logic implementations)
I have some problems regarding best-practice design between data source layer(Entity), domain layer(Service) and presentation layer (controller): I have one entity with a type field in the database to ...
3 votes
1 answer
73 views
Swift: Mocking a REST API-request
I have read the last two days through several tutorials about how to mock a HTTP-request against a REST API. Finally I made a prototype for applying, what I have understood from the tutorials. Here's ...
4 votes
1 answer
370 views
API Generator for Python [closed]
I'm currently working on my thesis to obtain a bachelor in software engineering, and i want to get some feedback from real developers of how useful this project can be in the real life. the project is ...
3 votes
1 answer
87 views
Users CRUD in fastapi using pymongo
I am building users API with CRUD operation in fastapi and i'd love to hear feedback about it. I have been exploring fastapi in the past weeks and im trying to create API with best practice (scalable -...
1 vote
0 answers
71 views
Making my code shine and pro: Python in Azure Function Retrieveing the Data From Rest API
The code retrieves the data from PBI API - it's my first one and I would like to learn how to make it pro. Here is the list of my questions: Can you please analyze 2 functions: GetReports and ...
2 votes
2 answers
96 views
Spring Boot REST API for moving toy robot in 5*5 grid [closed]
I have designed and coded REST APIs to move the toy robot in 5*5 grid. Please let me know any feedback on improvements, etc Complete Code here: https://github.com/pkkht/RobotRESTApp ...
3 votes
1 answer
446 views
blog RESTFUL api with posts and comments
I built RESTFUL api for a blog using java and spring boot(without a frontend). What it does the code manages all the http methods on a post inside the blog and comments on that post. the post consists ...
-1 votes
1 answer
297 views
is my code protected against SQL injections?
im using spring boot and CrudRepository for my queries, the project is about posting content on a blog, so I have a post record with id, creator name, post name, the content itself likes and dislikes: ...
3 votes
1 answer
168 views
Action argument supporting multiple units as string
I've got a controller with two actions that need to support two units: hours & times. The url should read like this: ...
3 votes
1 answer
125 views
Rest API design with Spring Boot
In a recruitment interview I got this small projet to do at home: rest API written in Java using Spring Boot. As I didn't hear back from the company I wanted to have feedback from review. I am a rest ...