Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: Add Sitegeist.Monocle:StaticUri prototype #92

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

mficzel
Copy link
Member

@mficzel mficzel commented Oct 11, 2018

The prototype creates an URI that will return the content of the file and the contentType for the given key.

    endpointUrl = Sitegeist.Monocle:StaticUri {
        key = 'example'
    }

The path and content type for each key are configured via Settings:

Sitegeist:
  Monocle:
    uriMock:
      static:
        example:
          path: 'resource://Vendor.Package/Private/Json/example.json'
          contentType: 'application/json'

The prototype creates an URI that will return the content of the file and the contentType for the given key.

```
    endpointUrl = Sitegeist.Monocle:StaticUri {
        key = 'example'
    }
```

The path and content type for each key are configured via Settings:

```yaml
Sitegeist:
  Monocle:
    uriMock:
      static:
        example:
          path: 'resource://Vendor.Package/Private/Json/example.json'
          contentType: 'application/json'
```
@mficzel mficzel force-pushed the feature/addStaticUriPrototype branch from bb09c0f to 6730be5 Compare October 11, 2018 09:15
@mficzel mficzel merged commit 5910604 into master Oct 11, 2018
@mficzel mficzel deleted the feature/addStaticUriPrototype branch November 9, 2018 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant