Preserving Order of Related Resources
JSON API Forums
by td4242
8M ago
Hello everyone, I’m working on an application where the order of related resources in a JSON array has semantic importance. It doesn’t look like there’s any word on this within the spec so I want to ask here. I’m wondering about the default sort order that the API should return objects in. I would like and kind of expect them to be returned in the same order that the client created them in. Specifically, I want to ensure that clients retrieve related resources in the exact order they created, updated or added them. Before finalizing this approach, I’d like to gather insights and feedback from ..read more
Visit website
Managing relational data
JSON API Forums
by opa
8M ago
Hello, I am working with two resources: Buildings and Characteristics. The Characteristics stores all the definitions that a building could have. When an characteristic is applied to a building, it receives a value. For example, the “number_desks” characteristic might have a value of 5. My question is: Can I add this relational data to the relationship resource, and is it possible to retrieve this data through a query? // /building/4 { "data": { "type": "building", "id": "4", "attributes": { "name": "Empire State Building" }, "relationships": { "characteristi ..read more
Visit website
Conflicting required response codes on POST request with unsupported client id creation and wrong type?
JSON API Forums
by olhe
8M ago
Hello! In the spec for 1.1, under “9.1 - Creating Resources”, it is stated that: A server MUST return 403 Forbidden in response to an unsupported request to create a resource with a client-generated ID It is also stated that: A server MUST return 409 Conflict when processing a POST request in which the resource object’s type is not among the type(s) that constitute the collection represented by the endpoint. It seems these two requirements can conflict with each other, in the case where the POSTed resource object has both of these: An ID, even though client-generated IDs are not supported ..read more
Visit website
Null relationship object for non-existent relationship
JSON API Forums
by udit-gupta
9M ago
Hi, I am working on a project which extensively uses JSON:API specifications. The client requests a compound document using the include keyword. The server successfully responds with a valid compound document having “full linkage”. The “relationships object” contains “relationship object” for all the direct relationships for the document’s primary data. Each “relationship object” only contains the data section, i.e. Resource Linkage. The client makes the same request multiple times (polling) to stay updated with the state of the data on the server. The relationships that the primary data has a ..read more
Visit website
Add a JSON:API implementation for FastAPI (Python)
JSON API Forums
by Znbiz
10M ago
Hi, I wanted to bring to your attention a new implementation of the JSON:API specification for FastAPI in Python. This implementation has shown promising results and I believe it would be beneficial to include it in the general list of Python implementations for the JSON:API. You can check out the library and its documentation at the following link: https://fastapi-jsonapi.readthedocs.io/en/latest/index.html I’d appreciate it if you could take the time to review it and consider its inclusion. Thank you in advance for your time and consideration. 1 post - 1 participant Read full topic ..read more
Visit website
Add a JSON:API implementation for FastAPI
JSON API Forums
by Znbiz
10M ago
Hi, I wanted to bring to your attention a new implementation of the JSON:API specification for FastAPI in Python. This implementation has shown promising results and I believe it would be beneficial to include it in the general list of Python implementations for the JSON:API. You can check out the library and its documentation at the following link: FastAPI-JSONAPI — FastAPI-JSONAPI 1.1.0 documentation I’d appreciate it if you could take the time to review it and consider its inclusion. Thank you in advance for your time and consideration. 1 post - 1 participant Read full topic ..read more
Visit website
OWASP WAF rules reject application/vnd.api+json
JSON API Forums
by maahrens
10M ago
I run into an issue where json:api requests are blocked by Web Application Firewall. The implemented rules come from OWASP project and here, application/vnd.api+json is not on the content-type default allow list. github.com coreruleset/coreruleset/blob/v4.0/main/crs-setup.conf.example#L435 # MERGE MKACTIVITY MKCOL MOVE PROPFIND PROPPATCH PUT UNLOCK # Uncomment this rule to change the default. #SecAction \ # "id:900200,\ # phase:1,\ # nolog,\ # pass,\ # t:none,\ # setvar:'tx.allowed_methods=GET HEAD POST OPTIONS'" # Content-Types that a client is allowed to send in a request. # Defaul ..read more
Visit website
How to Fetch linked object
JSON API Forums
by jpvis
10M ago
I have created a person and employment. Now when I access employment , I need to get the person details. But the included is empty. In relationship, ( person) , I did not find the personId. The self and related links are not working. Please help https://integrations.cintra.cloud/integrations/3cabfea6-8556-4245-b932-8ae8d933a537/employments/EmploymentId/PW4?include=person 1 post - 1 participant Read full topic ..read more
Visit website
Employment Creation
JSON API Forums
by jpvis
10M ago
I was trying to create employment. Which has 4 relationship. PersonId, EmployerId, PayrollId, LocationId. The personId will be available when we create a perons. What about other 3 values. Where can I get these 3 values. As of now I have hardcoded some values from existing records. Thanks JP 1 post - 1 participant Read full topic ..read more
Visit website
Real world APIs that conform to JSON:API?
JSON API Forums
by hxk1633
10M ago
I’m new to JSON:API and I was wondering if there are any public APIs that conform to the JSON:API specification. 1 post - 1 participant Read full topic ..read more
Visit website

Follow JSON API Forums on FeedSpot

Continue with Google
Continue with Apple
OR