This is a WEB API that works as a microservice within the Toposoid project. Toposoid is a knowledge base construction platform.(see Toposoid Root Project) This microservice is responsible for managing content. Specifically, this includes image management. outputs the result in JSON.
- Docker version 20.10.x, or later
- docker-compose version 1.22.x
- Required: at least 1.61G of HDD(Docker Image Size)
docker-compose up
The first startup takes a long time until docker pull finishes.
- This API reads the image of the URL, processes the image, and returns the URL managed by Toposoid.
#ex
curl -X POST -H "Content-Type: application/json" -H 'X_TOPOSOID_TRANSVERSAL_STATE: {"userId":"test-user", "username":"guest", "roleId":0, "csrfToken":""}' -d '{
"id": "d64f48da-0efb-4bf8-b1d4-75a5fa7cec72",
"imageReference":{
"reference": {
"url": "",
"surface": "猫が",
"surfaceIndex": "0",
"isWholeSentence": false,
"originalUrlOrReference": "http://images.cocodataset.org/val2017/000000039769.jpg"
},
"x": 27,
"y": 41,
"width": 287,
"height": 435}
}' http://localhost:9012/registImage- if you want to upload temporary content, please use uploadTemporaryImage Action.
- This microservice uses 9012 as the default port.
This program is offered under a commercial and under the AGPL license.
For commercial licensing, contact us at https://toposoid.com/contact.
For AGPL licensing, see below.
AGPL licensing: This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.
- Makoto Kubodera(Linked Ideal LLC.)
Thank you!