How to send and get 3D/2D Objecte from server with REST-API

Hello, how could I send and take 3D/2D objects (.OBJ, .GLTF, .JPG, .PNG) between server (REST-API) and client mit C++? Thank you.