All Questions
Tagged with web-development api
36 questions
-1
votes
1
answer
51
views
What is the convention for deciding which resource to place an endpoint under? [closed]
I have an endpoint that teachers can use to invite students to a virtual classroom by providing their emails in a list format. Let's call it POST invite-students. I have these four resources:
api/v1/...
1
vote
2
answers
786
views
Should a client / server share error codes?
I am in two minds about sharing client / server errors codes. We are writing both ends of the system, if our API was external this would not be possible, but that requirement is very unlikely.
So an ...
-1
votes
2
answers
199
views
Is there a name for this common web application architecture?
It's an architecture where the client-side consumes data from, and sends data to, a back-end REST API. I would like to learn more about it, but I don't know the name of it.
2
votes
2
answers
155
views
Authenticate users (REST-API)
What I'm trying to build
REST-API using Express and SQLite
5 to 10 authors should be able to post articles to /articles
except them, no one is allowed to post anything
My approach to build it
...
0
votes
0
answers
97
views
Handle big data sets in a web application in combination with real-time communication between web-clients
We have the following use case to be developing:
A web application that shows a data table / data grid with up to 100000 rows and 30-50 columns. Each column is filterable and sortable. The web ...
4
votes
3
answers
830
views
Why not use SQL to query an API instead of GraphQL?
nalzok posted an interesting question over a year ago: "Why not use SQL instead of GraphQL?".
Respondents seem to suggest three main problems:
One should not directly expose one's database ...
48
votes
8
answers
10k
views
Is it common practice to validate responses from 3rd party APIs?
I'm working on a PHP web application that depends on a few 3rd-party services. These services are well documented and provided by fairly large organisations.
I feel paranoid when working with ...
-2
votes
3
answers
76
views
Is there a secure way to ensure a data in an API endpoint of mine came from an Instagram endpoint?
Is there a way through encryption/keys/jwt or anything else to ensure that the data being sent through a POST request is only data coming from another request I made on the client to a 3rd party ...
0
votes
2
answers
113
views
How sensible is it to build a website/app etc. using an external api?
Wanting to expand my programming horizons I recently started building a website.
I have started to build up my website and it is heavily focused around an external api.
The reason for using this api ...
0
votes
1
answer
155
views
Where is the distinction between a web application and an API?
This question is highly related to this over question. I'm asking another question between I still am a bit confused on the topic.
The Issue I Ran Into
I currently have a Django web application ...
12
votes
5
answers
17k
views
Is creating ViewModels in Web API a bad practice?
So, somebody at work who is twice as experienced than I am, told us that we must not create ViewModel classes within Web API. (We are using Angular for UI)
In his opinion ViewModel is ASP.NET MVC ...
0
votes
1
answer
941
views
Adding resources to subresource REST API
I'm trying to build an web API that closely represents a library of books. I currently have the following routes.
GET /api/books
GET /api/books/:bookID
GET /api/libraries
POST /api/libraries
This ...
43
votes
5
answers
16k
views
Why not use SQL instead of GraphQL?
Recently I learned about GraphQL which claims to be superior to RESTful. However, I started wondering why don't we simply put SQL statements into an HTTP GET request.
For example, in GraphQL I would ...
0
votes
2
answers
164
views
How to describe an API-like request that is browser-to-browser?
I'm building a web application that has a feature which allows visitors to directly access resources using URL patterns, for example:
www.site.com/client/[clientID]/orders
www.site.com/client/[...
2
votes
1
answer
68
views
Creating backend system, over API
I recently came across a demand to create a web system (which will be done in PHP, but is for any language), to have the same functionalities of a mobile application already ready. This app has a ...