You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/plugins/minos-http-aiohttp/README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,7 @@
12
12
13
13
## Summary
14
14
15
-
Minos is a framework which helps you create [reactive](https://www.reactivemanifesto.org/) microservices in Python.
16
-
Internally, it leverages Event Sourcing, CQRS and a message driven architecture to fulfil the commitments of an
17
-
asynchronous environment.
15
+
Minos is a framework which helps you create [reactive](https://www.reactivemanifesto.org/) microservices in Python. Internally, it leverages Event Sourcing, CQRS and a message driven architecture to fulfil the commitments of an asynchronous environment.
18
16
19
17
## Installation
20
18
@@ -51,6 +49,7 @@ The source code of this project is hosted at the [GitHub Repository](https://git
51
49
For usage questions, the best place to go to is [StackOverflow](https://stackoverflow.com/questions/tagged/minos).
52
50
53
51
## Discussion and Development
52
+
54
53
Most development discussions take place over the [GitHub Issues](https://github.com/minos-framework/minos-python/issues). In addition, a [Gitter channel](https://gitter.im/minos-framework/community) is available for development-related questions.
Copy file name to clipboardExpand all lines: packages/plugins/minos-router-graphql/README.md
+59-44Lines changed: 59 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ Modify `config.yml` file:
27
27
```yaml
28
28
...
29
29
routers:
30
-
- minos.plugins.graphql.GraphQlRouter
30
+
- minos.plugins.graphql.GraphQlRouter
31
31
...
32
32
```
33
33
@@ -36,6 +36,7 @@ routers:
36
36
### Define your business operation
37
37
38
38
We will use simple query for this demonstration:
39
+
39
40
```python
40
41
from graphql import (
41
42
GraphQLString,
@@ -57,27 +58,32 @@ class QueryService:
57
58
```
58
59
59
60
### Execute query
61
+
60
62
Send `post` request to `http://your_ip_address:port/service_name/graphql` endpoint:
63
+
61
64
```json
62
65
{
63
-
"query": "{ SimpleQuery }"
66
+
"query": "{ SimpleQuery }"
64
67
}
65
68
```
66
69
67
70
You will receive:
71
+
68
72
```json
69
73
{
70
-
"data": {
71
-
"SimpleQuery": "ABCD"
72
-
},
73
-
"errors": []
74
+
"data": {
75
+
"SimpleQuery": "ABCD"
76
+
},
77
+
"errors": []
74
78
}
75
79
```
80
+
76
81
That's all you need to make it work !
77
82
78
83
For more information about graphql and how to define fields or structures, please see the official [graphql-core](https://github.com/graphql-python/graphql-core). library.
79
84
80
85
## Decorators
86
+
81
87
There are 2 types of decorators, one for `queries` and one for `mutations` (commands).
@@ -340,6 +354,7 @@ The source code of this project is hosted at the [GitHub Repository](https://git
340
354
For usage questions, the best place to go to is [StackOverflow](https://stackoverflow.com/questions/tagged/minos).
341
355
342
356
## Discussion and Development
357
+
343
358
Most development discussions take place over the [GitHub Issues](https://github.com/minos-framework/minos-python/issues). In addition, a [Gitter channel](https://gitter.im/minos-framework/community) is available for development-related questions.
0 commit comments