This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
endpoints for creating, deleting, fetching json schemas
POST /json_schema/:type/:name GET /json_schema/:id GET /json_schema/:type/:name/:version GET /json_schema/:type/:name/latest DELETE /json_schema/:id and /json_schema/:type/:name/:version (not /latest)
- Loading branch information
1 parent
8ce3c0d
commit 30c6d31
Showing
18 changed files
with
1,355 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Conch::DB::ResultSet::JSONSchema | ||
|
||
## SOURCE | ||
|
||
[https://github.com/joyent/conch-api/blob/master/lib/Conch/DB/ResultSet/JSONSchema.pm](https://github.com/joyent/conch-api/blob/master/lib/Conch/DB/ResultSet/JSONSchema.pm) | ||
|
||
## DESCRIPTION | ||
|
||
Interface to queries involving JSON schemas. | ||
|
||
## METHODS | ||
|
||
### type | ||
|
||
Chainable resultset that restricts the resultset to rows matching the specified `type`. | ||
|
||
### name | ||
|
||
Chainable resultset that restricts the resultset to rows matching the specified `name`. | ||
|
||
### version | ||
|
||
Chainable resultset that restricts the resultset to rows matching the specified `version`. | ||
|
||
### latest | ||
|
||
Chainable resultset that restricts the resultset to the single row with the latest version. | ||
(This won't make any sense when passed a resultset that queries for multiple types and/or | ||
names, so don't do that.) | ||
|
||
Does **NOT** take deactivated status into account. | ||
|
||
### with\_description | ||
|
||
Chainable resultset that adds the `json_schema` `description` to the results. | ||
|
||
### with\_created\_user | ||
|
||
Chainable resultset that adds columns `created_user.name` and `created_user.email` to the results. | ||
|
||
### resource | ||
|
||
Chainable resultset that restricts the resultset to the single row that matches | ||
the indicated resource. (Does **not** fetch the indicated resource content -- you would need a | ||
`->column(...)` for that.) | ||
|
||
## LICENSING | ||
|
||
Copyright Joyent, Inc. | ||
|
||
This Source Code Form is subject to the terms of the Mozilla Public License, | ||
v.2.0. If a copy of the MPL was not distributed with this file, You can obtain | ||
one at [https://www.mozilla.org/en-US/MPL/2.0/](https://www.mozilla.org/en-US/MPL/2.0/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.