addressbook-api
編輯歷史
| 時間 | 作者 | 版本 |
|---|---|---|
| 2018-08-18 12:58 – 12:58 | r1249 – r1250 | |
顯示 diff(134 行未修改)
|
||
| 2015-07-13 17:05 | r1248 | |
顯示 diff(13 行未修改)
*/search?q="keyword"
- *seach on type
+ *search on type
*request: /person/search?q="張"
*{
(116 行未修改)
|
||
| 2014-11-16 17:07 – 17:10 | r1203 – r1247 | |
顯示 diff(1 行未修改)
Server: http://pgrest.io/hychen/api.addressbook/v0/collections/
server is base on PgREST 投影片
-
how to host api.addressbook at local
+
+ 目前使用新的方案 Popit API文件在此
+ server: https://taiwan.popit.mysociety.org/
*server side
(125 行未修改)
|
||
| 2014-04-29 06:04 – 06:06 | r1168 – r1202 | |
顯示 diff(20 行未修改)
* },
* "entries": [
- * {
+ * {s
+ *
* "memberships": [
* ...
(85 行未修改)
*l // 長度
*sk // offset 位置
+ *fo: only return entry if fo is true
+ *c: only return count if c is true
*entries:
*資料的 array
(15 行未修改)
|
||
| 2014-04-27 19:46 – 19:46 | r1133 – r1167 | |
顯示 diff(85 行未修改)
*讓他是個變數,這樣比較好懂 :smile:
*person不是固定的 string 嗎? 應該不會變了吧
+ *除了 person 外還有 organiztaion 和 membership 阿
*
*request: /person/1
(39 行未修改)
|
||
| 2014-04-27 19:27 – 19:34 | r1113 – r1132 | |
顯示 diff(83 行未修改)
*/:person/:person_id/
*這邊就直接寫 person 如何?
- *讓他是個變數,這樣比較好懂 :smile:
+ *讓他是個變數,這樣比較好懂 :smile:
+ *person不是固定的 string 嗎? 應該不會變了吧
*
*request: /person/1
(39 行未修改)
|
||
| 2014-04-27 19:15 – 19:24 | r957 – r1112 | |
顯示 diff(13 行未修改)
*seach on type
*request: /person/search?q="張"
- * {
+ *{
* "paging": {
- * "count": 648,
+ * "count": 111,
* "l": 2,
* "sk": 0
(17 行未修改)
* "query": "(\"name\" ~* '張')"
*}
- *
+
*scope search
- */:type/:subtype/:subtype_id/name/:name/search?q="keyword"
+ */:type/:subtype/:subtype_id/:name/search?q="keyword"
- *
- *
+ *request: /person/memberships/2/name/search?q="張"
+ *{
+ * "paging": {
+ * "count": 5,
+ * "l": 2,
+ * "sk": 0
+ * },
+ * "entries": [
+ * {
+ * "memberships": [
+ * {
+ * id: 2,
+ * role: "黨員"
+ * ...
+ * }
+ * ...
+ * ],
+ * "name": "張建榮",
+ * "id": 1
+ * },
+ * {
+ * "memberships": [
+ * {
+ * id: 2,
+ * role: "黨員"
+ * ...
+ * }
+ * ...
+ * ],
+ * "name": "張漢東",
+ * "id": 11
+ * }
+ * ],
+ * "query": "(\"name\" ~* '張')"
+ *}
Resource
*one data with id
- */person/:type_id/
+ */:person/:person_id/
*這邊就直接寫 person 如何?
+ *讓他是個變數,這樣比較好懂 :smile:
*
*request: /person/1
(39 行未修改)
|
||
| 2014-04-27 19:15 – 19:15 | r947 – r956 | |
顯示 diff(49 行未修改)
*one data with id
*/person/:type_id/
-
+ *這邊就直接寫 person 如何?
+ *
*request: /person/1
*{
(38 行未修改)
|
||
| 2014-04-27 19:14 – 19:14 | r934 – r946 | |
顯示 diff(41 行未修改)
*scope search
*/:type/:subtype/:subtype_id/name/:name/search?q="keyword"
+
+ *
+ *
(44 行未修改)
|
||
| 2014-04-27 19:14 – 19:14 | r930 – r933 | |
顯示 diff(45 行未修改)
Resource
*one data with id
- */:type/:type_id/
+ */person/:type_id/
*request: /person/1
(39 行未修改)
|
||
| 2014-04-27 19:14 – 19:14 | r927 – r929 | |
顯示 diff(28 行未修改)
* },
* {
- * "death_date": null,
- * "birth_date": null,
* "memberships": [
* ...
* ],
* "name": "張漢東",
- * "id": 11,
+ * "id": 11
* }
* ],
(52 行未修改)
|
||
| 2014-04-27 19:14 | r926 | |
顯示 diff(91 行未修改)
|
||
| 2014-04-27 18:44 – 19:14 | r654 – r925 | |
顯示 diff(10 行未修改)
*global search
*/search?q="keyword"
+
+ *seach on type
+ *request: /person/search?q="張"
+ * {
+ * "paging": {
+ * "count": 648,
+ * "l": 2,
+ * "sk": 0
+ * },
+ * "entries": [
+ * {
+ * "memberships": [
+ * ...
+ * ],
+ * "name": "張建榮",
+ * "id": 1
+ * },
+ * {
+ * "death_date": null,
+ * "birth_date": null,
+ * "memberships": [
+ * ...
+ * ],
+ * "name": "張漢東",
+ * "id": 11,
+ * }
+ * ],
+ * "query": "(\"name\" ~* '張')"
+ *}
+ *
+
*scope search
- *type/:type_id/name/:name/search?q="keyword"
+ */:type/:subtype/:subtype_id/name/:name/search?q="keyword"
+
Resource
*one data with id
- */type/:type_id/
+ */:type/:type_id/
+
+ *request: /person/1
+ *{
+ * name:"Foo Bar"
+ * memberships: [
+ * {
+ * id: 1,
+ * role: "議長"
+ * ...
+ * },
+ * {
+ * id: 2,
+ * role: "黨員"
+ * ...
+ * }
+ * ]
+ * ...
+ *}
*Base mapping
(21 行未修改)
|
||
| 2014-04-27 18:36 – 18:39 | r628 – r653 | |
顯示 diff(8 行未修改)
Search
- /:type/search?name="keyword"
*global search
*/search?q="keyword"
*scope search
- */:type/name/:name/search?q="keyword"
+ *type/:type_id/name/:name/search?q="keyword"
- Misc
+ Resource
*one data with id
- */:type/:type_d/
+ */type/:type_id/
*Base mapping
(21 行未修改)
|
||
| 2014-04-27 18:23 – 18:32 | r582 – r627 | |
顯示 diff(12 行未修改)
*/search?q="keyword"
*scope search
- *:type/name/:name/search?q="keyword"
+ */:type/name/:name/search?q="keyword"
+
+ Misc
+ *one data with id
+ */:type/:type_d/
+
*Base mapping
*paging:
(20 行未修改)
|
||
| 2014-04-27 18:16 – 18:18 | r575 – r581 | |
顯示 diff(37 行未修改)
|
||
| 2014-04-27 18:04 – 18:15 | r567 – r574 | |
顯示 diff(12 行未修改)
*/search?q="keyword"
*scope search
- *type/:type/name/:name/search?q="keyword"
+ *:type/name/:name/search?q="keyword"
*Base mapping
*paging:
(20 行未修改)
|
||
| 2014-04-27 17:06 – 18:00 | r427 – r566 | |
顯示 diff(9 行未修改)
Search
/:type/search?name="keyword"
-
+ *global search
+ */search?q="keyword"
+ *scope search
+ *type/:type/name/:name/search?q="keyword"
*Base mapping
*paging:
(20 行未修改)
|
||
| 2014-04-27 16:55 – 16:56 | r386 – r426 | |
顯示 diff(5 行未修改)
*server side
+ :type is organization, person, membership
+
+ Search
/:type/search?name="keyword"
(22 行未修改)
|
||
| 2014-04-21 00:57 – 00:59 | r348 – r385 | |
顯示 diff(3 行未修改)
how to host api.addressbook at local
+
+ *server side
+ /:type/search?name="keyword"
*Base mapping
(21 行未修改)
|
||
| 2014-04-19 16:10 – 16:10 | r306 – r347 | |
顯示 diff(1 行未修改)
Server: http://pgrest.io/hychen/api.addressbook/v0/collections/
server is base on PgREST 投影片
+
+ how to host api.addressbook at local
*Base mapping
(14 行未修改)
*Person
/person/
+ *entries:
+ *popolo.person
*Membership:
(1 行未修改)
|
||
| 2014-04-18 04:37 – 04:46 | r212 – r305 | |
顯示 diff addressbook-api
Server: http://pgrest.io/hychen/api.addressbook/v0/collections/
-
- *contact id
- 不同的 contact 使用不同的 id 的去儲存,和 OID 分開,自行產一組 UUID
+ server is base on PgREST 投影片
- *organization:
- /organzations/
+ *Base mapping
*paging:
*count // 總數
*l // 長度
- *sk //
+ *sk // offset 位置
*entries:
- *資料的 array (popolo.organzation)
+ *資料的 array
*query:
*查詢的條件
+
+ *organization:
+ /organzations/
+ *entries:
+ *popolo.organzation
*Person
(4 行未修改)
|
||
| 2014-04-17 16:24 – 16:24 | r207 – r211 | |
顯示 diff(9 行未修改)
*count // 總數
*l // 長度
- *sk // 頁碼
+ *sk //
*entries:
*資料的 array (popolo.organzation)
(8 行未修改)
|
||
| 2014-04-17 15:03 – 15:03 | r187 – r206 | |
顯示 diff addressbook-api
-
- http://pgrest.io/hychen/api.addressbook/v0/collections/
+ Server: http://pgrest.io/hychen/api.addressbook/v0/collections/
*contact id
(5 行未修改)
*count // 總數
*l // 長度
- *sk
+ *sk // 頁碼
*entries:
*資料的 array (popolo.organzation)
(8 行未修改)
|
||
| 2014-04-17 10:16 – 10:31 | r158 – r186 | |
顯示 diff(13 行未修改)
*entries:
*資料的 array (popolo.organzation)
+ *query:
+ *查詢的條件
*Person
(4 行未修改)
|
||
| 2014-04-17 08:55 – 08:58 | r68 – r157 | |
顯示 diff(7 行未修改)
*organization:
/organzations/
+ *paging:
+ *count // 總數
+ *l // 長度
+ *sk
+ *entries:
+ *資料的 array (popolo.organzation)
*Person
- /person/xxxx
+ /person/
*Membership:
- /membership/xxxx
+ /membership/
|
||
| 2014-04-11 08:46 – 09:05 | r47 – r67 | |
顯示 diff addressbook-api
+
+ http://pgrest.io/hychen/api.addressbook/v0/collections/
*contact id
(1 行未修改)
*organization:
- /org/xxxxx
+ /organzations/
*Person
(4 行未修改)
|
||
| 2014-04-06 16:19 | r46 | |
顯示 diff(8 行未修改)
*Person
/person/xxxx
-
- *Post:
- /post/xxxx
*Membership:
(1 行未修改)
|
||
| 2014-04-05 14:54 – 14:54 | r1 – r45 | |
顯示 diff- Untitled
+ addressbook-api
- This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!
+ *contact id
+ 不同的 contact 使用不同的 id 的去儲存,和 OID 分開,自行產一組 UUID
+
+ *organization:
+ /org/xxxxx
+
+ *Person
+ /person/xxxx
+
+ *Post:
+ /post/xxxx
+
+ *Membership:
+ /membership/xxxx
|
||
| 2014-04-05 14:53 | r0 | |
顯示 diff+ Untitled
+ This pad text is synchronized as you type, so that everyone viewing this page sees the same text. This allows you to collaborate seamlessly on documents!
|
||