All Projects → ramses-tech → Ramses Example

ramses-tech / Ramses Example

Licence: unlicense
Example of a Pyramid app that uses ramses

Labels

Projects that are alternatives of or similar to Ramses Example

raml-clj-parser
A RAML parser implemented in clojure
Stars: ✭ 21 (+10.53%)
Mutual labels:  raml
raml-sublime-plugin
Syntax highlighter for the RESTful API Modeling Language
Stars: ✭ 49 (+157.89%)
Mutual labels:  raml
raml-javascript-generator
Generate a JavaScript API client from RAML
Stars: ✭ 30 (+57.89%)
Mutual labels:  raml
generaptr
Generaptr is a node package that helps when starting up a project by generating boilerplate code for Express api.
Stars: ✭ 16 (-15.79%)
Mutual labels:  raml
osprey-method-handler
Middleware for validating requests and responses based on a RAML method object
Stars: ✭ 14 (-26.32%)
Mutual labels:  raml
commercetools-api-reference
commercetools API reference documentation
Stars: ✭ 41 (+115.79%)
Mutual labels:  raml
smockin
Dynamic API, S3 & Mail mocking for web, mobile & microservice development.
Stars: ✭ 74 (+289.47%)
Mutual labels:  raml
Docs
轻芒对外服务的文档说明
Stars: ✭ 397 (+1989.47%)
Mutual labels:  raml
raml-java-client-generator
Raml Java Client Generator
Stars: ✭ 32 (+68.42%)
Mutual labels:  raml
node-raml-validate
Strict validation of RAML parameters in JavaScript
Stars: ✭ 18 (-5.26%)
Mutual labels:  raml
raml2obj
RAML to object.
Stars: ✭ 23 (+21.05%)
Mutual labels:  raml
core
This repo contains the core module of the OCF API's.
Stars: ✭ 20 (+5.26%)
Mutual labels:  raml
home
This is the home page for the API specification toolbox.
Stars: ✭ 16 (-15.79%)
Mutual labels:  raml
raml-dotnet-parser-2
No description or website provided.
Stars: ✭ 17 (-10.53%)
Mutual labels:  raml
Raml For Jax Rs
This project is all about two way transformation of JAX-RS-annotated Java code to RAML API description and back.
Stars: ✭ 294 (+1447.37%)
Mutual labels:  raml
api-console-cli
A CLI tools for the API console.
Stars: ✭ 14 (-26.32%)
Mutual labels:  raml
raml-typesystem
(deprecated) Typescript implementation of RAML type system
Stars: ✭ 15 (-21.05%)
Mutual labels:  raml
Osprey
Generate Node.JS API middleware from a RAML definition
Stars: ✭ 429 (+2157.89%)
Mutual labels:  raml
Raml Spec
RAML Specification
Stars: ✭ 3,759 (+19684.21%)
Mutual labels:  raml
ramlev
Validate/Verify examples in RAML
Stars: ✭ 30 (+57.89%)
Mutual labels:  raml

ramses-example

Example of a Pyramid app using ramses - example.raml: RAML specs - schemas/*.json: schemas and property definitions

Installation

$ pip install -r requirements.txt
$ cp local.ini.template local.ini
$ nano local.ini

The setting nefertari.engine can be set to either nefertari_mongodb or nefertari_sqla

Run

$ pserve local.ini

Login

POST <host>/api/auth/login

{
    "login": "<config.system.user>",
    "password": "<config.system.password>"
}

or in the browser:

<host>/api/auth/login?_m=POST&login=<config.system.user>&password=<config.system.password>

Add mock data

$ mkdir mock
$ curl -o mock/Users.json https://raw.githubusercontent.com/ramses-tech/nefertari-example/master/mock/Users.json
$ curl -o mock/Profiles.json https://raw.githubusercontent.com/ramses-tech/nefertari-example/master/mock/Profiles.json
$ curl -o mock/Stories.json https://raw.githubusercontent.com/ramses-tech/nefertari-example/master/mock/Stories.json
$ nefertari.post2api -f ./mock/Users.json -u http://localhost:6543/api/users
$ nefertari.post2api -f ./mock/Profiles.json -u http://localhost:6543/api/users/{username}/profile
$ nefertari.post2api -f ./mock/Stories.json -u http://localhost:6543/api/stories

NOTE: set auth = false in local.ini file before executing

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].