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: README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,26 @@ This project embodies our vision of a world where collaboration leads to greater
10
10
11
11
This project is the core community building portion of the Better Together platform.
12
12
13
+
## Joatu Requests and Offers
14
+
15
+
The Joatu module enables community members to post service **requests** and **offers** and to create agreements between them.
16
+
17
+
### Endpoints
18
+
19
+
-`POST /:locale/joatu/requests` — create a request
20
+
-`POST /:locale/joatu/offers` — create an offer
21
+
-`POST /:locale/joatu/agreements` — create an agreement between an offer and a request
22
+
-`POST /:locale/joatu/agreements/:id/reject` — reject an agreement
23
+
24
+
Each endpoint expects parameters nested under the matching resource name. For example:
25
+
26
+
```bash
27
+
curl -X POST /en/joatu/requests \\
28
+
-d 'request[name]=Repair help'\\
29
+
-d 'request[description]=Need bike fixes'\\
30
+
-d 'request[creator_id]=<person_uuid>'
31
+
```
32
+
13
33
## Dependencies
14
34
15
35
In addition to other dependencies, the Better Together Community Engine relies on Action Text and Action Storage, which are part of the Rails framework. These dependencies are essential for handling rich text content and file storage within the platform.
0 commit comments