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/template crud #18

Merged
merged 15 commits into from Jan 3, 2017
Merged

Feature/template crud #18

merged 15 commits into from Jan 3, 2017

Conversation

ilsiepotamus
Copy link
Collaborator

@ilsiepotamus ilsiepotamus commented Dec 29, 2016

Description

Covalent-Data's mock object creation and schema parsing has been updated using the very powerful Go template libraries. This allows for several things:

  • actionable functions within schema
  • embed different schema into a top level schema
  • manipulate datum before outputting to mock objects

What's included?

  • New example for users
  • New gitbook based documentation (still a work in progress)
  • Heroku deployment dependencies added

Test Steps

  • peruse /schemas/users.yaml and /schemas/address.yaml to see how they are formatted
  • install Docker Engine
  • in this directory, docker build -t covalent-data .
  • docker run -p 8080:8080 --name covalent-data covalent-data (docker stop covalent-data; docker rm covalent-data to stop and remove the container)
  • GET to http://localhost:8080/users
  • select a user, copy their database_id, and look them up (GET to http://localhost:8080/users/{database_id})

You should see a new users schema, with the embedded mailing_address schema in the returned JSON.

Copy link

@kyleledbetter kyleledbetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and all current functions look good to me!

@kyleledbetter kyleledbetter merged commit f3e3abb into develop Jan 3, 2017
@ilsiepotamus ilsiepotamus deleted the feature/template-crud branch February 21, 2017 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants