Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add create entity endpoint #11

Closed
soimugeoWB opened this issue Nov 18, 2024 · 0 comments · Fixed by #13 or protegeproject/webprotege-backend-service#58
Closed

Add create entity endpoint #11

soimugeoWB opened this issue Nov 18, 2024 · 0 comments · Fixed by #13 or protegeproject/webprotege-backend-service#58

Comments

@soimugeoWB
Copy link
Collaborator

Adding a new entity
POST request to the following endpoint with the JSON payload of the new entity. The POST request will contain only the title and one parent for the entity to be created. All other changes on the new entity (e.g., syns, narrower terms, linearizations, postcoordination, etc.) will be done via a PUT command, as defined above.

/icat/entity

The system should return the newly created object similar to the response for the GET request

Bad Request 400
If the content of the entity does not meet the requirements. The server will return 400 Bad Request response

This can be because :

Payload is not a well formed JSON
It's not in the structure expected by the system
Minimum information is not provided (title and at least one parent)
The content is not acceptable due to other business rules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant