Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3619

Restful API Post file and metadata in one HTTP Request

$
0
0

I am currently working at a requirement, where we receive files to process from a website including some metadata such as (Name, App_ID, ...).

The metadata structure will always be the same. In order to use a single http post method to post the files to our system we send any metadata as parameter in the request.

I am just not sure whether or not this is accepted following the restful approach, using HTTP.

An example request:

www.example.com/api/v1/some_data/docs?name=someName&App_ID=021540464&...

Is this design allowed? If not any other suggestions to handle this in a single request?


Viewing all articles
Browse latest Browse all 3619

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>