Skip to content

Commit 6b4a80a

Browse files
authored
Merge pull request #18 from Open-MBEE/release/4.0.0
Release/4.0.0
2 parents ef639e8 + e3c6028 commit 6b4a80a

23 files changed

+1194
-416
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ localhost-env.json
2929

3030

3131
**/bin
32+
**/_build

CHANGELOG.md

Lines changed: 0 additions & 106 deletions
This file was deleted.

CHANGELOG.rst

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
2+
API changes from MMS 3.x
3+
========================
4+
5+
take out any ``/alfresco/service`` prefix from apis
6+
7+
Login and auth
8+
--------------
9+
10+
WAS:
11+
12+
.. code-block::
13+
14+
POST {"username": "user", "password": "pass"} to /api/login
15+
16+
returns {"data": {"ticket": "ticket"}
17+
18+
add ?alf_ticket=ticket to any subsequent request urls
19+
20+
21+
IS:
22+
23+
.. code-block::
24+
25+
POST {"username": "user", "password": "pass"} to /authentication
26+
27+
returns {"token": "token"}
28+
29+
add Bearer token to Authorization header in subsequent requests
30+
31+
32+
If authenticating some other way, can get token by using
33+
34+
.. code-block::
35+
36+
GET /authentication
37+
38+
39+
Project Creation
40+
----------------
41+
42+
WAS:
43+
44+
.. code-block::
45+
46+
POST {"projects": [{"id": "projectId", "name": "project name", "orgId": "orgId"}]} to /orgs/orgid/projects
47+
48+
49+
IS:
50+
51+
.. code-block::
52+
53+
POST {"projects": [{"id": "projectId", "name": "project name", "orgId": "orgId", "schema": "cameo"}]} to /projects
54+
55+
56+
Get Projects by Org
57+
-------------------
58+
59+
WAS:
60+
61+
.. code-block::
62+
63+
GET /orgs/{orgId}/projects
64+
65+
66+
IS:
67+
68+
.. code-block::
69+
70+
GET /projects?orgId={orgId}
71+
72+
73+
Artifacts
74+
---------
75+
76+
WAS:
77+
78+
Used to have its own set of ``/projects/{projectId}/refs/{refId}/artifacts`` urls
79+
80+
IS:
81+
82+
Artifacts are treated as "attachments" to an element
83+
84+
.. code-block::
85+
86+
FORM POST to /projects/{projectId}/refs/{refId}/elements/{elementId} with file
87+
88+
89+
see `Artifacts <https://github.com/Open-MBEE/mms/tree/develop/artifacts>`_
90+
91+
To get the file back
92+
93+
.. code-block::
94+
95+
GET /projects/{projectId}/refs/{refId}/elements/{elementId}/{extension} or
96+
GET /projects/{projectId}/refs/{refId}/elements/{elementId} with mimetype in Accept header
97+
98+
99+
Search
100+
------
101+
102+
WAS:
103+
104+
Search accepts elasticsearch query
105+
106+
IS:
107+
108+
See OpenAPI (subject to change)
109+
110+
Search will search only elements in specified project and ref
111+
112+
Misc
113+
----
114+
115+
Depth/recurse param in element get
116+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
117+
118+
WAS:
119+
120+
add ``?depth=#`` or ``recurse=true`` to ``GET`` ``/projects/{projectId}/refs/{refId}/elements/{elementId}``
121+
122+
IS:
123+
124+
param removed, use search api's recurse function
125+
126+
.. code-block::
127+
128+
POST /projects/{projectId}/refs/{refId}/search
129+
{
130+
"params" : {
131+
"ownerId" : "x"
132+
},
133+
"recurse" : {
134+
"id" : "ownerId"
135+
}
136+
}
137+
138+
139+
New Apis (see OpenAPI)
140+
^^^^^^^^^^^^^^^^^^^^^^
141+
142+
Permissions
143+
144+
Auth (create local user and change password)
145+
146+
Webhooks (also see `Webhooks <https://github.com/Open-MBEE/mms/tree/develop/webhooks>`_\ )

README.md

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)