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.
256
questions
4
votes
1
answer
339
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 ...
0
votes
0
answers
31
views
Seeking Feedback on React Authentication System Implementation
I've developed a React authentication system for my application and would like to receive feedback on its correctness and potential improvements. Below is an overview of the key components and ...
2
votes
1
answer
58
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
44
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 ...
0
votes
0
answers
26
views
General setup for ASP.net REST webapi
I am currently building a REST webapi. Right now I am wondering if this design is in the right direction.
Firstly, I am using entity framework. I like to call the items in the database DbItems. The ...
2
votes
2
answers
67
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
...
2
votes
1
answer
394
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 ...
0
votes
1
answer
220
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:
...
2
votes
1
answer
119
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:
...
1
vote
1
answer
78
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 ...
1
vote
1
answer
64
views
Code to save account details and register based on payload
I have this flow for registering a user. They send an empty user account no to get a temp account no which then they use for verifying the OTP by email and phone. Both done they should register ...
1
vote
1
answer
68
views
A test class for a REST application
Here's a suite of integration tests for my REST controller. Among other things, it reflects my efforts to reduce code duplication
First, I introduced some class fields. ...
1
vote
2
answers
178
views
Search/Query API cross parameter check
Background
I was working on a coding challenge as part of an interview process. I had to create a REST API where the user can report sensor data and query derived metrics based on several filter ...
4
votes
1
answer
108
views
Spring REST Endpoint for Saving a User Inquiry
Here's a piece of code from codebase I maintain/contribute to.
It is a Spring REST controller, which exposes an endpoint to create user question. The question consists of title, description and ...
2
votes
1
answer
186
views
Python REST API Calls Structuring
I am writing a python REST API library for Starburst and am trying to figure the best way to structure the code so it's dry but also easy to understand. Below is an example of code that is not dry.
...