Questions tagged [uri]
The uri tag has no summary.
30 questions
0
votes
4
answers
380
views
What is the point of the URI specification?
As far as I understand it, the URI specification says that URIs are strings of the format scheme:b, and the format of b is specified by scheme (and there is not a finite centralised list of what ...
1
vote
4
answers
3k
views
How to build REST uri that fetches children by parent ID
I am building 2 REST microservices: ParentService and ChildService. I need to build endpoint to fetch all Child resources related to specific Parent, so I have these URI's as options:
GET /parent/{...
2
votes
3
answers
354
views
REST API: model file uploads as part of a resource or as subresources?
I am designing a REST API that has to deal with users and two video uploads associated to each user. So far, I've come up with two different approaches of modeling this:
Video as part of a user ...
4
votes
0
answers
1k
views
Is there a conventional URI scheme for local sockets (AF_UNIX)?
I'm looking at creating a class which accepts a string to define a Unix socket address.
Linux supports three types of addresses for Unix sockets:
File based addresses (also called named domain ...
-2
votes
1
answer
59
views
What is the correct terminology for the components for a CURI?
Given a curi like [auth:password_reset_confirm], what do you call the part before the colon and what do you call the part after the colon?
I have a json payload with come CURIs that look like this:
......
0
votes
4
answers
947
views
What problems could be caused by inserting into a database on an HTTP GET?
I have code that checks if the scanned qr code exist in the database and if it exist it will insert data into another table but I did it in the HTTP GET request, is this alright to do it this way or ...
0
votes
0
answers
117
views
Instantiating adapters in onion architecture
GitHub and NuGet
Do you use connection strings to instantiate your adapter services or just always configure it through IoC? I think that connection strings could provide a way more flexibility, ...
2
votes
1
answer
534
views
How to structure your URIs?
I am making a web UI and an HTTP API for editing JSON documents in collaboration (role and versioning system).
There are several types of JSON documents. Each type is described by a JSON schema, let ...
-1
votes
2
answers
638
views
Unambiguously represent separator in a string containing an URI?
I'm trying to develop a way to represent something that has an URI inside of it, let's say:
{someVariable}{separator}{URI}{separator}{anotherVariable}
where someVariable is alphanumeric.
I just ...
2
votes
1
answer
93
views
recommendations regarding resource uri
lets say we have a "door api" and I want to create a resource to close the door.
I could do this in 3 ways:
traditional way using PUT with payload {id: XX, color: YY, closed: true}
advantages: simple ...
1
vote
1
answer
47
views
How to represent/address content within multiple / different / stacked mime types?
I have a resource, let's say image.jpg. This image(along with other resources) is compressed in a .zip file (archive.zip) under the path /favimage/image.jpg. The archive is uploaded at http://example....
0
votes
1
answer
235
views
Is a URC (Uniform Resource Citation) synonymous with a Query String or Url Parameters?
Reading this:
https://renenyffenegger.ch/notes/development/web/URI-URL-URN-IRI-URC
URCs provide a set of attribute/value pairs that describe properties of URIs like authorship, publisher, copyright ...
0
votes
2
answers
206
views
REST Resource design
Hi I'm working with an API Where an employee can see his Vacation (overview and balance) and Request new Vacation. A manager can Approve or Reject a Request for Vacation. He can also create Vacation ...
6
votes
5
answers
3k
views
RESTful URI map to database tables?
When designing a RESTful API, should your URI map to tables (for the most part). I have 2 tables that look like this:
Users
+-----------------------------------+
|id|first_name|last_name|email|role ...
5
votes
1
answer
280
views
REST URI convention - Involves different resources
I am designing a REST API but came across some difficulties while naming it. I have an API like this:
GET .../users/{userId}/categories/count
GET .../users/{userId}/categories/{categoryId}/count
...