Datacenter build and management service
https://github.com/joyent/conch-api/blob/master/lib/Conch/Route.pm
Set up all the routes for the Conch Mojo application.
Set up the full route structure
These are available on all routes. See “Shortcuts” in Mojolicious::Guides::Routing.
Chainable route that aborts with HTTP 403 if the user is not a system admin.
Chainable route that looks up the user by user_id or email in the JSON payload,
aborting with HTTP 410 or HTTP 404 if not found.
Returns the root node.
Unless otherwise specified, all routes require authentication.
Full access is granted to system admin users, regardless of build or other role entries.
Successful (HTTP 2xx code) response structures are as described for each endpoint.
Error responses will use:
GET /pingGET /versionPOST /loginPOST /logout204 No ContentPOST /refresh_tokenGET /me204 No Content* /dc, * /room, * /rack_role, * /rack, * /layoutSee “routes” in Conch::Route::Datacenter
* /deviceSee “routes” in Conch::Route::Device
* /device_reportSee “routes” in Conch::Route::DeviceReport
* /hardware_productSee “routes” in Conch::Route::HardwareProduct
* /hardware_vendorSee “routes” in Conch::Route::HardwareVendor
* /organizationSee “routes” in Conch::Route::Organization
* /relaySee “routes” in Conch::Route::Relay
* /json_schemaSee “unsecured_routes” in Conch::Route::JSONSchema
* /userSee “routes” in Conch::Route::User
* /validation_planSee “routes” in Conch::Route::ValidationPlan
* /validation_stateSee “routes” in Conch::Route::ValidationState
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/.