Encyclopedia Magnifica!
Implement a dictionary word marshaller to interface with different dictionary vendors.
- Clone the Labs Repo
- Cd magnifica
- Our business
Encyclopedia Magnifica
exposes world class dictionary words to our clients. - Most of our dictionary vendors provide JSON APIs exposing
jurassic
dictionary entries. - So we've decided to abstract away their discrepancies by defining our very own Dictionary Entry as follows:
- Dictionary string
- Location string
- Vendor string
- Word string
- slang bool (private)
- Implement a Marshaller to interface with our new vendor ACME Dictionary.
- The ACME JSON API exposes the following fields:
- dictionary_location string
- dictionary_word string
- dictionary_creation_time int64 (unix nano)
- political_correctness bool
- The ACME JSON API exposes the following fields:
- Implement a Marshaller for our Dictionary Entry to interface with the ACME API.
- Implement the necessary tests to make sure we can correctly marshal/unmarshal our dictionary entries to the ACME specification.
- Ensure all your test are producing the desired outputs!
© 2020 Imhotep Software LLC. All materials licensed under Apache v2.0