Welcome to resto v8.0.9
+Welcome to resto v8.0.10
@@ -3940,7 +3945,7 @@Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.
Parameters
Parameters
Response Schema
Response Schema
+UsersAPI::getMyProfile
+ +++Code samples
+
# You can also use wget
+curl -X GET http://127.0.0.1:5252/user \
+ -H 'Accept: application/json' \
+ -H 'Authorization: Bearer {access-token}'
+
+
+GET /user
Get my profile
+++Example responses
+
++200 Response
+
{
+ "id": "1356771884787565573",
+ "picture": "https://robohash.org/d0e907f8b6f4ee74cd4c38a515e2a4de?gravatar=hashed&bgset=any&size=400x400",
+ "groups": [
+ "1"
+ ],
+ "name": "jrom",
+ "followers": 185,
+ "followings": 144,
+ "firstname": "Jérôme",
+ "lastname": "Gasperi",
+ "bio": "Working on new features for the next major release of SnapPlanet",
+ "registrationdate": "2016-10-08T22:50:34.187217Z",
+ "topics": "earth,fires,geology,glaciology,volcanism",
+ "followed": false,
+ "followme": false
+}
+
+Responses
+Status | +Meaning | +Description | +Schema | +
---|---|---|---|
200 | +OK | +User profile | +UserDisplayProfile | +
401 | +Unauthorized | +Unauthorized | +UnauthorizedError | +
UsersAPI::getUserProfile
@@ -7506,7 +7577,7 @@Response Schema
string false none -Owner of the feature i.e. user that created it +Owner of the feature (i.e. resto user identifier as bigint) »»» status @@ -7627,13 +7698,13 @@STACCatalog::updateCatalog
Code samples
-
# You can also use wget -curl -X PUT http://127.0.0.1:5252/catalogs/{catalogId} \ +curl -X PUT http://127.0.0.1:5252/catalogs/catalogs/{catalogId} \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {access-token}'
+
PUT /catalogs/{catalogId}
PUT /catalogs/catalogs/{catalogId}
Update catalog
Update catalog as a facet entry
@@ -7786,12 +7857,12 @@STACCatalog::removeCatalog
Code samples
-
# You can also use wget -curl -X DELETE http://127.0.0.1:5252/catalogs/{catalogId} \ +curl -X DELETE http://127.0.0.1:5252/catalogs/catalogs/{catalogId} \ -H 'Accept: application/json' \ -H 'Authorization: Bearer {access-token}'
+
DELETE /catalogs/{catalogId}
DELETE /catalogs/catalogs/{catalogId}
Delete catalog
Delete catalog as a facet entry - update feature keywords accordingly
Parameters
@@ -8512,10 +8583,10 @@Response Schema
@@ -11039,7 +11110,7 @@ »» owner -string +integer true none -Owner of the group (i.e. user unique identifier) +Owner of the group (i.e. resto user identifier as bigint) Properties
string false none -Owner of the feature i.e. user that created it +Owner of the feature (i.e. resto user identifier as bigint) » status @@ -12113,10 +12184,10 @@Properties
diff --git a/docs/api/resto-api.json b/docs/api/resto-api.json index 05bca4f4..cfc21b6b 100644 --- a/docs/api/resto-api.json +++ b/docs/api/resto-api.json @@ -6,7 +6,7 @@ "contact": { "email": "jerome.gasperi@gmail.com" }, - "version": "8.0.9" + "version": "8.0.10" }, "servers": [ { @@ -466,7 +466,7 @@ { "name": "owner", "in": "query", - "description": "Limit search to owner's features", + "description": "Limit search to owner's features (i.e. resto user identifier as bigint)", "required": false, "style": "form", "schema": { @@ -708,7 +708,7 @@ } } }, - "/catalogs/{catalogId}": { + "/catalogs/catalogs/{catalogId}": { "put": { "tags": [ "STAC" @@ -2015,7 +2015,7 @@ { "name": "owner", "in": "query", - "description": "Limit search to owner's features", + "description": "Limit search to owner's features (i.e. resto user identifier as bigint)", "required": false, "style": "form", "schema": { @@ -4101,6 +4101,44 @@ } } }, + "/user": { + "get": { + "tags": [ + "User" + ], + "summary": "Get my profile", + "operationId": "UsersAPI::getMyProfile", + "responses": { + "200": { + "description": "User profile", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserDisplayProfile" + } + } + } + }, + "401": { + "description": "Unauthorized", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedError" + } + } + } + } + }, + "security": [ + { + "basicAuth": [], + "bearerAuth": [], + "queryAuth": [] + } + ] + } + }, "/users/{userid}": { "get": { "tags": [ @@ -5234,7 +5272,7 @@ "type": "integer" }, "owner": { - "description": "Owner of the feature i.e. user that created it", + "description": "Owner of the feature (i.e. resto user identifier as bigint)", "type": "string" }, "status": { @@ -6065,8 +6103,8 @@ "type": "string" }, "owner": { - "description": "Owner of the group (i.e. user unique identifier)", - "type": "string" + "description": "Owner of the group (i.e. resto user identifier as bigint)", + "type": "integer" } }, "type": "object", owner -string +integer true none -Owner of the group (i.e. user unique identifier) +Owner of the group (i.e. resto user identifier as bigint)