Skip to content

Commit

Permalink
Adding new response code to endpoints and extending projection to inc…
Browse files Browse the repository at this point in the history
…lude filter parameter
  • Loading branch information
cpluta committed Oct 31, 2019
1 parent 386da62 commit 0559a80
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 5 deletions.
3 changes: 3 additions & 0 deletions docs/data/creating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,8 @@ Example Result
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to create meshes or specific mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.
3 changes: 3 additions & 0 deletions docs/data/deleting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ Permanently remove Mesh data from collection.
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to delete meshes or mesh.

404 : Not Found
* Mesh data was not found.

Expand Down
15 changes: 13 additions & 2 deletions docs/data/projecting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ API Reference
var client = MeshyClient.Initialize(accountName, publicKey);
var connection = await client.LoginAnonymouslyAsync(username);
var stateAttractions = await connection.Projections.Get<PopularState>(projectionName,
var stateAttractions = await connection.Projections.Get<PopularState>(projectionName,
filter,
orderBy,
page,
pageSize);
Expand All @@ -53,6 +54,8 @@ API Reference
Unique identifier for user or device.
projectionName : :type:`string`, :required:`required`
Identifies name of mesh collection. e.g. person.
filter : :type:`string`
Criteria provided in a MongoDB format to limit results.
orderBy : :type:`object`
Defines which fields need to be ordered and direction. Review more ways to use `ordering <#ordering-data>`_.
page : :type:`integer`, default: 1
Expand All @@ -72,6 +75,7 @@ API Reference
var popularStates = await meshyConnection.projections.get<any>(projectionName,
{
filter: filter,
orderBy: orderBy,
page: page,
pageSize: pageSize
Expand All @@ -87,6 +91,8 @@ API Reference
Unique identifier for user or device.
projectionName : :type:`string`, :required:`required`
Identifies name of mesh collection. e.g. person.
filter : :type:`string`
Criteria provided in a MongoDB format to limit results.
orderBy : :type:`string`
Defines which fields need to be ordered and direction in a MongoDB format. Review more ways to use `ordering <#ordering-data>`_.
page : :type:`integer`, default: 1
Expand All @@ -111,6 +117,8 @@ API Reference
Identifies name of mesh collection. e.g. person.
projectionName : :type:`string`, :required:`required`
Identifies name of mesh collection. e.g. person.
filter : :type:`string`
Criteria provided in a MongoDB format to limit results.
orderBy : :type:`string`
Defines which fields need to be ordered and direction in a MongoDB format. Review more ways to use `ordering <#ordering-data>`_.
page : :type:`integer`, default: 1
Expand Down Expand Up @@ -143,7 +151,10 @@ Example Result

401 : Unauthorized
* User is not authorized to make call.


403 : Forbidden
* User has insufficent permission to read projections.

404 : Not Found
* Projection was not found.

Expand Down
3 changes: 3 additions & 0 deletions docs/data/retrieving.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ Example Result
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to read meshes or mesh.

404 : Not Found
* Mesh data was not found.

Expand Down
5 changes: 4 additions & 1 deletion docs/data/searching.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ Example Result

401 : Unauthorized
* User is not authorized to make call.


403 : Forbidden
* User has insufficent permission to read meshes or mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.
3 changes: 3 additions & 0 deletions docs/data/updating.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,8 @@ Example Result
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to update meshes or mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.
12 changes: 12 additions & 0 deletions docs/intro/getting_started_csharp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ Example Result
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to create meshes or mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.

Expand Down Expand Up @@ -372,6 +375,9 @@ Example Result
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to update meshes or mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.

Expand Down Expand Up @@ -428,6 +434,9 @@ Example Result
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to read meshes or mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.

Expand Down Expand Up @@ -473,6 +482,9 @@ The example below shows deleting the data from the API by providing the object.
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to delete meshes or mesh.

404 : Not Found
* Mesh data was not found.

Expand Down
14 changes: 13 additions & 1 deletion docs/intro/getting_started_nodejs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ Example Result
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to create meshes or mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.

Expand Down Expand Up @@ -353,6 +356,9 @@ Example Result
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to update meshes or mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.

Expand Down Expand Up @@ -410,7 +416,10 @@ Example Result

401 : Unauthorized
* User is not authorized to make call.


403 : Forbidden
* User has insufficent permission to read meshes or mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.

Expand Down Expand Up @@ -456,6 +465,9 @@ The example below shows deleting the data from the API by providing the object.
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to delete meshes or mesh.

404 : Not Found
* Mesh data was not found.

Expand Down
14 changes: 13 additions & 1 deletion docs/intro/getting_started_rest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ Example Result
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to create meshes or mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.

Expand Down Expand Up @@ -388,6 +391,9 @@ Example Result
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to update meshes or mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.

Expand Down Expand Up @@ -455,7 +461,10 @@ Example Result

401 : Unauthorized
* User is not authorized to make call.


403 : Forbidden
* User has insufficent permission to read meshes or mesh.

429 : Too many request
* You have either hit your API or Database limit. Please review your account.

Expand Down Expand Up @@ -504,6 +513,9 @@ The example below shows deleting the data from the API by providing the object.
401 : Unauthorized
* User is not authorized to make call.

403 : Forbidden
* User has insufficent permission to delete meshes or mesh.

404 : Not Found
* Mesh data was not found.

Expand Down

0 comments on commit 0559a80

Please sign in to comment.