Skip to content
Anuja Kumar edited this page Mar 27, 2015 · 5 revisions

Create API with a click and run it on the fly.

You can create an entity by clicking on New Entity option in the second column. id, createdDate and lastModifiedDate are the fields created by the system.

Create Entity

Once the entity gets created, its services are generated and populated in the tree as shown:

Entity Tree

Click on the Create service to add new data of the entity.

Create Entity Data

You can fetch all the data created by running the Get List service of the entity.

Get Entity List

Query Params

Filtering Filtering can be done using query params. After the request URL, attach the following: ?query={"name": "Jake"} e.g. http://localhost:8080/api/550d1a0a70246295670529c9/entities/employee/list?query={"name": "Jake"}

The same can be achieved by clicking on Add Query Param button: Key is query and value is {"name": "Jake"}.

Example of AND condition: http://localhost:8080/api/550d1a0a70246295670529c9/entities/employee/list?query={"employeeid" : "9999" , "name": "Jake"} Added this feature in issue #185.

Refer http://docs.mongodb.org/manual/tutorial/query-documents/ for more details/filtering conditions.

Sorting Add "sort={name:1}" after URL to sort. 1 for ascending and -1 for descending result. Added this feature in issue #184.

Refer http://docs.mongodb.org/manual/reference/method/cursor.sort for more details.

Paginated Result Add "?page=1&limit=3" after URL to sort. Limit is number of reults on a page. Added this feature in issue #183.

Clone this wiki locally