Files
services/blog/posts
Janos Dobronszki 6e8d7f4248 Blog changes + tests (#4)
* Blog changes + tests

* Fix build

* Fix

* Add back step

* Fix logger

* Fix test

* Typo

* Better test

* Changes to tests

* Update micro

* Fixing all them things

* Fixing even more things :))

* Bump micro

* Fix posts and tags by following micro changes

* Trying to pin workflow to correct micro version

* huh

* Bump go micro

* Add etcd replace

* Changing a bunch of things

* Denormalize to fix bug

* Fixes
2020-10-15 15:09:59 +02:00
..
2020-10-15 15:09:59 +02:00
2020-10-15 15:09:59 +02:00
One
2020-10-02 11:13:01 +01:00
One
2020-10-02 11:13:01 +01:00
One
2020-10-02 11:13:01 +01:00
One
2020-10-02 11:13:01 +01:00
2020-10-15 15:09:59 +02:00
One
2020-10-02 11:13:01 +01:00

Post Service

The posts service stores posts

Usage

Create a post

micro call posts Posts.Save '{"post":{"id":"1","title":"How to Micro","content":"Simply put, Micro is awesome."}}'
micro call posts Posts.Save '{"post":{"id":"2","title":"Fresh posts are fresh","content":"This post is fresher than the How to Micro one"}}'

Create a post with tags

micro call posts Posts.Save '{"post":{"id":"3","title":"How to do epic things with Micro","content":"Everything is awesome.","tagNames":["a","b"]}}'

Query posts

micro call posts Posts.Query '{}'
micro call posts Posts.Query '{"slug":"how-to-micro"}'
micro call posts Posts.Query '{"offset": 10, "limit": 10}'

Delete posts

micro call posts Posts.Delete '{"offset": 10, "limit": 10}'