Content Types of JSON in particular schema
https://softwareengineering.stackexchange.com/questions/385877
-
19-02-2021 - |
Pergunta
My application stores two different types of json data in s3.
For example: Schema-Foo and Schema-Bar.
Up to now I used the content-type application/json
for both.
I would like to make a distinction between both types in the s3 storage.
I am unsure what the best way would be.
Is it possible to do something like application/json-schema-foo
application/json-schema-bar
?
Nenhuma solução correta
Outras dicas
You might be able to use content-type parameters as in
application/json; schema=foo
application/json; schema=bar
I don't know whether adding user-defined parameters is officially blessed, but as long as you're talking between your own pieces of software who is going to punish you?
Licenciado em: CC-BY-SA com atribuição
Não afiliado a softwareengineering.stackexchange