1.8.17 • Published 4 years ago

ramen-adonis v1.8.17

Weekly downloads
3
License
ISC
Repository
github
Last release
4 years ago

ramen-adonis

ramen-adonis is ramen library for Adonis.JS framework. It offers dynamic query request from query string, dynamic upsert for each model, and also request authentication for each endpoint.

Installation

You can install the package using command

adonis install ramen-adonis

The installer will copy the following files into your project directory.

  • config/ramen.js
  • app/Models/Traits/RamenModel.js

These files should be located inside your project directory after a successfull installation.

How to Use

Detailed instructions for how to integrate the package to your project can be found in instruction.md file which will be automatically opened after a successfull installation.

Features

Request Parsing

Query String Parsing

ramen-adonis will parse any matched command found in the query string available in your endpoint, such as filtering, loading relations, ordering, and also pagination.

  • Filtering

    To filter the query results, you can add your model property inside the query string. In case you have a User model, containing id and 'email', and you want to filter the query by email, add the following to query string ?email=something. Supported operator

    • =
    • '=!='
    • '=<='
    • '=>='
  • Ordering

    To order the result, you can use keyword orderBy and the column which will be sorted by. example ?orderBy=created_at. you can also adding direction keyword, which will determain the direction of the order. Default is asc.

  • Relations

    Relations is used to load relations data related to current object. You can also filter by adding query string to relations, like relations=roles^id=something

1.8.16

4 years ago

1.8.17

4 years ago

1.8.14

4 years ago

1.8.15

4 years ago

1.8.13

4 years ago

1.8.12

4 years ago

1.8.11

4 years ago

1.8.10

4 years ago

1.8.9

4 years ago

1.8.8

4 years ago

1.8.7

4 years ago

1.8.6

4 years ago

1.8.5

4 years ago

1.8.4

4 years ago

1.8.3

4 years ago

1.8.2

4 years ago

1.8.1

4 years ago

1.8.0

4 years ago

1.7.26

4 years ago

1.7.27

4 years ago

1.7.25

4 years ago

1.7.24

4 years ago

1.7.23

4 years ago

1.7.21

4 years ago

1.7.22

4 years ago

1.7.20

4 years ago

1.7.17

4 years ago

1.7.18

4 years ago

1.7.19

4 years ago

1.7.16

4 years ago

1.7.14

4 years ago

1.7.15

4 years ago

1.7.13

4 years ago

1.7.12

4 years ago

1.7.11

4 years ago

1.7.10

4 years ago

1.7.8

4 years ago

1.7.7

4 years ago

1.7.6

4 years ago

1.7.5

4 years ago

1.7.4

4 years ago

1.7.3

4 years ago

1.7.2

4 years ago

1.7.1

4 years ago

1.7.0

4 years ago

1.6.5

4 years ago

1.6.4

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.5.3

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago