Skip to main content

Store

Store is an API to store a resource to the server. Store can also attach a resource to another resource. For example, we have “Class” resource and it has many “Student” resource. To attach a student to a class, we can make a Store request to the Class resource with no body. The request will be look like this:

[POST] https://host/class/{class_id}/student/{student_id}

Request

HTTP MethodPOST
Path/resource
BodyNo body, JSON, Multipart File

Success Response

The response status code will be 200.

{
"data": {
"id": ..., //created resource id
...additional fields...
}
}