Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 591 Bytes

README.md

File metadata and controls

49 lines (34 loc) · 591 Bytes

web-service-gin

Go server to store objects organized by repository

API

Upload an Object

PUT /data/{repository}
body { content: string }

Response

Status: 201 Created
{
  "oid": "2845f5a412dbdfacf95193f296dd0f5b2a16920da5a7ffa4c5832f223b03de96",
  "size": 1234
}

Download an Object

GET /data/{repository}/{objectID}

Response

Status: 200 OK
{object data}

Objects that are not on the server will return a 404 Not Found.

Delete an Object

DELETE /data/{repository}/{objectID}

Response

Status: 200 OK