DigitalState / Cms

The DigitalState Cms Microservice
MIT License
5 stars 2 forks source link

Add ability to output the `presentation` value of a file entity by providing its `slug` in the request #2

Closed baddlan closed 6 years ago

baddlan commented 6 years ago

Sample use case: CSS link tag <link rel="stylesheet" href="{{cms}}{{environment}}/files/{{file-slug}}">

This will require knowing the mime type of the file.

StephenOTT commented 6 years ago

Looking at the sample payload from the CMS postman examples, mime type appears to be a missing field and a oversight. mime type should be added as a field when POST /files

StephenOTT commented 6 years ago

Related issue for adding Mime Type: #3

StephenOTT commented 6 years ago

@baddlan can you give a example of a file tag?

baddlan commented 6 years ago

Sorry, by file tag I meant slug. I'll update the title and description of the issue.

marioprudhomme commented 6 years ago

Done.