Skip to main content

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.

4 votes
2 answers
464 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 ...
Cory Green's user avatar
4 votes
1 answer
187 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): ...
michael.zech's user avatar
  • 4,814
1 vote
0 answers
49 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 ...
Loki Astari's user avatar
  • 97.2k
1 vote
1 answer
88 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 ...
user287004's user avatar
3 votes
1 answer
54 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 ...
michael.zech's user avatar
  • 4,814
4 votes
1 answer
355 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 ...
Hernandez Sinsel Jesus Emmanue's user avatar
2 votes
1 answer
69 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 -...
Paul's user avatar
  • 23
1 vote
0 answers
50 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 ...
user1956634's user avatar
2 votes
2 answers
72 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 ...
Hariharan's user avatar
3 votes
1 answer
420 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 ...
Ellie's user avatar
  • 567
-1 votes
1 answer
261 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: ...
Ellie's user avatar
  • 567
2 votes
1 answer
131 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: ...
t3chb0t's user avatar
  • 44.4k
1 vote
1 answer
106 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 ...
Dimitar Angelov's user avatar
1 vote
1 answer
68 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 ...
rest_easy's user avatar
1 vote
1 answer
72 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. ...
Sergey's user avatar
  • 679

15 30 50 per page
1
2 3 4 5
18