repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
Naturaily/review
app/serializers/api/v1/trade_serializer.rb
807
class Api::V1::TradeSerializer < ActiveModel::Serializer root false def attributes { name: object.name, owner: project_owner, type: object.trade_details, url: review_url, expiration_date: object.deadline, unreviewed_commits: commits_as_json, } end private def project_owner object.project_owner.try(:name) end def review_url "#{ENV['REVIEW_DOMAIN']}#/projects/#{object.id}" end def commits_as_json { by_user: commits_by_user, by_state: commits_by_state, } end def commits_by_state { pending: object.commits.pending.count, auto_rejected: object.commits.auto_rejected.count, } end def commits_by_user object.commits.unreviewed.joins(:author).group('people.email').count end end
mit
rekyyang/ArtificalLiverCloud
echarts-for-react/webpack.config.js
608
var webpack = require('webpack'); var uglifyJsPlugin = webpack.optimize.UglifyJsPlugin; module.exports = { entry: './demo/demo.jsx', output: { path: './demo/dist/', filename: 'bundle.js' }, module: { loaders:[{ test: /\.js[x]?$/, exclude: /node_modules/, loader: 'babel-loader?presets[]=es2015&presets[]=react', }, { test: /\.css$/, loader: 'style-loader!css-loader' }, { test: /\.(png|jpg)$/, loader: 'url-loader?limit=512' }] }, plugins: [ new uglifyJsPlugin({compress: {warnings: false}}) ] };
mit
AutorestCI/azure-sdk-for-python
azure-cognitiveservices-search-entitysearch/azure/cognitiveservices/search/entitysearch/models/query_context.py
3555
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from msrest.serialization import Model class QueryContext(Model): """Defines the query context that Bing used for the request. Variables are only populated by the server, and will be ignored when sending a request. :param original_query: The query string as specified in the request. :type original_query: str :ivar altered_query: The query string used by Bing to perform the query. Bing uses the altered query string if the original query string contained spelling mistakes. For example, if the query string is "saling downwind", the altered query string will be "sailing downwind". This field is included only if the original query string contains a spelling mistake. :vartype altered_query: str :ivar alteration_override_query: The query string to use to force Bing to use the original string. For example, if the query string is "saling downwind", the override query string will be "+saling downwind". Remember to encode the query string which results in "%2Bsaling+downwind". This field is included only if the original query string contains a spelling mistake. :vartype alteration_override_query: str :ivar adult_intent: A Boolean value that indicates whether the specified query has adult intent. The value is true if the query has adult intent; otherwise, false. :vartype adult_intent: bool :ivar ask_user_for_location: A Boolean value that indicates whether Bing requires the user's location to provide accurate results. If you specified the user's location by using the X-MSEdge-ClientIP and X-Search-Location headers, you can ignore this field. For location aware queries, such as "today's weather" or "restaurants near me" that need the user's location to provide accurate results, this field is set to true. For location aware queries that include the location (for example, "Seattle weather"), this field is set to false. This field is also set to false for queries that are not location aware, such as "best sellers". :vartype ask_user_for_location: bool """ _validation = { 'original_query': {'required': True}, 'altered_query': {'readonly': True}, 'alteration_override_query': {'readonly': True}, 'adult_intent': {'readonly': True}, 'ask_user_for_location': {'readonly': True}, } _attribute_map = { 'original_query': {'key': 'originalQuery', 'type': 'str'}, 'altered_query': {'key': 'alteredQuery', 'type': 'str'}, 'alteration_override_query': {'key': 'alterationOverrideQuery', 'type': 'str'}, 'adult_intent': {'key': 'adultIntent', 'type': 'bool'}, 'ask_user_for_location': {'key': 'askUserForLocation', 'type': 'bool'}, } def __init__(self, original_query): super(QueryContext, self).__init__() self.original_query = original_query self.altered_query = None self.alteration_override_query = None self.adult_intent = None self.ask_user_for_location = None
mit
bburnichon/PHPExiftool
lib/PHPExiftool/Driver/Tag/Canon/MeasuredRGGB.php
867
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\Canon; use JMS\Serializer\Annotation\ExclusionPolicy; use PHPExiftool\Driver\AbstractTag; /** * @ExclusionPolicy("all") */ class MeasuredRGGB extends AbstractTag { protected $Id = 1; protected $Name = 'MeasuredRGGB'; protected $FullName = 'Canon::MeasuredColor'; protected $GroupName = 'Canon'; protected $g0 = 'MakerNotes'; protected $g1 = 'Canon'; protected $g2 = 'Camera'; protected $Type = 'int16u'; protected $Writable = true; protected $Description = 'Measured RGGB'; protected $flag_Permanent = true; protected $MaxLength = 4; }
mit
hollyschinsky/ionic
js/utils/dom.js
8606
(function(window, document, ionic) { var readyCallbacks = []; var isDomReady = false; function domReady() { isDomReady = true; for(var x=0; x<readyCallbacks.length; x++) { ionic.requestAnimationFrame(readyCallbacks[x]); } readyCallbacks = []; document.removeEventListener('DOMContentLoaded', domReady); } document.addEventListener('DOMContentLoaded', domReady); // From the man himself, Mr. Paul Irish. // The requestAnimationFrame polyfill // Put it on window just to preserve its context // without having to use .call window._rAF = (function(){ return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function( callback ){ window.setTimeout(callback, 16); }; })(); var cancelAnimationFrame = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelRequestAnimationFrame; /** * @ngdoc utility * @name ionic.DomUtil * @module ionic */ ionic.DomUtil = { //Call with proper context /** * @ngdoc method * @name ionic.DomUtil#requestAnimationFrame * @alias ionic.requestAnimationFrame * @description Calls [requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/window.requestAnimationFrame), or a polyfill if not available. * @param {function} callback The function to call when the next frame * happens. */ requestAnimationFrame: function(cb) { return window._rAF(cb); }, cancelAnimationFrame: function(requestId) { cancelAnimationFrame(requestId); }, /** * @ngdoc method * @name ionic.DomUtil#animationFrameThrottle * @alias ionic.animationFrameThrottle * @description * When given a callback, if that callback is called 100 times between * animation frames, adding Throttle will make it only run the last of * the 100 calls. * * @param {function} callback a function which will be throttled to * requestAnimationFrame * @returns {function} A function which will then call the passed in callback. * The passed in callback will receive the context the returned function is * called with. */ animationFrameThrottle: function(cb) { var args, isQueued, context; return function() { args = arguments; context = this; if (!isQueued) { isQueued = true; ionic.requestAnimationFrame(function() { cb.apply(context, args); isQueued = false; }); } }; }, /** * @ngdoc method * @name ionic.DomUtil#getPositionInParent * @description * Find an element's scroll offset within its container. * @param {DOMElement} element The element to find the offset of. * @returns {object} A position object with the following properties: * - `{number}` `left` The left offset of the element. * - `{number}` `top` The top offset of the element. */ getPositionInParent: function(el) { return { left: el.offsetLeft, top: el.offsetTop }; }, /** * @ngdoc method * @name ionic.DomUtil#ready * @description * Call a function when the DOM is ready, or if it is already ready * call the function immediately. * @param {function} callback The function to be called. */ ready: function(cb) { if(isDomReady || document.readyState === "complete") { ionic.requestAnimationFrame(cb); } else { readyCallbacks.push(cb); } }, /** * @ngdoc method * @name ionic.DomUtil#getTextBounds * @description * Get a rect representing the bounds of the given textNode. * @param {DOMElement} textNode The textNode to find the bounds of. * @returns {object} An object representing the bounds of the node. Properties: * - `{number}` `left` The left positton of the textNode. * - `{number}` `right` The right positton of the textNode. * - `{number}` `top` The top positton of the textNode. * - `{number}` `bottom` The bottom position of the textNode. * - `{number}` `width` The width of the textNode. * - `{number}` `height` The height of the textNode. */ getTextBounds: function(textNode) { if(document.createRange) { var range = document.createRange(); range.selectNodeContents(textNode); if(range.getBoundingClientRect) { var rect = range.getBoundingClientRect(); if(rect) { var sx = window.scrollX; var sy = window.scrollY; return { top: rect.top + sy, left: rect.left + sx, right: rect.left + sx + rect.width, bottom: rect.top + sy + rect.height, width: rect.width, height: rect.height }; } } } return null; }, /** * @ngdoc method * @name ionic.DomUtil#getChildIndex * @description * Get the first index of a child node within the given element of the * specified type. * @param {DOMElement} element The element to find the index of. * @param {string} type The nodeName to match children of element against. * @returns {number} The index, or -1, of a child with nodeName matching type. */ getChildIndex: function(element, type) { if(type) { var ch = element.parentNode.children; var c; for(var i = 0, k = 0, j = ch.length; i < j; i++) { c = ch[i]; if(c.nodeName && c.nodeName.toLowerCase() == type) { if(c == element) { return k; } k++; } } } return Array.prototype.slice.call(element.parentNode.children).indexOf(element); }, /** * @private */ swapNodes: function(src, dest) { dest.parentNode.insertBefore(src, dest); }, /** * @private */ centerElementByMargin: function(el) { el.style.marginLeft = (-el.offsetWidth) / 2 + 'px'; el.style.marginTop = (-el.offsetHeight) / 2 + 'px'; }, //Center twice, after raf, to fix a bug with ios and showing elements //that have just been attached to the DOM. centerElementByMarginTwice: function(el) { ionic.requestAnimationFrame(function() { ionic.DomUtil.centerElementByMargin(el); setTimeout(function() { ionic.DomUtil.centerElementByMargin(el); setTimeout(function() { ionic.DomUtil.centerElementByMargin(el); }); }); }); }, /** * @ngdoc method * @name ionic.DomUtil#getParentWithClass * @param {DOMElement} element * @param {string} className * @returns {DOMElement} The closest parent of element matching the * className, or null. */ getParentWithClass: function(e, className, depth) { depth = depth || 10; while(e.parentNode && depth--) { if(e.parentNode.classList && e.parentNode.classList.contains(className)) { return e.parentNode; } e = e.parentNode; } return null; }, /** * @ngdoc method * @name ionic.DomUtil#getParentOrSelfWithClass * @param {DOMElement} element * @param {string} className * @returns {DOMElement} The closest parent or self matching the * className, or null. */ getParentOrSelfWithClass: function(e, className, depth) { depth = depth || 10; while(e && depth--) { if(e.classList && e.classList.contains(className)) { return e; } e = e.parentNode; } return null; }, /** * @ngdoc method * @name ionic.DomUtil#rectContains * @param {number} x * @param {number} y * @param {number} x1 * @param {number} y1 * @param {number} x2 * @param {number} y2 * @returns {boolean} Whether {x,y} fits within the rectangle defined by * {x1,y1,x2,y2}. */ rectContains: function(x, y, x1, y1, x2, y2) { if(x < x1 || x > x2) return false; if(y < y1 || y > y2) return false; return true; } }; //Shortcuts ionic.requestAnimationFrame = ionic.DomUtil.requestAnimationFrame; ionic.cancelAnimationFrame = ionic.DomUtil.cancelAnimationFrame; ionic.animationFrameThrottle = ionic.DomUtil.animationFrameThrottle; })(window, document, ionic);
mit
Timvdv/riot-api-challenge
src/index.js
152
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('react-root'));
mit
hardfist/CS61b
proj2/src/GitletPublicTest.java
7500
import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.io.PrintStream; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Paths; import org.junit.Before; import org.junit.Test; /** * Class that provides JUnit tests for Gitlet, as well as a couple of utility * methods. * * @author Joseph Moghadam * * Some code adapted from StackOverflow: * * http://stackoverflow.com/questions * /779519/delete-files-recursively-in-java * * http://stackoverflow.com/questions/326390/how-to-create-a-java-string * -from-the-contents-of-a-file * * http://stackoverflow.com/questions/1119385/junit-test-for-system-out- * println * */ public class GitletPublicTest { private static final String GITLET_DIR = ".gitlet/"; private static final String TESTING_DIR = "test_files/"; /* matches either unix/mac or windows line separators */ private static final String LINE_SEPARATOR = "\r\n|[\r\n]"; /** * Deletes existing gitlet system, resets the folder that stores files used * in testing. * * This method runs before every @Test method. This is important to enforce * that all tests are independent and do not interact with one another. */ @Before public void setUp() { File f = new File(GITLET_DIR); if (f.exists()) { recursiveDelete(f); } f = new File(TESTING_DIR); if (f.exists()) { recursiveDelete(f); } f.mkdirs(); } /** * Tests that init creates a .gitlet directory. Does NOT test that init * creates an initial commit, which is the other functionality of init. */ @Test public void testBasicInitialize() { gitlet("init"); File f = new File(GITLET_DIR); assertTrue(f.exists()); } /** * Tests that checking out a file name will restore the version of the file * from the previous commit. Involves init, add, commit, and checkout. */ @Test public void testBasicCheckout() { String wugFileName = TESTING_DIR + "wug.txt"; String wugText = "This is a wug."; createFile(wugFileName, wugText); gitlet("init"); gitlet("add", wugFileName); gitlet("commit", "added wug"); writeFile(wugFileName, "This is not a wug."); gitlet("checkout", wugFileName); assertEquals(wugText, getText(wugFileName)); } /** * Tests that log prints out commit messages in the right order. Involves * init, add, commit, and log. */ @Test public void testBasicLog() { gitlet("init"); String commitMessage1 = "initial commit"; String wugFileName = TESTING_DIR + "wug.txt"; String wugText = "This is a wug."; createFile(wugFileName, wugText); gitlet("add", wugFileName); String commitMessage2 = "added wug"; gitlet("commit", commitMessage2); String logContent = gitlet("log"); assertArrayEquals(new String[] { commitMessage2, commitMessage1 }, extractCommitMessages(logContent)); } /** * Convenience method for calling Gitlet's main. Anything that is printed * out during this call to main will NOT actually be printed out, but will * instead be returned as a string from this method. * * Prepares a 'yes' answer on System.in so as to automatically pass through * dangerous commands. * * The '...' syntax allows you to pass in an arbitrary number of String * arguments, which are packaged into a String[]. */ private static String gitlet(String... args) { PrintStream originalOut = System.out; InputStream originalIn = System.in; ByteArrayOutputStream printingResults = new ByteArrayOutputStream(); try { /* * Below we change System.out, so that when you call * System.out.println(), it won't print to the screen, but will * instead be added to the printingResults object. */ System.setOut(new PrintStream(printingResults)); /* * Prepares the answer "yes" on System.In, to pretend as if a user * will type "yes". You won't be able to take user input during this * time. */ String answer = "yes"; InputStream is = new ByteArrayInputStream(answer.getBytes()); System.setIn(is); /* Calls the main method using the input arguments. */ Gitlet.main(args); } finally { /* * Restores System.out and System.in (So you can print normally and * take user input normally again). */ System.setOut(originalOut); System.setIn(originalIn); } return printingResults.toString(); } /** * Returns the text from a standard text file (won't work with special * characters). */ private static String getText(String fileName) { try { byte[] encoded = Files.readAllBytes(Paths.get(fileName)); return new String(encoded, StandardCharsets.UTF_8); } catch (IOException e) { return ""; } } /** * Creates a new file with the given fileName and gives it the text * fileText. */ private static void createFile(String fileName, String fileText) { File f = new File(fileName); if (!f.exists()) { try { f.createNewFile(); } catch (IOException e) { e.printStackTrace(); } } writeFile(fileName, fileText); } /** * Replaces all text in the existing file with the given text. */ private static void writeFile(String fileName, String fileText) { FileWriter fw = null; try { File f = new File(fileName); fw = new FileWriter(f, false); fw.write(fileText); } catch (IOException e) { e.printStackTrace(); } finally { try { fw.close(); } catch (IOException e) { e.printStackTrace(); } } } /** * Deletes the file and all files inside it, if it is a directory. */ private static void recursiveDelete(File d) { if (d.isDirectory()) { for (File f : d.listFiles()) { recursiveDelete(f); } } d.delete(); } /** * Returns an array of commit messages associated with what log has printed * out. */ private static String[] extractCommitMessages(String logOutput) { String[] logChunks = logOutput.split("===="); int numMessages = logChunks.length - 1; String[] messages = new String[numMessages]; for (int i = 0; i < numMessages; i++) { System.out.println(logChunks[i + 1]); String[] logLines = logChunks[i + 1].split(LINE_SEPARATOR); messages[i] = logLines[3]; } return messages; } }
mit
shprink/ionic-cross-platform-boilerplate
lib/typings/globals/cordova/index.d.ts
4062
// Generated by typings // Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/844831b968857a9dc2f44e0698ff282863c5c238/cordova/cordova.d.ts interface Cordova { /** Invokes native functionality by specifying corresponding service name, action and optional parameters. * @param success A success callback function. * @param fail An error callback function. * @param service The service name to call on the native side (corresponds to a native class). * @param action The action name to call on the native side (generally corresponds to the native class method). * @param args An array of arguments to pass into the native environment. */ exec(success: () => any, fail: () => any, service: string, action: string, args?: any[]): void; /** Gets the operating system name. */ platformId: string; /** Gets Cordova framework version */ version: string; /** Defines custom logic as a Cordova module. Other modules can later access it using module name provided. */ define(moduleName: string, factory: (require: any, exports: any, module: any) => any): void; /** Access a Cordova module by name. */ require(moduleName: string): any; /** Namespace for Cordova plugin functionality */ plugins:CordovaPlugins; } interface CordovaPlugins {} interface Document { addEventListener(type: "deviceready", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "resume", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "backbutton", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "menubutton", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "searchbutton", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "startcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "endcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "volumedownbutton", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: "volumeupbutton", listener: (ev: Event) => any, useCapture?: boolean): void; removeEventListener(type: "deviceready", listener: (ev: Event) => any, useCapture?: boolean): void; removeEventListener(type: "pause", listener: (ev: Event) => any, useCapture?: boolean): void; removeEventListener(type: "resume", listener: (ev: Event) => any, useCapture?: boolean): void; removeEventListener(type: "backbutton", listener: (ev: Event) => any, useCapture?: boolean): void; removeEventListener(type: "menubutton", listener: (ev: Event) => any, useCapture?: boolean): void; removeEventListener(type: "searchbutton", listener: (ev: Event) => any, useCapture?: boolean): void; removeEventListener(type: "startcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void; removeEventListener(type: "endcallbutton", listener: (ev: Event) => any, useCapture?: boolean): void; removeEventListener(type: "volumedownbutton", listener: (ev: Event) => any, useCapture?: boolean): void; removeEventListener(type: "volumeupbutton", listener: (ev: Event) => any, useCapture?: boolean): void; addEventListener(type: string, listener: (ev: Event) => any, useCapture?: boolean): void; removeEventListener(type: string, listener: (ev: Event) => any, useCapture?: boolean): void; } interface Window { cordova:Cordova; } // cordova/argscheck module interface ArgsCheck { checkArgs(argsSpec: string, functionName: string, args: any[], callee?: any): void; getValue(value?: any, defaultValue?: any): any; enableChecks: boolean; } // cordova/urlutil module interface UrlUtil { makeAbsolute(url: string): string } /** Apache Cordova instance */ declare var cordova: Cordova; declare module 'cordova' { export = cordova; }
mit
MongkonEiadon/mtapi
MtApi/MtOrder.cs
1229
using System; namespace MtApi { public class MtOrder { public int Ticket { get; set; } public string Symbol { get; set; } public TradeOperation Operation { get; set; } public double OpenPrice { get; set; } public double ClosePrice { get; set; } public double Lots { get; set; } public int MtOpenTime { get; set; } public int MtCloseTime { get; set; } public double Profit { get; set; } public string Comment { get; set; } public double Commission { get; set; } public int MagicNumber { get; set; } public double Swap { get; set; } public int MtExpiration { get; set; } public double TakeProfit { get; set; } public double StopLoss { get; set; } public DateTime OpenTime { get { return MtApiTimeConverter.ConvertFromMtTime(MtOpenTime); } } public DateTime CloseTime { get { return MtApiTimeConverter.ConvertFromMtTime(MtCloseTime); } } public DateTime Expiration { get { return MtApiTimeConverter.ConvertFromMtTime(MtExpiration); } } } }
mit
unplannedcompany/tryup.org
src/repeat.js
153
// Returns a new string consisting of `count` copies of `text`. export default function repeat(text, count) { return new Array(count + 1).join(text) }
mit
georghinkel/ttc2017smartGrids
solutions/NMF/Schema/IEC61970/LoadModel/SubLoadAreaLoadGroupsCollection.cs
2118
//------------------------------------------------------------------------------ // <auto-generated> // Dieser Code wurde von einem Tool generiert. // Laufzeitversion:4.0.30319.42000 // // Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn // der Code erneut generiert wird. // </auto-generated> //------------------------------------------------------------------------------ using NMF.Collections.Generic; using NMF.Collections.ObjectModel; using NMF.Expressions; using NMF.Expressions.Linq; using NMF.Models; using NMF.Models.Collections; using NMF.Models.Expressions; using NMF.Models.Meta; using NMF.Models.Repository; using NMF.Serialization; using NMF.Utilities; using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Diagnostics; using System.Linq; using TTC2017.SmartGrids.CIM; using TTC2017.SmartGrids.CIM.IEC61970.ControlArea; using TTC2017.SmartGrids.CIM.IEC61970.Core; using TTC2017.SmartGrids.CIM.IEC61970.Informative.MarketOperations; using TTC2017.SmartGrids.CIM.IEC61970.Wires; namespace TTC2017.SmartGrids.CIM.IEC61970.LoadModel { public class SubLoadAreaLoadGroupsCollection : ObservableOppositeOrderedSet<ISubLoadArea, ILoadGroup> { public SubLoadAreaLoadGroupsCollection(ISubLoadArea parent) : base(parent) { } private void OnItemDeleted(object sender, System.EventArgs e) { this.Remove(((ILoadGroup)(sender))); } protected override void SetOpposite(ILoadGroup item, ISubLoadArea parent) { if ((parent != null)) { item.Deleted += this.OnItemDeleted; item.SubLoadArea = parent; } else { item.Deleted -= this.OnItemDeleted; if ((item.SubLoadArea == this.Parent)) { item.SubLoadArea = parent; } } } } }
mit
renotoaster/flame.js
view.js
5615
//= require_tree ./mixins //= require ./layout_manager //= require_self //= require_tree ./views Ember.View.reopen({ // Finds the first descendant view for which given property evaluates to true. Proceeds depth-first. firstDescendantWithProperty: function(property) { var result; this.forEachChildView(function(childView) { if (!(childView instanceof Ember.View)) return; if (result === undefined) { if (childView.get(property)) { result = childView; } else { result = childView.firstDescendantWithProperty(property); } } }); return result; } }); Flame.reopen({ ALIGN_LEFT: 'align-left', ALIGN_RIGHT: 'align-right', ALIGN_CENTER: 'align-center', FOCUS_RING_MARGIN: 3 }); /** Base class for Flame views. Can be used to hold child views or render a template. In Ember, you normally either use Ember.View for rendering a template or Ember.ContainerView to render child views. But we want to support both here, so that we can use e.g. Flame.ListItemView for items in list views, and the app can decide whether to use a template or not. */ Flame.View = Ember.ContainerView.extend(Flame.ViewSupport, Flame.LayoutSupport, Flame.EventManager, { isFocused: false, // Does this view currently have key focus? init: function() { // Adds support for conditionally rendering child views, e.g.: // childViews: ['labelView', 'hasButton:buttonView'] // will only render the buttonView if this.get('hasButton') is true. var childViews = this.get('childViews'); if (!childViews) { this._super(); return; } var length = childViews.length; var removedCount = 0; var childViewsToCreate; for (var i = 0; i < length; i++) { var childView = childViews[i]; if (childView.indexOf(':') > -1) { childViewsToCreate = childViewsToCreate || childViews.slice(0); var split = childView.split(':'); if (this.get(split[0])) { childViewsToCreate[i - removedCount] = split[1]; } else { childViewsToCreate.splice(i - removedCount, 1); removedCount++; } } } if (childViewsToCreate) this.set('childViews', childViewsToCreate); this._super(); }, render: function(buffer) { // If a template is defined, render that, otherwise use ContainerView's rendering (render childViews) var get = Ember.get; var template = this.get('template'); if (template) { // TODO should just call Ember.View.prototype.render.call(this, buffer) here (for that we need to rename `layout` to something else first) var context = get(this, 'context'); var keywords = this.cloneKeywords(); var output; var data = { view: this, buffer: buffer, isRenderData: true, keywords: keywords, insideGroup: get(this, 'templateData.insideGroup') }; // Invoke the template with the provided template context, which // is the view's controller by default. A hash of data is also passed that provides // the template with access to the view and render buffer. Ember.assert('template must be a function. Did you mean to call Ember.Handlebars.compile("...") or specify templateName instead?', typeof template === 'function'); // The template should write directly to the render buffer instead // of returning a string. output = template(context, { data: data }); // If the template returned a string instead of writing to the buffer, // push the string onto the buffer. if (output !== undefined) { buffer.push(output); } } else { this._super(buffer); } }, // For Ember 1.0, removeChild on ContainerViews expects there not to be any SimpleHandlebarsView children // Flame.View extends ContainerView, but it allows templates, so there will be SimpleHandlebarsViews children. // This is the Ember.View implementation of removeChild for when there is a template. removeChild: function(view) { if (this.get('template')) { // there is a template - use Ember.View's `removeChild` return Ember.View.prototype.removeChild.call(this, view); } else { // no template - use Ember.ContainerView's `removeChild` return this._super(view); } }, template: function() { var handlebarsStr = this.get('handlebars'); if (handlebarsStr) return this._compileTemplate(handlebarsStr); var templateName = this.get('templateName'), template = this.templateForName(templateName, 'template'); return template || null; }.property('templateName', 'handlebars'), // Compiles given handlebars template, with caching to make it perform better. (Called repetitively e.g. // when rendering a list view whose item views use a template.) _compileTemplate: function(template) { var compiled = Flame._templateCache[template]; if (!compiled) { Flame._templateCache[template] = compiled = Ember.Handlebars.compile(template); } return compiled; } }); Flame._templateCache = {};
mit
banzsolt/wot-api
lib/wargaming_api.rb
2987
require 'wargaming_api/version' Dir[File.dirname(__FILE__) + '/wargaming_api/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks/accounts/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks/strongholds/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks/global_map/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks/tankopedia/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks/player_ratings/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks/clan_ratings/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks/players_vehicles/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks/permanent_teams/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/wargaming_net/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/wargaming_net/accounts/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/wargaming_net/wg_league/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/wargaming_net/clans/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/wargaming_net/servers/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks_blitz/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks_blitz/accounts/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks_blitz/tankopedia/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks_blitz/clans/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_tanks_blitz/players_vehicles/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_warplanes/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_warplanes/account/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_warplanes/encyclopedia/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_warplanes/player_ratings/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_warships/account/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_warships/encyclopedia/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_warships/season/*.rb'].each { |f| require f } Dir[File.dirname(__FILE__) + '/wargaming_api/world_of_warships/warship/*.rb'].each { |f| require f } module WargamingApi WARGAMING_API_VERSION = '04/05/2016' APP_TOKEN = '1f757d5d0fdf395244e3ac3e3c44b461' puts 'WargamingApi loaded.' end
mit
StorytellerCZ/Socialize-admin
client/modules/core/intl/en.js
46
export default { dashboard: 'Dashboard', };
mit
TheFehr/Orsum-consilii-scholai
platforms/windows/www/plugins/cordova-plugin-contacts/www/ContactFindOptions.js
1651
cordova.define("cordova-plugin-contacts.ContactFindOptions", function(require, exports, module) { /* * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. * */ /** * ContactFindOptions. * @constructor * @param filter used to match contacts against * @param multiple boolean used to determine if more than one contact should be returned * @param desiredFields * @param hasPhoneNumber boolean used to filter the search and only return contacts that have a phone number informed */ var ContactFindOptions = function(filter, multiple, desiredFields, hasPhoneNumber) { this.filter = filter || ''; this.multiple = (typeof multiple != 'undefined' ? multiple : false); this.desiredFields = typeof desiredFields != 'undefined' ? desiredFields : []; this.hasPhoneNumber = typeof hasPhoneNumber != 'undefined' ? hasPhoneNumber : false; }; module.exports = ContactFindOptions; });
mit
mazulo/taskbuster_project
taskbuster/settings/production.py
101
from .base import * # SECURITY WARNING: don't run with debug turned on in production! DEBUG = False
mit
umbraco/Umbraco-CMS
src/Umbraco.Infrastructure/PropertyEditors/ValueConverters/ImageCropperValueConverter.cs
2547
// Copyright (c) Umbraco. // See LICENSE for more details. using System; using System.Globalization; using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Umbraco.Cms.Core.Models.PublishedContent; using Umbraco.Extensions; namespace Umbraco.Cms.Core.PropertyEditors.ValueConverters { /// <summary> /// Represents a value converter for the image cropper value editor. /// </summary> [DefaultPropertyValueConverter(typeof(JsonValueConverter))] public class ImageCropperValueConverter : PropertyValueConverterBase { private readonly ILogger<ImageCropperValueConverter> _logger; public ImageCropperValueConverter(ILogger<ImageCropperValueConverter> logger) { _logger = logger; } /// <inheritdoc /> public override bool IsConverter(IPublishedPropertyType propertyType) => propertyType.EditorAlias.InvariantEquals(Cms.Core.Constants.PropertyEditors.Aliases.ImageCropper); /// <inheritdoc /> public override Type GetPropertyValueType(IPublishedPropertyType propertyType) => typeof (ImageCropperValue); /// <inheritdoc /> public override PropertyCacheLevel GetPropertyCacheLevel(IPublishedPropertyType propertyType) => PropertyCacheLevel.Element; private static readonly JsonSerializerSettings ImageCropperValueJsonSerializerSettings = new JsonSerializerSettings { Culture = CultureInfo.InvariantCulture, FloatParseHandling = FloatParseHandling.Decimal }; /// <inheritdoc /> public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview) { if (source == null) return null; var sourceString = source.ToString(); ImageCropperValue value; try { value = JsonConvert.DeserializeObject<ImageCropperValue>(sourceString, ImageCropperValueJsonSerializerSettings); } catch (Exception ex) { // cannot deserialize, assume it may be a raw image URL _logger.LogError(ex, "Could not deserialize string '{JsonString}' into an image cropper value.", sourceString); value = new ImageCropperValue { Src = sourceString }; } value?.ApplyConfiguration(propertyType.DataType.ConfigurationAs<ImageCropperConfiguration>()); return value; } } }
mit
jezell/iserviceoriented
IServiceOriented.ServiceBus/Delivery/Formatters/CompositeMessageDeliveryConverter.cs
2677
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections.ObjectModel; namespace IServiceOriented.ServiceBus.Delivery.Formatters { internal class CompositeMessageDeliveryConverter : MessageDeliveryConverter { public CompositeMessageDeliveryConverter(params MessageDeliveryConverter[] converters) { foreach (MessageDeliveryConverter converter in converters) { foreach (string supportedAction in converter.SupportedActions) { if (!_converterMap.ContainsKey(supportedAction)) { _converterMap.Add(supportedAction, converter); } else { throw new InvalidOperationException("The action " + supportedAction + " cannot be mapped multiple times"); } } } } public override MessageDelivery ToMessageDelivery(System.ServiceModel.Channels.Message message) { MessageDeliveryConverter converter; if (_converterMap.TryGetValue(message.Headers.Action, out converter)) { return converter.ToMessageDelivery(message); } else { throw new InvalidOperationException("Unknown action " + message.Headers.Action); } } protected override object GetMessageObject(System.ServiceModel.Channels.Message message) { throw new NotImplementedException(); } public override System.ServiceModel.Channels.Message ToMessage(MessageDelivery delivery) { MessageDeliveryConverter converter; if (delivery.Action == null) { throw new InvalidOperationException("Action cannot be null"); } if (_converterMap.TryGetValue(delivery.Action, out converter)) { return converter.ToMessage(delivery); } else { throw new InvalidOperationException("Unknown action " + delivery.Action); } } protected override System.ServiceModel.Channels.Message ToMessageCore(MessageDelivery delivery) { throw new NotImplementedException(); } Dictionary<string, MessageDeliveryConverter> _converterMap = new Dictionary<string, MessageDeliveryConverter>(); public override IEnumerable<string> SupportedActions { get { return _converterMap.Keys; } } } }
mit
igemsoftware/SYSU-Software2013
project/Python27_32/Lib/site-packages/pypm/external/2/sqlalchemy/ext/declarative.py
54113
# ext/declarative.py # Copyright (C) 2005-2011 the SQLAlchemy authors and contributors <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """ Synopsis ======== SQLAlchemy object-relational configuration involves the combination of :class:`.Table`, :func:`.mapper`, and class objects to define a mapped class. :mod:`~sqlalchemy.ext.declarative` allows all three to be expressed at once within the class declaration. As much as possible, regular SQLAlchemy schema and ORM constructs are used directly, so that configuration between "classical" ORM usage and declarative remain highly similar. As a simple example:: from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class SomeClass(Base): __tablename__ = 'some_table' id = Column(Integer, primary_key=True) name = Column(String(50)) Above, the :func:`declarative_base` callable returns a new base class from which all mapped classes should inherit. When the class definition is completed, a new :class:`.Table` and :func:`.mapper` will have been generated. The resulting table and mapper are accessible via ``__table__`` and ``__mapper__`` attributes on the ``SomeClass`` class:: # access the mapped Table SomeClass.__table__ # access the Mapper SomeClass.__mapper__ Defining Attributes =================== In the previous example, the :class:`.Column` objects are automatically named with the name of the attribute to which they are assigned. To name columns explicitly with a name distinct from their mapped attribute, just give the column a name. Below, column "some_table_id" is mapped to the "id" attribute of `SomeClass`, but in SQL will be represented as "some_table_id":: class SomeClass(Base): __tablename__ = 'some_table' id = Column("some_table_id", Integer, primary_key=True) Attributes may be added to the class after its construction, and they will be added to the underlying :class:`.Table` and :func:`.mapper()` definitions as appropriate:: SomeClass.data = Column('data', Unicode) SomeClass.related = relationship(RelatedInfo) Classes which are constructed using declarative can interact freely with classes that are mapped explicitly with :func:`mapper`. It is recommended, though not required, that all tables share the same underlying :class:`~sqlalchemy.schema.MetaData` object, so that string-configured :class:`~sqlalchemy.schema.ForeignKey` references can be resolved without issue. Accessing the MetaData ======================= The :func:`declarative_base` base class contains a :class:`.MetaData` object where newly defined :class:`.Table` objects are collected. This object is intended to be accessed directly for :class:`.MetaData`-specific operations. Such as, to issue CREATE statements for all tables:: engine = create_engine('sqlite://') Base.metadata.create_all(engine) The usual techniques of associating :class:`.MetaData:` with :class:`.Engine` apply, such as assigning to the ``bind`` attribute:: Base.metadata.bind = create_engine('sqlite://') To associate the engine with the :func:`declarative_base` at time of construction, the ``bind`` argument is accepted:: Base = declarative_base(bind=create_engine('sqlite://')) :func:`declarative_base` can also receive a pre-existing :class:`.MetaData` object, which allows a declarative setup to be associated with an already existing traditional collection of :class:`~sqlalchemy.schema.Table` objects:: mymetadata = MetaData() Base = declarative_base(metadata=mymetadata) Configuring Relationships ========================= Relationships to other classes are done in the usual way, with the added feature that the class specified to :func:`~sqlalchemy.orm.relationship` may be a string name. The "class registry" associated with ``Base`` is used at mapper compilation time to resolve the name into the actual class object, which is expected to have been defined once the mapper configuration is used:: class User(Base): __tablename__ = 'users' id = Column(Integer, primary_key=True) name = Column(String(50)) addresses = relationship("Address", backref="user") class Address(Base): __tablename__ = 'addresses' id = Column(Integer, primary_key=True) email = Column(String(50)) user_id = Column(Integer, ForeignKey('users.id')) Column constructs, since they are just that, are immediately usable, as below where we define a primary join condition on the ``Address`` class using them:: class Address(Base): __tablename__ = 'addresses' id = Column(Integer, primary_key=True) email = Column(String(50)) user_id = Column(Integer, ForeignKey('users.id')) user = relationship(User, primaryjoin=user_id == User.id) In addition to the main argument for :func:`~sqlalchemy.orm.relationship`, other arguments which depend upon the columns present on an as-yet undefined class may also be specified as strings. These strings are evaluated as Python expressions. The full namespace available within this evaluation includes all classes mapped for this declarative base, as well as the contents of the ``sqlalchemy`` package, including expression functions like :func:`~sqlalchemy.sql.expression.desc` and :attr:`~sqlalchemy.sql.expression.func`:: class User(Base): # .... addresses = relationship("Address", order_by="desc(Address.email)", primaryjoin="Address.user_id==User.id") As an alternative to string-based attributes, attributes may also be defined after all classes have been created. Just add them to the target class after the fact:: User.addresses = relationship(Address, primaryjoin=Address.user_id==User.id) Configuring Many-to-Many Relationships ====================================== Many-to-many relationships are also declared in the same way with declarative as with traditional mappings. The ``secondary`` argument to :func:`.relationship` is as usual passed a :class:`.Table` object, which is typically declared in the traditional way. The :class:`.Table` usually shares the :class:`.MetaData` object used by the declarative base:: keywords = Table( 'keywords', Base.metadata, Column('author_id', Integer, ForeignKey('authors.id')), Column('keyword_id', Integer, ForeignKey('keywords.id')) ) class Author(Base): __tablename__ = 'authors' id = Column(Integer, primary_key=True) keywords = relationship("Keyword", secondary=keywords) As with traditional mapping, its generally not a good idea to use a :class:`.Table` as the "secondary" argument which is also mapped to a class, unless the :class:`.relationship` is declared with ``viewonly=True``. Otherwise, the unit-of-work system may attempt duplicate INSERT and DELETE statements against the underlying table. .. _declarative_synonyms: Defining Synonyms ================= Synonyms are introduced in :ref:`synonyms`. To define a getter/setter which proxies to an underlying attribute, use :func:`~.synonym` with the ``descriptor`` argument. Here we present using Python 2.6 style properties:: class MyClass(Base): __tablename__ = 'sometable' id = Column(Integer, primary_key=True) _attr = Column('attr', String) @property def attr(self): return self._attr @attr.setter def attr(self, attr): self._attr = attr attr = synonym('_attr', descriptor=attr) The above synonym is then usable as an instance attribute as well as a class-level expression construct:: x = MyClass() x.attr = "some value" session.query(MyClass).filter(MyClass.attr == 'some other value').all() For simple getters, the :func:`synonym_for` decorator can be used in conjunction with ``@property``:: class MyClass(Base): __tablename__ = 'sometable' id = Column(Integer, primary_key=True) _attr = Column('attr', String) @synonym_for('_attr') @property def attr(self): return self._attr Similarly, :func:`comparable_using` is a front end for the :func:`~.comparable_property` ORM function:: class MyClass(Base): __tablename__ = 'sometable' name = Column('name', String) @comparable_using(MyUpperCaseComparator) @property def uc_name(self): return self.name.upper() .. _declarative_sql_expressions: Defining SQL Expressions ======================== The usage of :func:`.column_property` with Declarative to define load-time, mapped SQL expressions is pretty much the same as that described in :ref:`mapper_sql_expressions`. Local columns within the same class declaration can be referenced directly:: class User(Base): __tablename__ = 'user' id = Column(Integer, primary_key=True) firstname = Column(String) lastname = Column(String) fullname = column_property( firstname + " " + lastname ) Correlated subqueries reference the :class:`Column` objects they need either from the local class definition or from remote classes:: from sqlalchemy.sql import func class Address(Base): __tablename__ = 'address' id = Column('id', Integer, primary_key=True) user_id = Column(Integer, ForeignKey('user.id')) class User(Base): __tablename__ = 'user' id = Column(Integer, primary_key=True) name = Column(String) address_count = column_property( select([func.count(Address.id)]).\\ where(Address.user_id==id) ) In the case that the ``address_count`` attribute above doesn't have access to ``Address`` when ``User`` is defined, the ``address_count`` attribute should be added to ``User`` when both ``User`` and ``Address`` are available (i.e. there is no string based "late compilation" feature like there is with :func:`.relationship` at this time). Note we reference the ``id`` column attribute of ``User`` with its class when we are no longer in the declaration of the ``User`` class:: User.address_count = column_property( select([func.count(Address.id)]).\\ where(Address.user_id==User.id) ) Table Configuration =================== Table arguments other than the name, metadata, and mapped Column arguments are specified using the ``__table_args__`` class attribute. This attribute accommodates both positional as well as keyword arguments that are normally sent to the :class:`~sqlalchemy.schema.Table` constructor. The attribute can be specified in one of two forms. One is as a dictionary:: class MyClass(Base): __tablename__ = 'sometable' __table_args__ = {'mysql_engine':'InnoDB'} The other, a tuple of the form ``(arg1, arg2, ..., {kwarg1:value, ...})``, which allows positional arguments to be specified as well (usually constraints):: class MyClass(Base): __tablename__ = 'sometable' __table_args__ = ( ForeignKeyConstraint(['id'], ['remote_table.id']), UniqueConstraint('foo'), {'autoload':True} ) Note that the keyword parameters dictionary is required in the tuple form even if empty. Using a Hybrid Approach with __table__ ======================================= As an alternative to ``__tablename__``, a direct :class:`~sqlalchemy.schema.Table` construct may be used. The :class:`~sqlalchemy.schema.Column` objects, which in this case require their names, will be added to the mapping just like a regular mapping to a table:: class MyClass(Base): __table__ = Table('my_table', Base.metadata, Column('id', Integer, primary_key=True), Column('name', String(50)) ) ``__table__`` provides a more focused point of control for establishing table metadata, while still getting most of the benefits of using declarative. An application that uses reflection might want to load table metadata elsewhere and simply pass it to declarative classes:: from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() Base.metadata.reflect(some_engine) class User(Base): __table__ = metadata.tables['user'] class Address(Base): __table__ = metadata.tables['address'] Some configuration schemes may find it more appropriate to use ``__table__``, such as those which already take advantage of the data-driven nature of :class:`.Table` to customize and/or automate schema definition. See the wiki example `NamingConventions <http://www.sqlalchemy.org/trac/wiki/UsageRecipes/NamingConventions>`_ for one such example. Mapper Configuration ==================== Declarative makes use of the :func:`~.orm.mapper` function internally when it creates the mapping to the declared table. The options for :func:`~.orm.mapper` are passed directly through via the ``__mapper_args__`` class attribute. As always, arguments which reference locally mapped columns can reference them directly from within the class declaration:: from datetime import datetime class Widget(Base): __tablename__ = 'widgets' id = Column(Integer, primary_key=True) timestamp = Column(DateTime, nullable=False) __mapper_args__ = { 'version_id_col': timestamp, 'version_id_generator': lambda v:datetime.now() } .. _declarative_inheritance: Inheritance Configuration ========================= Declarative supports all three forms of inheritance as intuitively as possible. The ``inherits`` mapper keyword argument is not needed as declarative will determine this from the class itself. The various "polymorphic" keyword arguments are specified using ``__mapper_args__``. Joined Table Inheritance ~~~~~~~~~~~~~~~~~~~~~~~~ Joined table inheritance is defined as a subclass that defines its own table:: class Person(Base): __tablename__ = 'people' id = Column(Integer, primary_key=True) discriminator = Column('type', String(50)) __mapper_args__ = {'polymorphic_on': discriminator} class Engineer(Person): __tablename__ = 'engineers' __mapper_args__ = {'polymorphic_identity': 'engineer'} id = Column(Integer, ForeignKey('people.id'), primary_key=True) primary_language = Column(String(50)) Note that above, the ``Engineer.id`` attribute, since it shares the same attribute name as the ``Person.id`` attribute, will in fact represent the ``people.id`` and ``engineers.id`` columns together, and will render inside a query as ``"people.id"``. To provide the ``Engineer`` class with an attribute that represents only the ``engineers.id`` column, give it a different attribute name:: class Engineer(Person): __tablename__ = 'engineers' __mapper_args__ = {'polymorphic_identity': 'engineer'} engineer_id = Column('id', Integer, ForeignKey('people.id'), primary_key=True) primary_language = Column(String(50)) Single Table Inheritance ~~~~~~~~~~~~~~~~~~~~~~~~ Single table inheritance is defined as a subclass that does not have its own table; you just leave out the ``__table__`` and ``__tablename__`` attributes:: class Person(Base): __tablename__ = 'people' id = Column(Integer, primary_key=True) discriminator = Column('type', String(50)) __mapper_args__ = {'polymorphic_on': discriminator} class Engineer(Person): __mapper_args__ = {'polymorphic_identity': 'engineer'} primary_language = Column(String(50)) When the above mappers are configured, the ``Person`` class is mapped to the ``people`` table *before* the ``primary_language`` column is defined, and this column will not be included in its own mapping. When ``Engineer`` then defines the ``primary_language`` column, the column is added to the ``people`` table so that it is included in the mapping for ``Engineer`` and is also part of the table's full set of columns. Columns which are not mapped to ``Person`` are also excluded from any other single or joined inheriting classes using the ``exclude_properties`` mapper argument. Below, ``Manager`` will have all the attributes of ``Person`` and ``Manager`` but *not* the ``primary_language`` attribute of ``Engineer``:: class Manager(Person): __mapper_args__ = {'polymorphic_identity': 'manager'} golf_swing = Column(String(50)) The attribute exclusion logic is provided by the ``exclude_properties`` mapper argument, and declarative's default behavior can be disabled by passing an explicit ``exclude_properties`` collection (empty or otherwise) to the ``__mapper_args__``. Concrete Table Inheritance ~~~~~~~~~~~~~~~~~~~~~~~~~~ Concrete is defined as a subclass which has its own table and sets the ``concrete`` keyword argument to ``True``:: class Person(Base): __tablename__ = 'people' id = Column(Integer, primary_key=True) name = Column(String(50)) class Engineer(Person): __tablename__ = 'engineers' __mapper_args__ = {'concrete':True} id = Column(Integer, primary_key=True) primary_language = Column(String(50)) name = Column(String(50)) Usage of an abstract base class is a little less straightforward as it requires usage of :func:`~sqlalchemy.orm.util.polymorphic_union`:: engineers = Table('engineers', Base.metadata, Column('id', Integer, primary_key=True), Column('name', String(50)), Column('primary_language', String(50)) ) managers = Table('managers', Base.metadata, Column('id', Integer, primary_key=True), Column('name', String(50)), Column('golf_swing', String(50)) ) punion = polymorphic_union({ 'engineer':engineers, 'manager':managers }, 'type', 'punion') class Person(Base): __table__ = punion __mapper_args__ = {'polymorphic_on':punion.c.type} class Engineer(Person): __table__ = engineers __mapper_args__ = {'polymorphic_identity':'engineer', 'concrete':True} class Manager(Person): __table__ = managers __mapper_args__ = {'polymorphic_identity':'manager', 'concrete':True} Mixin Classes ============== A common need when using :mod:`~sqlalchemy.ext.declarative` is to share some functionality, often a set of columns, across many classes. The normal Python idiom would be to put this common code into a base class and have all the other classes subclass this class. When using :mod:`~sqlalchemy.ext.declarative`, this need is met by using a "mixin class". A mixin class is one that isn't mapped to a table and doesn't subclass the declarative :class:`Base`. For example:: class MyMixin(object): __table_args__ = {'mysql_engine': 'InnoDB'} __mapper_args__= {'always_refresh': True} id = Column(Integer, primary_key=True) class MyModel(Base,MyMixin): __tablename__ = 'test' name = Column(String(1000)) Where above, the class ``MyModel`` will contain an "id" column as well as ``__table_args__`` and ``__mapper_args__`` defined by the ``MyMixin`` mixin class. Mixing in Columns ~~~~~~~~~~~~~~~~~ The most basic way to specify a column on a mixin is by simple declaration:: class TimestampMixin(object): created_at = Column(DateTime, default=func.now()) class MyModel(Base, TimestampMixin): __tablename__ = 'test' id = Column(Integer, primary_key=True) name = Column(String(1000)) Where above, all declarative classes that include ``TimestampMixin`` will also have a column ``created_at`` that applies a timestamp to all row insertions. Those familiar with the SQLAlchemy expression language know that the object identity of clause elements defines their role in a schema. Two ``Table`` objects ``a`` and ``b`` may both have a column called ``id``, but the way these are differentiated is that ``a.c.id`` and ``b.c.id`` are two distinct Python objects, referencing their parent tables ``a`` and ``b`` respectively. In the case of the mixin column, it seems that only one :class:`Column` object is explicitly created, yet the ultimate ``created_at`` column above must exist as a distinct Python object for each separate destination class. To accomplish this, the declarative extension creates a **copy** of each :class:`Column` object encountered on a class that is detected as a mixin. This copy mechanism is limited to simple columns that have no foreign keys, as a :class:`ForeignKey` itself contains references to columns which can't be properly recreated at this level. For columns that have foreign keys, as well as for the variety of mapper-level constructs that require destination-explicit context, the :func:`~.declared_attr` decorator (renamed from ``sqlalchemy.util.classproperty`` in 0.6.5) is provided so that patterns common to many classes can be defined as callables:: from sqlalchemy.ext.declarative import declared_attr class ReferenceAddressMixin(object): @declared_attr def address_id(cls): return Column(Integer, ForeignKey('address.id')) class User(Base, ReferenceAddressMixin): __tablename__ = 'user' id = Column(Integer, primary_key=True) Where above, the ``address_id`` class-level callable is executed at the point at which the ``User`` class is constructed, and the declarative extension can use the resulting :class:`Column` object as returned by the method without the need to copy it. Columns generated by :func:`~.declared_attr` can also be referenced by ``__mapper_args__`` to a limited degree, currently by ``polymorphic_on`` and ``version_id_col``, by specifying the classdecorator itself into the dictionary - the declarative extension will resolve them at class construction time:: class MyMixin: @declared_attr def type_(cls): return Column(String(50)) __mapper_args__= {'polymorphic_on':type_} class MyModel(Base,MyMixin): __tablename__='test' id = Column(Integer, primary_key=True) Mixing in Relationships ~~~~~~~~~~~~~~~~~~~~~~~ Relationships created by :func:`~sqlalchemy.orm.relationship` are provided with declarative mixin classes exclusively using the :func:`.declared_attr` approach, eliminating any ambiguity which could arise when copying a relationship and its possibly column-bound contents. Below is an example which combines a foreign key column and a relationship so that two classes ``Foo`` and ``Bar`` can both be configured to reference a common target class via many-to-one:: class RefTargetMixin(object): @declared_attr def target_id(cls): return Column('target_id', ForeignKey('target.id')) @declared_attr def target(cls): return relationship("Target") class Foo(Base, RefTargetMixin): __tablename__ = 'foo' id = Column(Integer, primary_key=True) class Bar(Base, RefTargetMixin): __tablename__ = 'bar' id = Column(Integer, primary_key=True) class Target(Base): __tablename__ = 'target' id = Column(Integer, primary_key=True) :func:`~sqlalchemy.orm.relationship` definitions which require explicit primaryjoin, order_by etc. expressions should use the string forms for these arguments, so that they are evaluated as late as possible. To reference the mixin class in these expressions, use the given ``cls`` to get it's name:: class RefTargetMixin(object): @declared_attr def target_id(cls): return Column('target_id', ForeignKey('target.id')) @declared_attr def target(cls): return relationship("Target", primaryjoin="Target.id==%s.target_id" % cls.__name__ ) Mixing in deferred(), column_property(), etc. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Like :func:`~sqlalchemy.orm.relationship`, all :class:`~sqlalchemy.orm.interfaces.MapperProperty` subclasses such as :func:`~sqlalchemy.orm.deferred`, :func:`~sqlalchemy.orm.column_property`, etc. ultimately involve references to columns, and therefore, when used with declarative mixins, have the :func:`.declared_attr` requirement so that no reliance on copying is needed:: class SomethingMixin(object): @declared_attr def dprop(cls): return deferred(Column(Integer)) class Something(Base, SomethingMixin): __tablename__ = "something" Controlling table inheritance with mixins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The ``__tablename__`` attribute in conjunction with the hierarchy of classes involved in a declarative mixin scenario controls what type of table inheritance, if any, is configured by the declarative extension. If the ``__tablename__`` is computed by a mixin, you may need to control which classes get the computed attribute in order to get the type of table inheritance you require. For example, if you had a mixin that computes ``__tablename__`` but where you wanted to use that mixin in a single table inheritance hierarchy, you can explicitly specify ``__tablename__`` as ``None`` to indicate that the class should not have a table mapped:: from sqlalchemy.ext.declarative import declared_attr class Tablename: @declared_attr def __tablename__(cls): return cls.__name__.lower() class Person(Base,Tablename): id = Column(Integer, primary_key=True) discriminator = Column('type', String(50)) __mapper_args__ = {'polymorphic_on': discriminator} class Engineer(Person): __tablename__ = None __mapper_args__ = {'polymorphic_identity': 'engineer'} primary_language = Column(String(50)) Alternatively, you can make the mixin intelligent enough to only return a ``__tablename__`` in the event that no table is already mapped in the inheritance hierarchy. To help with this, a :func:`~sqlalchemy.ext.declarative.has_inherited_table` helper function is provided that returns ``True`` if a parent class already has a mapped table. As an example, here's a mixin that will only allow single table inheritance:: from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.ext.declarative import has_inherited_table class Tablename: @declared_attr def __tablename__(cls): if has_inherited_table(cls): return None return cls.__name__.lower() class Person(Base,Tablename): id = Column(Integer, primary_key=True) discriminator = Column('type', String(50)) __mapper_args__ = {'polymorphic_on': discriminator} class Engineer(Person): primary_language = Column(String(50)) __mapper_args__ = {'polymorphic_identity': 'engineer'} If you want to use a similar pattern with a mix of single and joined table inheritance, you would need a slightly different mixin and use it on any joined table child classes in addition to their parent classes:: from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.ext.declarative import has_inherited_table class Tablename: @declared_attr def __tablename__(cls): if (has_inherited_table(cls) and Tablename not in cls.__bases__): return None return cls.__name__.lower() class Person(Base,Tablename): id = Column(Integer, primary_key=True) discriminator = Column('type', String(50)) __mapper_args__ = {'polymorphic_on': discriminator} # This is single table inheritance class Engineer(Person): primary_language = Column(String(50)) __mapper_args__ = {'polymorphic_identity': 'engineer'} # This is joined table inheritance class Manager(Person,Tablename): id = Column(Integer, ForeignKey('person.id'), primary_key=True) preferred_recreation = Column(String(50)) __mapper_args__ = {'polymorphic_identity': 'engineer'} Combining Table/Mapper Arguments from Multiple Mixins ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In the case of ``__table_args__`` or ``__mapper_args__`` specified with declarative mixins, you may want to combine some parameters from several mixins with those you wish to define on the class iteself. The :func:`.declared_attr` decorator can be used here to create user-defined collation routines that pull from multiple collections:: from sqlalchemy.ext.declarative import declared_attr class MySQLSettings: __table_args__ = {'mysql_engine':'InnoDB'} class MyOtherMixin: __table_args__ = {'info':'foo'} class MyModel(Base,MySQLSettings,MyOtherMixin): __tablename__='my_model' @declared_attr def __table_args__(self): args = dict() args.update(MySQLSettings.__table_args__) args.update(MyOtherMixin.__table_args__) return args id = Column(Integer, primary_key=True) Class Constructor ================= As a convenience feature, the :func:`declarative_base` sets a default constructor on classes which takes keyword arguments, and assigns them to the named attributes:: e = Engineer(primary_language='python') Sessions ======== Note that ``declarative`` does nothing special with sessions, and is only intended as an easier way to configure mappers and :class:`~sqlalchemy.schema.Table` objects. A typical application setup using :func:`~sqlalchemy.orm.scoped_session` might look like:: engine = create_engine('postgresql://scott:tiger@localhost/test') Session = scoped_session(sessionmaker(autocommit=False, autoflush=False, bind=engine)) Base = declarative_base() Mapped instances then make usage of :class:`~sqlalchemy.orm.session.Session` in the usual way. """ from sqlalchemy.schema import Table, Column, MetaData from sqlalchemy.orm import synonym as _orm_synonym, mapper,\ comparable_property, class_mapper from sqlalchemy.orm.interfaces import MapperProperty from sqlalchemy.orm.properties import RelationshipProperty, ColumnProperty from sqlalchemy.orm.util import _is_mapped_class from sqlalchemy import util, exceptions from sqlalchemy.sql import util as sql_util, expression __all__ = 'declarative_base', 'synonym_for', \ 'comparable_using', 'instrument_declarative' def instrument_declarative(cls, registry, metadata): """Given a class, configure the class declaratively, using the given registry, which can be any dictionary, and MetaData object. """ if '_decl_class_registry' in cls.__dict__: raise exceptions.InvalidRequestError( "Class %r already has been " "instrumented declaratively" % cls) cls._decl_class_registry = registry cls.metadata = metadata _as_declarative(cls, cls.__name__, cls.__dict__) def has_inherited_table(cls): """Given a class, return True if any of the classes it inherits from has a mapped table, otherwise return False. """ for class_ in cls.__mro__: if getattr(class_,'__table__',None) is not None: return True return False def _as_declarative(cls, classname, dict_): # dict_ will be a dictproxy, which we can't write to, and we need to! dict_ = dict(dict_) column_copies = {} potential_columns = {} mapper_args = {} table_args = inherited_table_args = None tablename = None parent_columns = () declarative_props = (declared_attr, util.classproperty) for base in cls.__mro__: class_mapped = _is_mapped_class(base) if class_mapped: parent_columns = base.__table__.c.keys() for name,obj in vars(base).items(): if name == '__mapper_args__': if not mapper_args and ( not class_mapped or isinstance(obj, declarative_props) ): mapper_args = cls.__mapper_args__ elif name == '__tablename__': if not tablename and ( not class_mapped or isinstance(obj, declarative_props) ): tablename = cls.__tablename__ elif name == '__table_args__': if not table_args and ( not class_mapped or isinstance(obj, declarative_props) ): table_args = cls.__table_args__ if not isinstance(table_args, (tuple, dict, type(None))): raise exceptions.ArgumentError( "__table_args__ value must be a tuple, " "dict, or None") if base is not cls: inherited_table_args = True elif class_mapped: continue elif base is not cls: # we're a mixin. if isinstance(obj, Column): if obj.foreign_keys: raise exceptions.InvalidRequestError( "Columns with foreign keys to other columns " "must be declared as @classproperty callables " "on declarative mixin classes. ") if name not in dict_ and not ( '__table__' in dict_ and (obj.name or name) in dict_['__table__'].c ) and name not in potential_columns: potential_columns[name] = \ column_copies[obj] = \ obj.copy() column_copies[obj]._creation_order = \ obj._creation_order elif isinstance(obj, MapperProperty): raise exceptions.InvalidRequestError( "Mapper properties (i.e. deferred," "column_property(), relationship(), etc.) must " "be declared as @classproperty callables " "on declarative mixin classes.") elif isinstance(obj, declarative_props): dict_[name] = ret = \ column_copies[obj] = getattr(cls, name) if isinstance(ret, (Column, MapperProperty)) and \ ret.doc is None: ret.doc = obj.__doc__ # apply inherited columns as we should for k, v in potential_columns.items(): if tablename or (v.name or k) not in parent_columns: dict_[k] = v if inherited_table_args and not tablename: table_args = None # make sure that column copies are used rather # than the original columns from any mixins for k, v in mapper_args.iteritems(): mapper_args[k] = column_copies.get(v,v) if classname in cls._decl_class_registry: util.warn("The classname %r is already in the registry of this" " declarative base, mapped to %r" % ( classname, cls._decl_class_registry[classname] )) cls._decl_class_registry[classname] = cls our_stuff = util.OrderedDict() for k in dict_: value = dict_[k] if isinstance(value, declarative_props): value = getattr(cls, k) if (isinstance(value, tuple) and len(value) == 1 and isinstance(value[0], (Column, MapperProperty))): util.warn("Ignoring declarative-like tuple value of attribute " "%s: possibly a copy-and-paste error with a comma " "left at the end of the line?" % k) continue if not isinstance(value, (Column, MapperProperty)): continue prop = _deferred_relationship(cls, value) our_stuff[k] = prop # set up attributes in the order they were created our_stuff.sort(key=lambda key: our_stuff[key]._creation_order) # extract columns from the class dict cols = [] for key, c in our_stuff.iteritems(): if isinstance(c, ColumnProperty): for col in c.columns: if isinstance(col, Column) and col.table is None: _undefer_column_name(key, col) cols.append(col) elif isinstance(c, Column): _undefer_column_name(key, c) cols.append(c) # if the column is the same name as the key, # remove it from the explicit properties dict. # the normal rules for assigning column-based properties # will take over, including precedence of columns # in multi-column ColumnProperties. if key == c.key: del our_stuff[key] table = None if '__table__' not in dict_: if tablename is not None: if isinstance(table_args, dict): args, table_kw = (), table_args elif isinstance(table_args, tuple): args = table_args[0:-1] table_kw = table_args[-1] if len(table_args) < 2 or not isinstance(table_kw, dict): raise exceptions.ArgumentError( "Tuple form of __table_args__ is " "(arg1, arg2, arg3, ..., {'kw1':val1, " "'kw2':val2, ...})" ) else: args, table_kw = (), {} autoload = dict_.get('__autoload__') if autoload: table_kw['autoload'] = True cls.__table__ = table = Table(tablename, cls.metadata, *(tuple(cols) + tuple(args)), **table_kw) else: table = cls.__table__ if cols: for c in cols: if not table.c.contains_column(c): raise exceptions.ArgumentError( "Can't add additional column %r when " "specifying __table__" % c.key ) if 'inherits' not in mapper_args: for c in cls.__bases__: if _is_mapped_class(c): mapper_args['inherits'] = cls._decl_class_registry.get( c.__name__, None) break if hasattr(cls, '__mapper_cls__'): mapper_cls = util.unbound_method_to_callable(cls.__mapper_cls__) else: mapper_cls = mapper if table is None and 'inherits' not in mapper_args: raise exceptions.InvalidRequestError( "Class %r does not have a __table__ or __tablename__ " "specified and does not inherit from an existing " "table-mapped class." % cls ) elif 'inherits' in mapper_args and not mapper_args.get('concrete', False): inherited_mapper = class_mapper(mapper_args['inherits'], compile=False) inherited_table = inherited_mapper.local_table if 'inherit_condition' not in mapper_args and table is not None: # figure out the inherit condition with relaxed rules # about nonexistent tables, to allow for ForeignKeys to # not-yet-defined tables (since we know for sure that our # parent table is defined within the same MetaData) mapper_args['inherit_condition'] = sql_util.join_condition( mapper_args['inherits'].__table__, table, ignore_nonexistent_tables=True) if table is None: # single table inheritance. # ensure no table args if table_args: raise exceptions.ArgumentError( "Can't place __table_args__ on an inherited class " "with no table." ) # add any columns declared here to the inherited table. for c in cols: if c.primary_key: raise exceptions.ArgumentError( "Can't place primary key columns on an inherited " "class with no table." ) if c.name in inherited_table.c: raise exceptions.ArgumentError( "Column '%s' on class %s conflicts with " "existing column '%s'" % (c, cls, inherited_table.c[c.name]) ) inherited_table.append_column(c) # single or joined inheritance # exclude any cols on the inherited table which are not mapped on the # parent class, to avoid # mapping columns specific to sibling/nephew classes inherited_mapper = class_mapper(mapper_args['inherits'], compile=False) inherited_table = inherited_mapper.local_table if 'exclude_properties' not in mapper_args: mapper_args['exclude_properties'] = exclude_properties = \ set([c.key for c in inherited_table.c if c not in inherited_mapper._columntoproperty]) exclude_properties.difference_update([c.key for c in cols]) # look through columns in the current mapper that # are keyed to a propname different than the colname # (if names were the same, we'd have popped it out above, # in which case the mapper makes this combination). # See if the superclass has a similar column property. # If so, join them together. for k, col in our_stuff.items(): if not isinstance(col, expression.ColumnElement): continue if k in inherited_mapper._props: p = inherited_mapper._props[k] if isinstance(p, ColumnProperty): # note here we place the superclass column # first. this corresponds to the # append() in mapper._configure_property(). # change this ordering when we do [ticket:1892] our_stuff[k] = p.columns + [col] cls.__mapper__ = mapper_cls(cls, table, properties=our_stuff, **mapper_args) class DeclarativeMeta(type): def __init__(cls, classname, bases, dict_): if '_decl_class_registry' in cls.__dict__: return type.__init__(cls, classname, bases, dict_) _as_declarative(cls, classname, cls.__dict__) return type.__init__(cls, classname, bases, dict_) def __setattr__(cls, key, value): if '__mapper__' in cls.__dict__: if isinstance(value, Column): _undefer_column_name(key, value) cls.__table__.append_column(value) cls.__mapper__.add_property(key, value) elif isinstance(value, ColumnProperty): for col in value.columns: if isinstance(col, Column) and col.table is None: _undefer_column_name(key, col) cls.__table__.append_column(col) cls.__mapper__.add_property(key, value) elif isinstance(value, MapperProperty): cls.__mapper__.add_property( key, _deferred_relationship(cls, value) ) else: type.__setattr__(cls, key, value) else: type.__setattr__(cls, key, value) class _GetColumns(object): def __init__(self, cls): self.cls = cls def __getattr__(self, key): mapper = class_mapper(self.cls, compile=False) if mapper: prop = mapper.get_property(key, raiseerr=False) if prop is None: raise exceptions.InvalidRequestError( "Class %r does not have a mapped column named %r" % (self.cls, key)) elif not isinstance(prop, ColumnProperty): raise exceptions.InvalidRequestError( "Property %r is not an instance of" " ColumnProperty (i.e. does not correspond" " directly to a Column)." % key) return getattr(self.cls, key) def _deferred_relationship(cls, prop): def resolve_arg(arg): import sqlalchemy def access_cls(key): if key in cls._decl_class_registry: return _GetColumns(cls._decl_class_registry[key]) elif key in cls.metadata.tables: return cls.metadata.tables[key] else: return sqlalchemy.__dict__[key] d = util.PopulateDict(access_cls) def return_cls(): try: x = eval(arg, globals(), d) if isinstance(x, _GetColumns): return x.cls else: return x except NameError, n: raise exceptions.InvalidRequestError( "When initializing mapper %s, expression %r failed to " "locate a name (%r). If this is a class name, consider " "adding this relationship() to the %r class after " "both dependent classes have been defined." % (prop.parent, arg, n.args[0], cls) ) return return_cls if isinstance(prop, RelationshipProperty): for attr in ('argument', 'order_by', 'primaryjoin', 'secondaryjoin', 'secondary', '_user_defined_foreign_keys', 'remote_side'): v = getattr(prop, attr) if isinstance(v, basestring): setattr(prop, attr, resolve_arg(v)) if prop.backref and isinstance(prop.backref, tuple): key, kwargs = prop.backref for attr in ('primaryjoin', 'secondaryjoin', 'secondary', 'foreign_keys', 'remote_side', 'order_by'): if attr in kwargs and isinstance(kwargs[attr], basestring): kwargs[attr] = resolve_arg(kwargs[attr]) return prop def synonym_for(name, map_column=False): """Decorator, make a Python @property a query synonym for a column. A decorator version of :func:`~sqlalchemy.orm.synonym`. The function being decorated is the 'descriptor', otherwise passes its arguments through to synonym():: @synonym_for('col') @property def prop(self): return 'special sauce' The regular ``synonym()`` is also usable directly in a declarative setting and may be convenient for read/write properties:: prop = synonym('col', descriptor=property(_read_prop, _write_prop)) """ def decorate(fn): return _orm_synonym(name, map_column=map_column, descriptor=fn) return decorate def comparable_using(comparator_factory): """Decorator, allow a Python @property to be used in query criteria. This is a decorator front end to :func:`~sqlalchemy.orm.comparable_property` that passes through the comparator_factory and the function being decorated:: @comparable_using(MyComparatorType) @property def prop(self): return 'special sauce' The regular ``comparable_property()`` is also usable directly in a declarative setting and may be convenient for read/write properties:: prop = comparable_property(MyComparatorType) """ def decorate(fn): return comparable_property(comparator_factory, fn) return decorate class declared_attr(property): """Mark a class-level method as representing the definition of a mapped property or special declarative member name. .. note:: @declared_attr is available as ``sqlalchemy.util.classproperty`` for SQLAlchemy versions 0.6.2, 0.6.3, 0.6.4. @declared_attr turns the attribute into a scalar-like property that can be invoked from the uninstantiated class. Declarative treats attributes specifically marked with @declared_attr as returning a construct that is specific to mapping or declarative table configuration. The name of the attribute is that of what the non-dynamic version of the attribute would be. @declared_attr is more often than not applicable to mixins, to define relationships that are to be applied to different implementors of the class:: class ProvidesUser(object): "A mixin that adds a 'user' relationship to classes." @declared_attr def user(self): return relationship("User") It also can be applied to mapped classes, such as to provide a "polymorphic" scheme for inheritance:: class Employee(Base): id = Column(Integer, primary_key=True) type = Column(String(50), nullable=False) @declared_attr def __tablename__(cls): return cls.__name__.lower() @declared_attr def __mapper_args__(cls): if cls.__name__ == 'Employee': return { "polymorphic_on":cls.type, "polymorphic_identity":"Employee" } else: return {"polymorphic_identity":cls.__name__} """ def __init__(self, fget, *arg, **kw): super(declared_attr, self).__init__(fget, *arg, **kw) self.__doc__ = fget.__doc__ def __get__(desc, self, cls): return desc.fget(cls) def _declarative_constructor(self, **kwargs): """A simple constructor that allows initialization from kwargs. Sets attributes on the constructed instance using the names and values in ``kwargs``. Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships. """ cls_ = type(self) for k in kwargs: if not hasattr(cls_, k): raise TypeError( "%r is an invalid keyword argument for %s" % (k, cls_.__name__)) setattr(self, k, kwargs[k]) _declarative_constructor.__name__ = '__init__' def declarative_base(bind=None, metadata=None, mapper=None, cls=object, name='Base', constructor=_declarative_constructor, metaclass=DeclarativeMeta): """Construct a base class for declarative class definitions. The new base class will be given a metaclass that produces appropriate :class:`~sqlalchemy.schema.Table` objects and makes the appropriate :func:`~sqlalchemy.orm.mapper` calls based on the information provided declaratively in the class and any subclasses of the class. :param bind: An optional :class:`~sqlalchemy.engine.base.Connectable`, will be assigned the ``bind`` attribute on the :class:`~sqlalchemy.MetaData` instance. :param metadata: An optional :class:`~sqlalchemy.MetaData` instance. All :class:`~sqlalchemy.schema.Table` objects implicitly declared by subclasses of the base will share this MetaData. A MetaData instance will be created if none is provided. The :class:`~sqlalchemy.MetaData` instance will be available via the `metadata` attribute of the generated declarative base class. :param mapper: An optional callable, defaults to :func:`~sqlalchemy.orm.mapper`. Will be used to map subclasses to their Tables. :param cls: Defaults to :class:`object`. A type to use as the base for the generated declarative base class. May be a class or tuple of classes. :param name: Defaults to ``Base``. The display name for the generated class. Customizing this is not required, but can improve clarity in tracebacks and debugging. :param constructor: Defaults to :func:`~sqlalchemy.ext.declarative._declarative_constructor`, an __init__ implementation that assigns \**kwargs for declared fields and relationships to an instance. If ``None`` is supplied, no __init__ will be provided and construction will fall back to cls.__init__ by way of the normal Python semantics. :param metaclass: Defaults to :class:`DeclarativeMeta`. A metaclass or __metaclass__ compatible callable to use as the meta type of the generated declarative base class. """ lcl_metadata = metadata or MetaData() if bind: lcl_metadata.bind = bind bases = not isinstance(cls, tuple) and (cls,) or cls class_dict = dict(_decl_class_registry=dict(), metadata=lcl_metadata) if constructor: class_dict['__init__'] = constructor if mapper: class_dict['__mapper_cls__'] = mapper return metaclass(name, bases, class_dict) def _undefer_column_name(key, column): if column.key is None: column.key = key if column.name is None: column.name = key
mit
suclike/centrifugo
libcentrifugo/mediator_test.go
973
package libcentrifugo import ( "testing" "github.com/centrifugal/centrifugo/Godeps/_workspace/src/github.com/stretchr/testify/assert" ) type testMediator struct { connect int subscribe int unsubscribe int disconnect int message int } func (m *testMediator) Connect(pk ProjectKey, client ConnID, user UserID) { m.connect += 1 } func (m *testMediator) Subscribe(pk ProjectKey, ch Channel, client ConnID, user UserID) { m.subscribe += 1 } func (m *testMediator) Unsubscribe(pk ProjectKey, ch Channel, client ConnID, user UserID) { m.unsubscribe += 1 return } func (m *testMediator) Disconnect(pk ProjectKey, client ConnID, user UserID) { m.disconnect += 1 return } func (m *testMediator) Message(pk ProjectKey, ch Channel, data []byte, client ConnID, info *ClientInfo) bool { m.message += 1 return false } func TestMediator(t *testing.T) { app := testApp() m := &testMediator{} app.SetMediator(m) assert.NotEqual(t, nil, app.mediator) }
mit
kachick/mspec
lib/mspec/helpers/ruby_exe.rb
4236
require 'mspec/guards/platform' require 'mspec/helpers/tmp' # The ruby_exe helper provides a wrapper for invoking the # same Ruby interpreter with the same flags as the one running # the specs and getting the output from running the code. # # If +code+ is a file that exists, it will be run. # Otherwise, +code+ will be written to a temporary file and be run. # For example: # # ruby_exe('path/to/some/file.rb') # # will be executed as # # `#{RUBY_EXE} 'path/to/some/file.rb'` # # The ruby_exe helper also accepts an options hash with three # keys: :options, :args and :env. For example: # # ruby_exe('file.rb', :options => "-w", # :args => "arg1 arg2", # :env => { :FOO => "bar" }) # # will be executed as # # `#{RUBY_EXE} -w file.rb arg1 arg2` # # with access to ENV["FOO"] with value "bar". # # If +nil+ is passed for the first argument, the command line # will be built only from the options hash. # # If no arguments are passed to ruby_exe, it returns an Array # containing the interpreter executable and the flags: # # spawn(*ruby_exe, "-e", "puts :hello") # # This avoids spawning an extra shell, and ensure the pid returned by spawn # corresponds to the ruby process and not the shell. # # The RUBY_EXE constant is setup by mspec automatically # and is used by ruby_exe and ruby_cmd. The mspec runner script # will set ENV['RUBY_EXE'] to the name of the executable used # to invoke the mspec-run script. # # The value will only be used if the file exists and is executable. # The flags will then be appended to the resulting value, such that # the RUBY_EXE constant contains both the executable and the flags. # # Additionally, the flags passed to mspec # (with -T on the command line or in the config with set :flags) # will be appended to RUBY_EXE so that the interpreter # is always called with those flags. def ruby_exe_options(option) case option when :env ENV['RUBY_EXE'] when :engine case RUBY_ENGINE when 'rbx' "bin/rbx" when 'jruby' "bin/jruby" when 'maglev' "maglev-ruby" when 'topaz' "topaz" when 'ironruby' "ir" end when :name require 'rbconfig' bin = RUBY_ENGINE + (RbConfig::CONFIG['EXEEXT'] || '') File.join(".", bin) when :install_name require 'rbconfig' bin = RbConfig::CONFIG["RUBY_INSTALL_NAME"] || RbConfig::CONFIG["ruby_install_name"] bin << (RbConfig::CONFIG['EXEEXT'] || '') File.join(RbConfig::CONFIG['bindir'], bin) end end def resolve_ruby_exe [:env, :engine, :name, :install_name].each do |option| next unless exe = ruby_exe_options(option) if File.file?(exe) and File.executable?(exe) exe = File.expand_path(exe) exe = exe.tr('/', '\\') if PlatformGuard.windows? flags = ENV['RUBY_FLAGS'] if flags and !flags.empty? return exe + ' ' + flags else return exe end end end raise Exception, "Unable to find a suitable ruby executable." end unless Object.const_defined?(:RUBY_EXE) and RUBY_EXE RUBY_EXE = resolve_ruby_exe end def ruby_exe(code = :not_given, opts = {}) if opts[:dir] raise "ruby_exe(..., dir: dir) is no longer supported, use Dir.chdir" end if code == :not_given return RUBY_EXE.split(' ') end env = opts[:env] || {} saved_env = {} env.each do |key, value| key = key.to_s saved_env[key] = ENV[key] if ENV.key? key ENV[key] = value end escape = opts.delete(:escape) if code and !File.exist?(code) and escape != false tmpfile = tmp("rubyexe.rb") File.open(tmpfile, "w") { |f| f.write(code) } code = tmpfile end begin platform_is_not :opal do `#{ruby_cmd(code, opts)}` end ensure saved_env.each { |key, value| ENV[key] = value } env.keys.each do |key| key = key.to_s ENV.delete key unless saved_env.key? key end File.delete tmpfile if tmpfile end end def ruby_cmd(code, opts = {}) body = code if opts[:escape] raise "escape: true is no longer supported in ruby_cmd, use ruby_exe or a fixture" end if code and !File.exist?(code) body = "-e #{code.inspect}" end [RUBY_EXE, opts[:options], body, opts[:args]].compact.join(' ') end
mit
mgusmano/ext-angular-generator
ext-angular/classic/src/app/view/inherit/ext.base.ts
738
// import { Component, ViewContainerRef, QueryList, ContentChildren } from '@angular/core'; // import { ExtGrid2 } from './ext.grid'; // @Component({ // selector: 'ext-base2', // template: '<div>ext-base2</div>' // }) // export class ExtBase { // // @ContentChildren(ExtBase, { read: ViewContainerRef }) ExtBaseRef: QueryList<ViewContainerRef>; // // @ContentChildren(ExtGrid2, { read: ViewContainerRef }) ExtGrid2Ref: QueryList<ViewContainerRef>; // constructor(viewContainerRef: ViewContainerRef) { // } // // ngAfterContentInit() { // // //debugger; // // //console.log(this.ExtBaseRef); // // console.log(this.ExtGrid2Ref); // // //var extBaseComponentRef : ViewContainerRef = this.ExtBaseRef.first; // // } // }
mit
rynomad/CCNx-Federated-Wiki-Prototype
client/plugins/data/data.js
3547
// Generated by CoffeeScript 1.4.0 (function() { var summary, thumbs, __hasProp = {}.hasOwnProperty; window.plugins.data = { emit: function(div, item) { $('<p />').addClass('readout').appendTo(div).text(summary(item)); return $('<p />').addClass('label').appendTo(div).html(wiki.resolveLinks(item.text || 'data')); }, bind: function(div, item) { var average, label, lastThumb, readout, refresh, value; lastThumb = null; div.find('.readout').mousemove(function(e) { var thumb; thumb = thumbs(item)[Math.floor(thumbs(item).length * e.offsetX / e.target.offsetWidth)]; if (thumb === lastThumb || null === (lastThumb = thumb)) { return; } refresh(thumb); return $(div).trigger('thumb', thumb); }).dblclick(function(e) { return wiki.dialog("JSON for " + item.text, $('<pre/>').text(JSON.stringify(item, null, 2))); }); div.find('.label').dblclick(function() { return wiki.textEditor(div, item); }); $(".main").on('thumb', function(evt, thumb) { if (!(thumb === lastThumb || -1 === (thumbs(item).indexOf(thumb)))) { return refresh(thumb); } }); value = function(obj) { if (obj == null) { return NaN; } switch (obj.constructor) { case Number: return obj; case String: return +obj; case Array: return value(obj[0]); case Object: return value(obj.value); case Function: return obj(); default: return NaN; } }; average = function(thumb) { var result, values; values = _.map(item.data, function(obj) { return value(obj[thumb]); }); values = _.reject(values, function(obj) { return isNaN(obj); }); result = _.reduce(values, (function(m, n) { return m + n; }), 0) / values.length; return result.toFixed(2); }; readout = function(thumb) { var field; if (item.columns != null) { return average(thumb); } if (item.data.object == null) { return summary(item); } field = item.data[thumb]; if (field.value != null) { return "" + field.value; } if (field.constructor === Number) { return "" + (field.toFixed(2)); } return NaN; }; label = function(thumb) { if ((item.columns != null) && item.data.length > 1) { return "Averaged:<br>" + thumb; } return thumb; }; return refresh = function(thumb) { div.find('.readout').text(readout(thumb)); return div.find('.label').html(label(thumb)); }; } }; summary = function(item) { if (item.columns != null) { return "" + item.data.length + "x" + item.columns.length; } if ((item.data != null) && (item.data.nodes != null) && (item.data.links != null)) { return "" + item.data.nodes.length + "/" + item.data.links.length; } return "1x" + (thumbs(item).length); return "data"; }; thumbs = function(item) { var key, _ref, _results; if (item.columns != null) { return item.columns; } _ref = item.data; _results = []; for (key in _ref) { if (!__hasProp.call(_ref, key)) continue; _results.push(key); } return _results; }; }).call(this);
mit
gilluminate/angular-filter
src/_filter/collection/join.js
445
/** * @ngdoc filter * @name join * @kind function * * @description * join a collection by a provided delimiter (space by default) */ angular.module('a8m.join', []) .filter('join', function () { return function (input, delimiter) { if (isUndefined(input) || !isArray(input)) { return input; } if (isUndefined(delimiter)) { delimiter = ' '; } return input.join(delimiter); }; }) ;
mit
paska27/unit-of-work
spec/Isolate/UnitOfWork/Entity/Identifier/EntityIdentifierSpec.php
3064
<?php namespace spec\Isolate\UnitOfWork\Entity\Identifier; use Isolate\UnitOfWork\Entity\ClassName; use Isolate\UnitOfWork\Entity\Definition; use Isolate\UnitOfWork\Exception\NotExistingPropertyException; use Isolate\UnitOfWork\Exception\RuntimeException; use Isolate\UnitOfWork\Tests\Double\EntityFake; use PhpSpec\ObjectBehavior; use Prophecy\Argument; class EntityIdentifierSpec extends ObjectBehavior { function let(Definition\Repository $definitions) { $definitions->hasDefinition(Argument::type('stdClass'))->willReturn(false); $this->beConstructedWith($definitions); } function it_is_identifier() { $this->shouldImplement("Isolate\\UnitOfWork\\Entity\\Identifier"); } function it_throw_exception_during_verification_of_non_defined_entity() { $this->shouldThrow(new RuntimeException("Class \"stdClass\" does not have definition.")) ->during("isPersisted", [new \stdClass()]); } function it_throw_exception_during_identification_of_non_defined_entity() { $this->shouldThrow(new RuntimeException("Class \"stdClass\" does not have definition.")) ->during("getIdentity", [new \stdClass()]); } function it_use_entity_definition_to_tells_if_entity_was_persisted(Definition\Repository $definitions, Definition\IdentificationStrategy $identificationStrategy) { $entity = new EntityFake(1); $identificationStrategy->isIdentified($entity)->willReturn(true); $definitions->hasDefinition($entity)->willReturn(true); $definitions->getDefinition($entity)->willReturn( new Definition(new ClassName(EntityFake::getClassName()),new Definition\Identity("id"), $identificationStrategy->getWrappedObject()) ); $this->isPersisted($entity)->shouldReturn(true); } function it_throws_exception_during_persist_check_when_property_does_not_exists(Definition\Repository $definitions) { $entity = new EntityFake(); $definitions->hasDefinition($entity)->willReturn(true); $definitions->getDefinition($entity)->willReturn( new Definition(new ClassName(EntityFake::getClassName()),new Definition\Identity("not_exists")) ); $this->shouldThrow( new NotExistingPropertyException("Property \"not_exists\" does not exists in \"Isolate\\UnitOfWork\\Tests\\Double\\EntityFake\" class.") )->during("isPersisted", [$entity]); } function it_gets_identity_from_entity(Definition\Repository $definitions, Definition\IdentificationStrategy $identificationStrategy) { $entity = new EntityFake(1); $identificationStrategy->getIdentity($entity)->willReturn(1); $definitions->hasDefinition($entity)->willReturn(true); $definitions->getDefinition($entity)->willReturn( new Definition(new ClassName(EntityFake::getClassName()),new Definition\Identity("id"), $identificationStrategy->getWrappedObject()) ); $this->getIdentity($entity)->shouldReturn(1); } }
mit
blakek/my-files
bin/bootswatch-download.js
1116
var fs = require('fs'), http = require('http'), BOOTSWATCH_API_URL = 'http://api.bootswatch.com/3/', verbose = false; function getThemeList (on_complete) { var response_data = ''; var request = http.get(BOOTSWATCH_API_URL, function (res) { if (verbose) console.log('API_STATUS: ' + res.statusCode); res.on('data', function (chunk) { response_data += chunk; }); res.on('end', function () { on_complete(response_data); }); }); } var path = ''; if (process.argv.length !== 3 || process.argv[2] === '-h' || process.argv[2] === '--help') { console.log('Usage: node bootswatch-download.js path_to_directory\n Where path_to_directory is a directory to place Bootswatch CSS files.'); process.exit(0); } else { path = process.argv[2]; } getThemeList(function (response) { var themes = JSON.parse(response).themes; themes.forEach(function (theme) { var fname = theme.name.toLowerCase() + '.min.css'; var fstream = fs.createWriteStream(path + '/' + fname); if (verbose) console.log(fname); http.get(theme.cssMin, function (res) { res.pipe(fstream); }); }); });
mit
samwisehawkins/wrftools
wrftools/commentedfile.py
669
class CommentedFile: def __init__(self, f, commentstring="#"): self.f = f self.commentstring = commentstring def _skip(self, line): skip = line.startswith(self.commentstring) or line.isspace() return skip def _detrail(self, line): return line.split(self.commentstring)[0] def next(self): line = self.f.next() while self._skip(line): line = self.f.next() return self._detrail(line) def readlines(self): lines = [ self._detrail(l) for l in self.f.readlines() if not self._skip(l)] return lines def __iter__(self): return self
mit
Bhavdip/SparkleMotion
demo/src/main/java/com/ifttt/sparklemotiondemo/ScaleViewPagerActivity.java
923
package com.ifttt.sparklemotiondemo; import android.app.Activity; import android.os.Bundle; import android.support.v4.view.ViewPager; import com.ifttt.sparklemotion.Page; import com.ifttt.sparklemotion.SparkleMotion; import com.ifttt.sparklemotion.animations.ScaleAnimation; /** * Demo Activity for {@link ScaleAnimation}. */ public final class ScaleViewPagerActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.single_view_pager_layout); ViewPager viewPager = (ViewPager) findViewById(R.id.view_pager); viewPager.setAdapter(new PagerAdapter()); ScaleAnimation scaleAnimation = new ScaleAnimation(Page.allPages(), 1f, 1f, 0.3f, 0.3f); SparkleMotion.with(viewPager) // .animate(scaleAnimation) // .on(R.id.pic_img_view); } }
mit
clagraff/parg
doc.go
2724
// Package argparse is a Golang command line argument parsing library, taking heavy influance from Python's argparse module. // // Using argparse, it is possible to easily create command-line interfaces, such // as: // // > exc --help // // usage: main [-h] [-v] [-e] [-x ...] [-n] [-f] [-k] [p PATTERN] [s SPLIT] [c CHAR] // // Construct and execute arguments from Stdin // // positional arguments: // [p PATTERN] Stdin regex grouping pattern // [s SPLIT] Delimiting regex for Stdin // [c CHAR] Replacement string for argument parsing // // optional arguments: // -h, --help Show program help // -v, --version Show program version // -e, --empty Allow empty text // -x, --exec Pasrable command string // -n, --dry-run Output commands instead of executing // -f, --force Force continue command execution upon errored commands // -k, --keep-newline Allow trailing newline from Stdin // // Much of the heavy lifting for creating a cmd-line interface is managed by argparse, // so you can focus on getting your program created and running. // // For example, the code required to create the above interface is as follows: // // import ( // "github.com/clagraff/argparse" // ) // // func main() { // p := argparse.NewParser("Construct and execute arguments from Stdin").Version("0.0.0") // p.AddHelp().AddVersion() // Enable `--help` & `-h` to display usage text to the user. // // pattern := argparse.NewArg("p pattern", "pattern", "Stdin regex grouping pattern").Default(".*") // split := argparse.NewArg("s split", "split", "Delimiting regex for Stdin").Default("\n") // nonEmpty := argparse.NewOption("e empty", "empty", "Allow empty text") // keepNewline := argparse.NewFlag("k keep-newline", "keep-newline", "Allow trailing newline from Stdin").Default("false") // command := argparse.NewOption("x exec", "exec", "Pasrable command string").Nargs("r").Action(argparse.Store) // replacementChar := argparse.NewArg("c char", "char", "Replacement string for argument parsing").Default("%") // dryRun := argparse.NewFlag("n dry-run", "dry", "Output commands instead of executing") // ignoreErrors := argparse.NewFlag("f force", "force", "Force continue command execution upon errored commands") // // p.AddOptions(pattern, split, nonEmpty, command, replacementChar, dryRun, ignoreErrors, keepNewline) // // ns, _, err := p.Parse(os.Args[1:]...) // switch err.(type) { // case argparse.ShowHelpErr: // return // case error: // fmt.Println(err, "\n") // p.ShowHelp() // return // } // // // To get started, all you need is a Parser and a few Options! package argparse
mit
metamx/d8a-conjure
src/main/java/io/d8a/conjure/IntSpec.java
563
package io.d8a.conjure; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; public class IntSpec extends Spec{ @JsonCreator public IntSpec( @JsonProperty("count") int count, @JsonProperty("cardinality") int cardinality, @JsonProperty("name") String name ){ super(count, cardinality, name); } @Override public CardinalityNode createNewNode(String name, int cardinality){ return new IntCardinalityNode(name, cardinality); } }
mit
fredericjoanis/actimania
src/server/src/main/java/com/backend/models/Competition.java
3894
package com.backend.models; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import org.bson.types.ObjectId; import com.fasterxml.jackson.annotation.JsonProperty; import com.framework.helpers.Database; import com.framework.models.Essentials; public class Competition { public final ObjectId _id; public final ArrayList<SchoolInteger> kiosk; public final ArrayList<SchoolInteger> programming; public final ArrayList<SchoolInteger> robotConstruction; public final ArrayList<SchoolInteger> robotDesign; public final ArrayList<SchoolInteger> sportsmanship; public final ArrayList<SchoolInteger> video; public final ArrayList<SchoolInteger> websiteDesign; public final ArrayList<SchoolInteger> websiteJournalism; public Competition( @JsonProperty("_id") ObjectId _competitionId, @JsonProperty("kiosk") ArrayList<SchoolInteger> _kiosk, @JsonProperty("programming") ArrayList<SchoolInteger> _programming, @JsonProperty("robotConstruction") ArrayList<SchoolInteger> _robotConstruction, @JsonProperty("robotDesign") ArrayList<SchoolInteger> _robotDesign, @JsonProperty("sportsmanship") ArrayList<SchoolInteger> _sportsmanship, @JsonProperty("video") ArrayList<SchoolInteger> _video, @JsonProperty("websiteDesign") ArrayList<SchoolInteger> _websiteDesign, @JsonProperty("websiteJournalism") ArrayList<SchoolInteger> _websiteJournalism ) { _id = _competitionId; kiosk = _kiosk; programming = _programming; robotConstruction = _robotConstruction; robotDesign = _robotDesign; sportsmanship = _sportsmanship; video = _video; websiteDesign = _websiteDesign; websiteJournalism = _websiteJournalism; } private static int getAspectPoints(ArrayList<SchoolInteger> aspect, School school) { int indexOf = aspect.indexOf(school); if(indexOf == -1) { return 0; } return aspect.size() - indexOf + 1; } public static int getSchoolInteger(ArrayList<SchoolInteger> schoolIntegerList, School school) { return schoolIntegerList.get(schoolIntegerList.indexOf(school)).integer; } public static int getAspectPointInteger(ArrayList<SchoolInteger> schoolIntegerList, School school) { int intValue = schoolIntegerList.get(schoolIntegerList.indexOf(school)).integer; if(intValue == 0) { return 0; } return schoolIntegerList.size() - intValue + 1; } public int getSchoolScore(ArrayList<SchoolInteger> playoffRanking, School school) { int score = getAspectPoints(playoffRanking, school) * 2; score += getAspectPointInteger(robotDesign, school); score += getAspectPointInteger(robotConstruction, school); score += getAspectPointInteger(video, school); score += getAspectPointInteger(websiteDesign, school); score += getAspectPointInteger(websiteJournalism, school); score += getAspectPointInteger(kiosk, school); score += getAspectPointInteger(sportsmanship, school); score += getAspectPointInteger(programming, school); return score; } public ArrayList<SchoolInteger> getCompetitionRanking(Essentials essentials) { ArrayList<SchoolInteger> schoolsRanking = new ArrayList<SchoolInteger>(); Tournament tournament = Tournament.getTournament(essentials); ArrayList<SchoolInteger> playoffRanking = tournament.getPlayoffRanking(); for(School school : School.getSchools(essentials)) { schoolsRanking.add(new SchoolInteger(school, getSchoolScore(playoffRanking, school))); } Collections.sort(schoolsRanking, new Comparator<SchoolInteger>() { @Override public int compare(SchoolInteger school1, SchoolInteger school2) { return school2.integer - school1.integer; } }); return schoolsRanking; } public static Competition get(Database database) { return database.findOne(Competition.class, "{ }"); } }
mit
JoshuaBradley/Dnn.Platform
DNN Platform/Library/Services/Installer/Log/Logger.cs
10901
#region Copyright // // DotNetNuke® - http://www.dotnetnuke.com // Copyright (c) 2002-2014 // by DotNetNuke Corporation // // Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated // documentation files (the "Software"), to deal in the Software without restriction, including without limitation // the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and // to permit persons to whom the Software is furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all copies or substantial portions // of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED // TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF // CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. #endregion #region Usings using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Web.UI.HtmlControls; using DotNetNuke.Common.Utilities; using DotNetNuke.Instrumentation; #endregion namespace DotNetNuke.Services.Installer.Log { /// ----------------------------------------------------------------------------- /// <summary> /// The Logger class provides an Installer Log /// </summary> /// <remarks> /// </remarks> /// ----------------------------------------------------------------------------- public class Logger { private static readonly ILog DnnLogger = LoggerSource.Instance.GetLogger(typeof (Logger)); private readonly IList<LogEntry> _logs; private string _errorClass; private bool _hasWarnings; private string _highlightClass; private string _normalClass; private bool _valid; public Logger() { _logs = new LoggedCollection(); _valid = true; _hasWarnings = Null.NullBoolean; } /// ----------------------------------------------------------------------------- /// <summary> /// Gets and sets the Css Class used for Error Log Entries /// </summary> /// <value>A String</value> /// ----------------------------------------------------------------------------- public string ErrorClass { get { if (String.IsNullOrEmpty(_errorClass)) { _errorClass = "NormalRed"; } return _errorClass; } set { _errorClass = value; } } public bool HasWarnings { get { return _hasWarnings; } } /// ----------------------------------------------------------------------------- /// <summary> /// Gets and sets the Css Class used for Log Entries that should be highlighted /// </summary> /// <value>A String</value> /// ----------------------------------------------------------------------------- public string HighlightClass { get { if (String.IsNullOrEmpty(_highlightClass)) { _highlightClass = "NormalBold"; } return _highlightClass; } set { _highlightClass = value; } } /// ----------------------------------------------------------------------------- /// <summary> /// Gets a List of Log Entries /// </summary> /// <value>A List of LogEntrys</value> /// ----------------------------------------------------------------------------- public IList<LogEntry> Logs { get { return _logs; } } /// ----------------------------------------------------------------------------- /// <summary> /// Gets and sets the Css Class used for normal Log Entries /// </summary> /// <value>A String</value> /// ----------------------------------------------------------------------------- public string NormalClass { get { if (String.IsNullOrEmpty(_normalClass)) { _normalClass = "Normal"; } return _normalClass; } set { _normalClass = value; } } /// ----------------------------------------------------------------------------- /// <summary> /// Gets a Flag that indicates whether the Installation was Valid /// </summary> /// <value>A List of LogEntrys</value> /// ----------------------------------------------------------------------------- public bool Valid { get { return _valid; } } /// ----------------------------------------------------------------------------- /// <summary> /// The AddFailure method adds a new LogEntry of type Failure to the Logs collection /// </summary> /// <remarks>This method also sets the Valid flag to false</remarks> /// <param name="failure">The description of the LogEntry</param> /// ----------------------------------------------------------------------------- public void AddFailure(string failure) { _logs.Add(new LogEntry(LogType.Failure, failure)); _valid = false; } public void AddFailure(Exception ex) { AddFailure((Util.EXCEPTION + ex)); Exceptions.Exceptions.LogException(ex); } /// ----------------------------------------------------------------------------- /// <summary> /// The AddInfo method adds a new LogEntry of type Info to the Logs collection /// </summary> /// <param name="info">The description of the LogEntry</param> /// ----------------------------------------------------------------------------- public void AddInfo(string info) { _logs.Add(new LogEntry(LogType.Info, info)); DnnLogger.Info(info); } /// ----------------------------------------------------------------------------- /// <summary> /// The AddWarning method adds a new LogEntry of type Warning to the Logs collection /// </summary> /// <param name="warning">The description of the LogEntry</param> /// ----------------------------------------------------------------------------- public void AddWarning(string warning) { _logs.Add(new LogEntry(LogType.Warning, warning)); DnnLogger.Warn(warning); _hasWarnings = true; } /// ----------------------------------------------------------------------------- /// <summary> /// The EndJob method adds a new LogEntry of type EndJob to the Logs collection /// </summary> /// <param name="job">The description of the LogEntry</param> /// ----------------------------------------------------------------------------- public void EndJob(string job) { _logs.Add(new LogEntry(LogType.EndJob, job)); } /// ----------------------------------------------------------------------------- /// <summary> /// GetLogsTable formats log entries in an HtmlTable /// </summary> /// ----------------------------------------------------------------------------- public HtmlTable GetLogsTable() { var arrayTable = new HtmlTable(); foreach (LogEntry entry in Logs) { var tr = new HtmlTableRow(); var tdType = new HtmlTableCell(); tdType.InnerText = Util.GetLocalizedString("LOG.PALogger." + entry.Type); var tdDescription = new HtmlTableCell(); tdDescription.InnerText = entry.Description; tr.Cells.Add(tdType); tr.Cells.Add(tdDescription); switch (entry.Type) { case LogType.Failure: case LogType.Warning: tdType.Attributes.Add("class", ErrorClass); tdDescription.Attributes.Add("class", ErrorClass); break; case LogType.StartJob: case LogType.EndJob: tdType.Attributes.Add("class", HighlightClass); tdDescription.Attributes.Add("class", HighlightClass); break; case LogType.Info: tdType.Attributes.Add("class", NormalClass); tdDescription.Attributes.Add("class", NormalClass); break; } arrayTable.Rows.Add(tr); if (entry.Type == LogType.EndJob) { var spaceTR = new HtmlTableRow(); spaceTR.Cells.Add(new HtmlTableCell {ColSpan = 2, InnerHtml = "&nbsp;"}); arrayTable.Rows.Add(spaceTR); } } return arrayTable; } public void ResetFlags() { _valid = true; } /// ----------------------------------------------------------------------------- /// <summary> /// The StartJob method adds a new LogEntry of type StartJob to the Logs collection /// </summary> /// <param name="job">The description of the LogEntry</param> /// ----------------------------------------------------------------------------- public void StartJob(string job) { _logs.Add(new LogEntry(LogType.StartJob, job)); } class LoggedCollection : Collection<LogEntry> { protected override void InsertItem(int index, LogEntry item) { DnnLogger.Debug(item.ToString()); base.InsertItem(index, item); } protected override void SetItem(int index, LogEntry item) { DnnLogger.Debug(item.ToString()); base.InsertItem(index, item); } } } }
mit
yuokada/httploop
signal.go
288
package main import ( "os" "syscall" ) var ( sigChan = make(chan os.Signal, 1) exitChan = make(chan int, 1) ) func signalHandler() { for { s := <-sigChan switch s { // kill -SIGHUP XXXX case syscall.SIGINT: fallthrough case syscall.SIGHUP: exitChan <- 0 } } }
mit
jongerrish/robolectric
shadows/framework/src/main/java/org/robolectric/shadows/ShadowAsyncTaskLoader.java
1517
package org.robolectric.shadows; import android.content.AsyncTaskLoader; import android.content.Context; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.FutureTask; import org.robolectric.annotation.Implementation; import org.robolectric.annotation.Implements; import org.robolectric.annotation.RealObject; @Implements(AsyncTaskLoader.class) public class ShadowAsyncTaskLoader<D> { @RealObject private AsyncTaskLoader<D> realObject; private BackgroundWorker worker; @Implementation protected void __constructor__(Context context) { worker = new BackgroundWorker(); } @Implementation protected void onForceLoad() { FutureTask<D> future = new FutureTask<D>(worker) { @Override protected void done() { try { final D result = get(); ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() { @Override public void run() { realObject.deliverResult(result); } }); } catch (InterruptedException e) { // Ignore } catch (ExecutionException e) { throw new RuntimeException(e.getCause()); } } }; ShadowApplication.getInstance().getBackgroundThreadScheduler().post(future); } private final class BackgroundWorker implements Callable<D> { @Override public D call() throws Exception { return realObject.loadInBackground(); } } }
mit
meanie/boilerplate-server
app/components/user/avatar.ctrl.js
1447
'use strict'; /** * Avatar controller */ module.exports = { /** * Save avatar */ save(req, res, next) { //Get user and uploaded file const user = req.user; const file = req.file; //Save file data user.avatar = file; //Save user user.save() .then(user => user.avatar) .then(avatar => avatar.toJSON()) .then(avatar => res.json({avatar})) .catch(next); }, /** * Delete avatar */ delete(req, res, next) { //Get user and remove file data const user = req.user; user.avatar = null; //Save user.save() .then(() => res.status(200).send()) .catch(next); }, /************************************************************************** * Middleware ***/ /** * Configure file handler */ configure(req, res, next) { //Get user const user = req.user; //Get configuration const BUCKET = req.app.locals.GCLOUD_BUCKET_CONTENT; const MAX_FILE_SIZE = req.app.locals.USER_AVATAR_MAX_FILE_SIZE; const MIME_TYPES = ['image/jpeg', 'image/jpg', 'image/png', 'image/gif']; //Configure file handling req.fileConfig = { existing: user.avatar, bucket: BUCKET, field: 'avatar', folder: 'avatars', name: user._id.toString(), timestamp: true, maxFileSize: MAX_FILE_SIZE, mimeTypes: MIME_TYPES, }; //Continue with next middleware next(); }, };
mit
darshanhs90/Java-InterviewPrep
src/Mar2021Leetcode/_0056MergeIntervals.java
1643
package Mar2021Leetcode; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.List; public class _0056MergeIntervals { public static void main(String[] args) { System.out.println(merge( new int[][] { new int[] { 1, 3 }, new int[] { 2, 6 }, new int[] { 8, 10 }, new int[] { 15, 18 } })); System.out.println(merge(new int[][] { new int[] { 1, 4 }, new int[] { 4, 5 } })); System.out.println(merge( new int[][] { new int[] { 1, 3 }, new int[] { 2, 9 }, new int[] { 8, 15 }, new int[] { 15, 18 } })); System.out.println(merge( new int[][] { new int[] { 1, 20 }, new int[] { 2, 9 }, new int[] { 8, 15 }, new int[] { 15, 18 } })); } public static int[][] merge(int[][] intervals) { if (intervals == null || intervals.length < 1) return intervals; Arrays.sort(intervals, new Comparator<int[]>() { @Override public int compare(int[] o1, int[] o2) { // TODO Auto-generated method stub return o1[0] - o2[0]; } }); int prevStart = intervals[0][0]; int prevEnd = intervals[0][1]; List<int[]> output = new ArrayList<int[]>(); for (int i = 1; i < intervals.length; i++) { int currStart = intervals[i][0]; int currEnd = intervals[i][1]; if (currStart >= prevStart && currStart <= prevEnd) { prevEnd = Math.max(currEnd, prevEnd); } else { output.add(new int[] { prevStart, prevEnd }); prevStart = currStart; prevEnd = currEnd; } } output.add(new int[] { prevStart, prevEnd }); int[][] out = new int[output.size()][2]; for (int i = 0; i < out.length; i++) { out[i] = output.get(i); } return out; } }
mit
retrohacker/jsBeowulfServer
filesystem.go
1752
package main import( "fmt" "io/ioutil" "os" "github.com/Crackerz/fsUtils" ) func initFileSystem(folder string) { fmt.Printf("Configuring Directory \"%s/\"...\n",folder) dir,err:=ioutil.ReadDir(folder) if err!=nil { panic("Directory Not Found Error: "+err.Error()) } dirNames:=[]string{pendingDir,processingDir,completedDir,resultsDir} dirFound:=[]bool{false,false,false,false} for _,file := range dir { for i,name := range dirNames { if file.Name()==name&&file.IsDir() { fmt.Printf("Found %s...\n",name) dirFound[i]=true } } } var permissions os.FileMode permissions = os.ModeDir | os.ModePerm for i,file := range dirNames { if !dirFound[i] { fmt.Printf("Creating %s...\n",file) os.Mkdir(folder+"/"+file,permissions) } } } func SetRootDir(folder string) { Server.RootDir = folder slash := folder+"/" initFileSystem(folder) SetProgram(slash+program) //Begin Monitoring for Changes var monitor fsUtils.Monitor go monitor.Directory(slash+pendingDir,fileAdd,nil) } func fileAdd(filename string) { fmt.Println("Detected new file: "+filename) Server.pendingJobs <-filename } func markProcessing(filename string) { src:=Server.RootDir+"/"+pendingDir+"/"+filename dst:=Server.RootDir+"/"+processingDir+"/"+filename fmt.Println("Moving from: ",src," to ",dst) err:=os.Rename(src,dst) if err!=nil { fmt.Println(err.Error()) } } func markComplete(filename string, result []byte) { src:=Server.RootDir+"/"+processingDir+"/"+filename dst:=Server.RootDir+"/"+completedDir+"/"+filename fmt.Println("Moving from: ",src," to ",dst) err:=os.Rename(src,dst) if err!=nil { fmt.Println(err.Error()) } out:=Server.RootDir+"/"+resultsDir+"/"+filename ioutil.WriteFile(out,result,os.ModePerm) }
mit
navalev/azure-sdk-for-java
sdk/eventgrid/mgmt-v2020_01_01_preview/src/main/java/com/microsoft/azure/management/eventgrid/v2020_01_01_preview/implementation/OperationsInner.java
6187
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.eventgrid.v2020_01_01_preview.implementation; import retrofit2.Retrofit; import com.google.common.reflect.TypeToken; import com.microsoft.azure.CloudException; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import com.microsoft.rest.ServiceResponse; import java.io.IOException; import java.util.List; import okhttp3.ResponseBody; import retrofit2.http.GET; import retrofit2.http.Header; import retrofit2.http.Headers; import retrofit2.http.Query; import retrofit2.Response; import rx.functions.Func1; import rx.Observable; /** * An instance of this class provides access to all the operations defined * in Operations. */ public class OperationsInner { /** The Retrofit service to perform REST calls. */ private OperationsService service; /** The service client containing this operation class. */ private EventGridManagementClientImpl client; /** * Initializes an instance of OperationsInner. * * @param retrofit the Retrofit instance built from a Retrofit Builder. * @param client the instance of the service client containing this operation class. */ public OperationsInner(Retrofit retrofit, EventGridManagementClientImpl client) { this.service = retrofit.create(OperationsService.class); this.client = client; } /** * The interface defining all the services for Operations to be * used by Retrofit to perform actually REST calls. */ interface OperationsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.eventgrid.v2020_01_01_preview.Operations list" }) @GET("providers/Microsoft.EventGrid/operations") Observable<Response<ResponseBody>> list(@Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); } /** * List available operations. * List the available operations supported by the Microsoft.EventGrid resource provider. * * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the List&lt;OperationInner&gt; object if successful. */ public List<OperationInner> list() { return listWithServiceResponseAsync().toBlocking().single().body(); } /** * List available operations. * List the available operations supported by the Microsoft.EventGrid resource provider. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ public ServiceFuture<List<OperationInner>> listAsync(final ServiceCallback<List<OperationInner>> serviceCallback) { return ServiceFuture.fromResponse(listWithServiceResponseAsync(), serviceCallback); } /** * List available operations. * List the available operations supported by the Microsoft.EventGrid resource provider. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List&lt;OperationInner&gt; object */ public Observable<List<OperationInner>> listAsync() { return listWithServiceResponseAsync().map(new Func1<ServiceResponse<List<OperationInner>>, List<OperationInner>>() { @Override public List<OperationInner> call(ServiceResponse<List<OperationInner>> response) { return response.body(); } }); } /** * List available operations. * List the available operations supported by the Microsoft.EventGrid resource provider. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the List&lt;OperationInner&gt; object */ public Observable<ServiceResponse<List<OperationInner>>> listWithServiceResponseAsync() { if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } return service.list(this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<List<OperationInner>>>>() { @Override public Observable<ServiceResponse<List<OperationInner>>> call(Response<ResponseBody> response) { try { ServiceResponse<PageImpl1<OperationInner>> result = listDelegate(response); List<OperationInner> items = null; if (result.body() != null) { items = result.body().items(); } ServiceResponse<List<OperationInner>> clientResponse = new ServiceResponse<List<OperationInner>>(items, result.response()); return Observable.just(clientResponse); } catch (Throwable t) { return Observable.error(t); } } }); } private ServiceResponse<PageImpl1<OperationInner>> listDelegate(Response<ResponseBody> response) throws CloudException, IOException, IllegalArgumentException { return this.client.restClient().responseBuilderFactory().<PageImpl1<OperationInner>, CloudException>newInstance(this.client.serializerAdapter()) .register(200, new TypeToken<PageImpl1<OperationInner>>() { }.getType()) .registerError(CloudException.class) .build(response); } }
mit
densylkin/SimpleLocalization
SimpleLocalization/Editor/Helpers/CSVHelper.cs
3096
using System; using UnityEngine; using System.Collections; using System.IO; using CsvHelper; using SimpleLocalization.Core; using System.Linq; namespace SimpleLocalization.Helpers { public static class CSVHelper { public static ILocalizationData<string> Import(string path) { var temp = new LocalizationData<string>(); using (var reader = new StreamReader(path)) { using (var csv = new CsvParser(reader)) { while (true) { var row = csv.Read(); var currentKey = ""; if (row == null) break; if (csv.Row == 1) { foreach (var s in row) { if (string.IsNullOrEmpty(s)) continue; var lang = (SystemLanguage) Enum.Parse(typeof (SystemLanguage), s); temp.AddLanguage(lang); } } else { if (row == null) break; for (var i = 0; i < row.Length; i++) { var s = row[i]; if (i == 0) { currentKey = s; temp.AddKey(currentKey); continue; } temp[temp.Languages[i - 1], currentKey] = s; } } if (row == null || row.Length == 0) break; } } } return temp; } public static void Export(this ILocalizationData data, string path) { if(data.DataType != typeof(string)) return; using (var stream = new StreamWriter(path)) { using (var writer = new CsvWriter(new CsvSerializer(stream))) { writer.WriteField(""); foreach (var language in data.Languages) { writer.WriteField(language.ToString()); } writer.NextRecord(); foreach (var key in data.Keys) { writer.WriteField(key); foreach (var language in data.Languages) { writer.WriteField((string)data.GetTranslation(language, key)); } writer.NextRecord(); } } } } } }
mit
Shtian/transmissionFrontend
jspm_packages/github/aurelia/dependency-injection@0.4.2.js
206
System.register(["github:aurelia/dependency-injection@0.4.2/system/index"], function($__export) { return { setters: [function(m) { for (var p in m) $__export(p, m[p]); }], execute: function() {} }; });
mit
alecw/picard
src/test/java/picard/sam/markduplicates/UmiAwareMarkDuplicatesWithMateCigarTest.java
30939
/* * The MIT License * * Copyright (c) 2017 The Broad Institute * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ package picard.sam.markduplicates; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import htsjdk.samtools.util.QualityUtil; import picard.PicardException; import java.util.*; /** * This class defines the individual test cases to run. The actual running of the test is done * by UmiAwareMarkDuplicatesWithMateCigarTester (see getTester). * * @author fleharty */ public class UmiAwareMarkDuplicatesWithMateCigarTest extends SimpleMarkDuplicatesWithMateCigarTest { @Override protected UmiAwareMarkDuplicatesWithMateCigarTester getTester() { return new UmiAwareMarkDuplicatesWithMateCigarTester(); } protected UmiAwareMarkDuplicatesWithMateCigarTester getTester(final boolean allowMissingUmis) { return new UmiAwareMarkDuplicatesWithMateCigarTester(allowMissingUmis); } @DataProvider(name = "testUmiSetsDataProvider") private Object[][] testUmiSetsDataProvider() { return new Object[][]{{ // Test basic error correction using edit distance of 1 Arrays.asList("AAAA", "AAAA", "ATTA", "AAAA", "AAAT"), // Observed UMI Arrays.asList("AAAA", "AAAA", "ATTA", "AAAA", "AAAA"), // Expected inferred UMI Arrays.asList(false, true, false, true, true), // Should it be marked as duplicate? 1 // Edit Distance to Join }, { // Test basic error correction using edit distance of 2 Arrays.asList("AAAA", "AAAA", "ATTA", "AAAA", "AAAT"), Arrays.asList("AAAA", "AAAA", "AAAA", "AAAA", "AAAA"), Arrays.asList(false, true, true, true, true), 2 }, { // Test basic error correction using edit distance of 1 where UMIs // form a chain in edit distance space so that a UMI with large // edit distance will get error corrected to a distant but linked (in edit space) UMI Arrays.asList("AAAA", "AAAA", "AAAT", "AAGT", "ACGT", "TCGT", "CCCC"), Arrays.asList("AAAA", "AAAA", "AAAA", "AAAA", "AAAA", "AAAA", "CCCC"), Arrays.asList(false, true, true, true, true, true, false), 1 }, { // Test short UMIs Arrays.asList("A", "A", "T", "G", "G", "C", "C", "A"), Arrays.asList("A", "A", "A", "A", "A", "A", "A", "A"), // All UMIs should get corrected to A Arrays.asList(false, true, true, true, true, true, true, true), // All mate pairs should be duplicates except the first 1 }, { // Test short UMIs with no allowance for errors Arrays.asList("A", "A", "T", "G", "G", "C", "C", "A"), Arrays.asList("A", "A", "T", "G", "G", "C", "C", "A"), // No UMIs should get corrected Arrays.asList(false, true, false, false, true, false, true, true), // Only exactly duplicated UMIs will give rise to a new duplicate set 0 }, { // Test longish UMIs with relatively large allowance for error // UMIs "TTGACATCCA", "ATGCCATCGA", "AAGTCACCGT" should belong to the same duplicate set since // they are within edit distance of 4 of each other. TTGACATCCA should be chosen as the inferred // UMI even though it only occurs once. Since all UMIs only occur once, we choose the UMI that // is not marked as duplicate to be the inferred UMI. Arrays.asList("TTGACATCCA", "ATGCCATCGA", "AAGTCACCGT"), Arrays.asList("TTGACATCCA", "TTGACATCCA", "TTGACATCCA"), // All UMIs should get corrected to TTGACATCCA Arrays.asList(false, true, true), // All mate pairs should be duplicates except the first 4 }, { // Test that the inferred UMI is correct with N Arrays.asList("AAAN", "AANN"), Arrays.asList("AAAN", "AAAN"), // Only N containing UMI Arrays.asList(false, true), // All mate pairs should be duplicates except the first 1 }, { // Test that the majority with no Ns wins Arrays.asList("AAAN", "AAAN", "AAAA", "AAAA", "AAAN"), Arrays.asList("AAAA", "AAAA", "AAAA", "AAAA", "AAAA"), // Even though AAAN is majority, AAAA is represented Arrays.asList(false, true, true, true, true), // All mate pairs should be duplicates except the first 1 }, { // Test that the majority with the fewest N wins when both have Ns Arrays.asList("AAAN", "AAAN", "AANN", "AANN", "AANN"), Arrays.asList("AAAN", "AAAN", "AAAN", "AAAN", "AAAN"), // Even though AANN is majority, AAAN is represented Arrays.asList(false, true, true, true, true, true), // All mate pairs should be duplicates except the first 1 }}; } @DataProvider(name = "testBadUmiSetsDataProvider") private Object[][] testBadUmiSetsDataProvider() { return new Object[][]{{ // The code should not support variable length UMIs, if we observe variable length UMIs // ensure that an exception is thrown. Arrays.asList("AAAA", "A"), Arrays.asList("AAAA", "A"), Arrays.asList(false, false), 4 }, { // The code should not support variable length UMIs, if we observe variable length UMIs // ensure that an exception is thrown. // Arrays.asList(new String[] {"T", "GG"}), Arrays.asList("T", "GG"), Arrays.asList("T", "GG"), Arrays.asList(false, false), 1 }, { // Test to make sure that we throw an exception with missing UMIs when allowMissingUmis is false // This throws an exception because the UMIs have differing lengths. Arrays.asList("TTGA", "TTAT", null), Arrays.asList("TTGA", "TTAT", null), Arrays.asList(false, false, false), 4 }}; } @DataProvider(name = "testEmptyUmiDataProvider") private Object[][] testEmptyUmiDataProvider() { return new Object[][]{{ // Test to make sure we treat empty UMIs correctly when they are allowed Arrays.asList(null, null, null), Arrays.asList(null, null, null), Arrays.asList(false, true, true), 4 }}; } @Test(dataProvider = "testUmiSetsDataProvider") public void testUmi(List<String> umis, List<String> assignedUmi, final List<Boolean> isDuplicate, final int editDistanceToJoin) { UmiAwareMarkDuplicatesWithMateCigarTester tester = getTester(false); tester.addArg("MAX_EDIT_DISTANCE_TO_JOIN=" + editDistanceToJoin); tester.addArg("MOLECULAR_IDENTIFIER_TAG=MI"); final String dummyLibraryName = "A"; for (int i = 0; i < umis.size(); i++) { tester.addMatePairWithUmi(dummyLibraryName, umis.get(i), assignedUmi.get(i), isDuplicate.get(i), isDuplicate.get(i)); } tester.setExpectedAssignedUmis(assignedUmi).runTest(); } @Test(dataProvider = "testEmptyUmiDataProvider") public void testEmptyUmis(List<String> umis, List<String> assignedUmi, final List<Boolean> isDuplicate, final int editDistanceToJoin) { UmiAwareMarkDuplicatesWithMateCigarTester tester = getTester(true); tester.addArg("MAX_EDIT_DISTANCE_TO_JOIN=" + editDistanceToJoin); final String dummyLibraryName = "A"; for (int i = 0; i < umis.size(); i++) { tester.addMatePairWithUmi(dummyLibraryName, umis.get(i), assignedUmi.get(i), isDuplicate.get(i), isDuplicate.get(i)); } tester.setExpectedAssignedUmis(assignedUmi).runTest(); } @Test(dataProvider = "testBadUmiSetsDataProvider", expectedExceptions = {IllegalArgumentException.class, PicardException.class}) public void testBadUmis(List<String> umis, List<String> assignedUmi, final List<Boolean> isDuplicate, final int editDistanceToJoin) { UmiAwareMarkDuplicatesWithMateCigarTester tester = getTester(false); tester.addArg("MAX_EDIT_DISTANCE_TO_JOIN=" + editDistanceToJoin); final String dummyLibraryName = "A"; for (int i = 0; i < umis.size(); i++) { tester.addMatePairWithUmi(dummyLibraryName, umis.get(i), assignedUmi.get(i), isDuplicate.get(i), isDuplicate.get(i)); } tester.setExpectedAssignedUmis(assignedUmi).runTest(); } @DataProvider(name = "testUmiMetricsDataProvider") private Object[][] testUmiMetricsDataProvider() { // Calculate values of metrics by hand to ensure they are right // effectiveLength4_1 is the effective UMI length observing 5 UMIs where 4 are the same double effectiveLength4_1 = -(4. / 5.) * Math.log(4. / 5.) / Math.log(4.) - (1. / 5.) * Math.log(1. / 5.) / Math.log(4.); // effectiveLength3_1_1 is the effective UMI length observing 5 UMIs where 3 are the same and the other two are // unique double effectiveLength3_1_1 = -(3. / 5.) * Math.log(3. / 5.) / Math.log(4.) - 2 * (1. / 5.) * Math.log(1. / 5.) / Math.log(4.); double effectiveLength_N = -(3. / 4.) * Math.log(3. / 4.) / Math.log(4.) - (1. / 4.) * Math.log(1. / 4.) / Math.log(4.); // estimatedBaseQualityk_n is the phred scaled base quality score where k of n bases are incorrect double estimatedBaseQuality1_20 = QualityUtil.getPhredScoreFromErrorProbability(1. / 20.); double estimatedBaseQuality3_20 = QualityUtil.getPhredScoreFromErrorProbability(3. / 20.); double estimatedBaseQuality_N = QualityUtil.getPhredScoreFromErrorProbability(2. / 16.); double estimatedPercentWithN3_7 = 3. / 7.; return new Object[][]{{ // Test basic error correction using edit distance of 1 Arrays.asList("AAAA", "AAAA", "ATTA", "AAAA", "AAAT"), // Observed UMI Arrays.asList("AAAA", "AAAA", "ATTA", "AAAA", "AAAA"), // Expected inferred UMI Arrays.asList(false, true, false, true, true), // Should it be marked as duplicate? 1, // Edit Distance to Join new UmiMetrics("A", // LIBRARY 4.0, // MEAN_UMI_LENGTH 3, // OBSERVED_UNIQUE_UMIS 2, // INFERRED_UNIQUE_UMIS 2, // OBSERVED_BASE_ERRORS (Note: This is 2 rather than 1 because we are using paired end reads) 2, // DUPLICATE_SETS_IGNORING_UMI 4, // DUPLICATE_SETS_WITH_UMI effectiveLength4_1, // EFFECTIVE_LENGTH_OF_INFERRED_UMIS effectiveLength3_1_1, // EFFECTIVE_LENGTH_OF_OBSERVED_UMIS estimatedBaseQuality1_20, // ESTIMATED_BASE_QUALITY_OF_UMIS 0) // UMI_WITH_N }, { // Test basic error correction using edit distance of 2 Arrays.asList("AAAA", "AAAA", "ATTA", "AAAA", "AAAT"), Arrays.asList("AAAA", "AAAA", "AAAA", "AAAA", "AAAA"), Arrays.asList(false, true, true, true, true), 2, new UmiMetrics("A", // LIBRARY 4.0, // MEAN_UMI_LENGTH 3, // OBSERVED_UNIQUE_UMIS 1, // INFERRED_UNIQUE_UMIS 6, // OBSERVED_BASE_ERRORS 2, // DUPLICATE_SETS_IGNORING_UMI 2, // DUPLICATE_SETS_WITH_UMI 0.0, // EFFECTIVE_LENGTH_OF_INFERRED_UMIS effectiveLength3_1_1, // EFFECTIVE_LENGTH_OF_OBSERVED_UMIS estimatedBaseQuality3_20, // ESTIMATED_BASE_QUALITY_OF_UMIS 0) // UMI_WITH_N }, { // Test basic error correction using edit distance of 2 - Ns metrics should not include the umis with Ns Arrays.asList("AAAA", "AAAA", "AANA", "ANNA", "ATTA", "AAAA", "ANAT"), Arrays.asList("AAAA", "AAAA", "AAAA", "AAAA", "AAAA", "AAAA", "AAAA"), Arrays.asList(false, true, true, true, true, true, true), 2, new UmiMetrics("A", // LIBRARY 4.0, // MEAN_UMI_LENGTH 2, // OBSERVED_UNIQUE_UMIS 1, // INFERRED_UNIQUE_UMIS 4, // OBSERVED_BASE_ERRORS 2, // DUPLICATE_SETS_IGNORING_UMI 2, // DUPLICATE_SETS_WITH_UMI 0.0, // EFFECTIVE_LENGTH_OF_INFERRED_UMIS effectiveLength_N, // EFFECTIVE_LENGTH_OF_OBSERVED_UMIS estimatedBaseQuality_N, // ESTIMATED_BASE_QUALITY_OF_UMIS estimatedPercentWithN3_7) // UMI_WITH_N }, { // Test maximum entropy (EFFECTIVE_LENGTH_OF_INFERRED_UMIS) Arrays.asList("AA", "AT", "AC", "AG", "TA", "TT", "TC", "TG", "CA", "CT", "CC", "CG", "GA", "GT", "GC", "GG"), Arrays.asList("AA", "AT", "AC", "AG", "TA", "TT", "TC", "TG", "CA", "CT", "CC", "CG", "GA", "GT", "GC", "GG"), Arrays.asList(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false), 0, new UmiMetrics("A", // LIBRARY 2.0, // MEAN_UMI_LENGTH 16, // OBSERVED_UNIQUE_UMIS 16, // INFERRED_UNIQUE_UMIS 0, // OBSERVED_BASE_ERRORS 2, // DUPLICATE_SETS_IGNORING_UMI 32, // DUPLICATE_SETS_WITH_UMI 2.0, // EFFECTIVE_LENGTH_OF_INFERRED_UMIS 2, // EFFECTIVE_LENGTH_OF_OBSERVED_UMIS -1, // ESTIMATED_BASE_QUALITY_OF_UMIS 0) // UMI_WITH_N }}; } @Test(dataProvider = "testUmiMetricsDataProvider") public void testUmiMetrics(List<String> umis, List<String> assignedUmi, final List<Boolean> isDuplicate, final int editDistanceToJoin, final UmiMetrics expectedMetrics) { UmiAwareMarkDuplicatesWithMateCigarTester tester = getTester(false); tester.addArg("MAX_EDIT_DISTANCE_TO_JOIN=" + editDistanceToJoin); tester.addArg("MOLECULAR_IDENTIFIER_TAG=MI"); for (int i = 0; i < umis.size(); i++) { tester.addMatePairWithUmi("A", umis.get(i), assignedUmi.get(i), isDuplicate.get(i), isDuplicate.get(i)); } tester.setExpectedAssignedUmis(assignedUmi); tester.setExpectedMetrics(expectedMetrics); tester.runTest(); } @DataProvider(name = "testMultipleLibraryUmiMetricsDataProvider") private Object[][] testMultipleLibraryUmiMetricsDataProvider() { // The effectiveLength is the number of UMIs belonging to each group, 2_1 means there is a group of 2 that are the same, // and a group of 1 for a total of 3. 1_1_1 means there are 3 groups of 1 UMI each. final double effectiveLength2_1 = -(2. / 3.) * Math.log(2. / 3.) / Math.log(4.) - (1. / 3.) * Math.log(1. / 3.) / Math.log(4.); final double effectiveLength1_1_1 = -3 * (1. / 3.) * Math.log(1. / 3.) / Math.log(4.); final double estimatedBaseQuality1_12 = QualityUtil.getPhredScoreFromErrorProbability(1. / 12.); final double estimatedBaseQuality1_9 = QualityUtil.getPhredScoreFromErrorProbability(1. / 9.); return new Object[][]{{ // Test basic error correction using edit distance of 1 Arrays.asList("A", "B", "A", "B", "A"), // Adding reads belonging to different libraries in no particular order Arrays.asList("AAAA", "AAAA", "ATTA", "AAAA", "AAAT"), // Observed UMI Arrays.asList("AAAA", "AAAA", "ATTA", "AAAA", "AAAA"), // Inferred UMIs Arrays.asList(false, false, false, true, true), // Should it be marked as duplicate? 1, // Edit Distance to Join Arrays.asList( new UmiMetrics("A", // LIBRARY 4.0, // MEAN_UMI_LENGTH 3, // OBSERVED_UNIQUE_UMIS 2, // INFERRED_UNIQUE_UMIS 2, // OBSERVED_BASE_ERRORS (Note: This is 2 rather than 1 because we are using paired end reads) 2, // DUPLICATE_SETS_IGNORING_UMI 4, // DUPLICATE_SETS_WITH_UMI effectiveLength2_1, // INFERRED_UMI_ENTROPY effectiveLength1_1_1, // OBSERVED_UMI_ENTROPY estimatedBaseQuality1_12, // ESTIMATED_BASE_QUALITY_OF_UMIS 0), // UMI_WITH_N new UmiMetrics("B", // LIBRARY 4.0, // MEAN_UMI_LENGTH 1, // OBSERVED_UNIQUE_UMIS 1, // INFERRED_UNIQUE_UMIS 0, // OBSERVED_BASE_ERRORS 2, // DUPLICATE_SETS_IGNORING_UMI 2, // DUPLICATE_SETS_WITH_UMI 0.0, // INFERRED_UMI_ENTROPY 0.0, // OBSERVED_UMI_ENTROPY -1, // ESTIMATED_BASE_QUALITY_OF_UMIS 0) // UMI_WITH_N ) }, { // Test basic error correction using edit distance of 1 Arrays.asList("A", "B", "C", "C", "C"), Arrays.asList("AAA", "AAA", "TTA", "AAA", "AAT"), // Observed UMI Arrays.asList("AAA", "AAA", "TTA", "AAA", "AAA"), // Inferred UMIs Arrays.asList(false, false, false, false, true), // Should it be marked as duplicate? 1, // Edit Distance to Join Arrays.asList( new UmiMetrics("A", // LIBRARY 3.0, // MEAN_UMI_LENGTH 1, // OBSERVED_UNIQUE_UMIS 1, // INFERRED_UNIQUE_UMIS 0, // OBSERVED_BASE_ERRORS 2, // DUPLICATE_SETS_IGNORING_UMI 2, // DUPLICATE_SETS_WITH_UMI 0.0, // INFERRED_UMI_ENTROPY 0.0, // OBSERVED_UMI_ENTROPY -1, // ESTIMATED_BASE_QUALITY_OF_UMIS 0), // UMI_WITH_N new UmiMetrics("B", // LIBRARY 3.0, // MEAN_UMI_LENGTH 1, // OBSERVED_UNIQUE_UMIS 1, // INFERRED_UNIQUE_UMIS 0, // OBSERVED_BASE_ERRORS 2, // DUPLICATE_SETS_IGNORING_UMI 2, // DUPLICATE_SETS_WITH_UMI 0.0, // INFERRED_UMI_ENTROPY 0.0, // OBSERVED_UMI_ENTROPY -1, // ESTIMATED_BASE_QUALITY_OF_UMIS 0), // UMI_WITH_N new UmiMetrics("C", // LIBRARY 3.0, // MEAN_UMI_LENGTH 3, // OBSERVED_UNIQUE_UMIS 2, // INFERRED_UNIQUE_UMIS 2, // OBSERVED_BASE_ERRORS (Note: This is 2 rather than 1 because we are using paired end reads) 2, // DUPLICATE_SETS_IGNORING_UMI 4, // DUPLICATE_SETS_WITH_UMI effectiveLength2_1, // INFERRED_UMI_ENTROPY effectiveLength1_1_1, // OBSERVED_UMI_ENTROPY estimatedBaseQuality1_9, // ESTIMATED_BASE_QUALITY_OF_UMIS 0)) // UMI_WITH_N }}; } @Test(dataProvider = "testMultipleLibraryUmiMetricsDataProvider") public void testMultipleLibraryUmiMetrics(final List<String> libraries, final List<String> umis, final List<String> assignedUmi, final List<Boolean> isDuplicate, final int editDistanceToJoin, final List<UmiMetrics> expectedMetricsList) { // Test collection of UMI metrics across multiple libraries final Map<String, List<String>> expectedAssignedUmis = new HashMap<>(); for (int i = 0; i < umis.size(); i++) { // Get assigned UMIs for each particular library expectedAssignedUmis.putIfAbsent(libraries.get(i), new ArrayList<>()); expectedAssignedUmis.get(libraries.get(i)).add(assignedUmi.get(i)); } // Evaluate UMI metrics over each library for (final UmiMetrics expectedMetrics : expectedMetricsList) { final UmiAwareMarkDuplicatesWithMateCigarTester tester = getTester(false); tester.addArg("MAX_EDIT_DISTANCE_TO_JOIN=" + editDistanceToJoin); tester.addArg("MOLECULAR_IDENTIFIER_TAG=MI"); for (int i = 0; i < umis.size(); i++) { if (expectedMetrics.LIBRARY.equals(libraries.get(i))) { tester.addMatePairWithUmi(libraries.get(i), umis.get(i), assignedUmi.get(i), isDuplicate.get(i), isDuplicate.get(i)); } } tester.setExpectedAssignedUmis(expectedAssignedUmis.get(expectedMetrics.LIBRARY)); tester.setExpectedMetrics(expectedMetrics); tester.runTest(); } } @DataProvider(name = "testDuplexUmiDataProvider") private Object[][] testDuplexUmiDataProvider() { return new Object[][]{{ // Test simple case where there are two fragments that include a top and bottom strand. true, // Use duplex UMI (true), or single stranded UMI (false) 0, // MAX_EDIT_DISTANCE_TO_JOIN Arrays.asList("AAA-GGG", "GGG-AAA"), // UMIs Arrays.asList("AAA-GGG", "GGG-AAA"), // Inferred UMIs Arrays.asList(false, true), // Is duplicate Arrays.asList(1, 4), // Start Position Arrays.asList(4, 1), // Mate Start Position Arrays.asList(false, true), // Negative Strand Flag of first in pair Arrays.asList(true, false), // Negative Strand Flag of second in pair new UmiMetrics("A", // LIBRARY 6.0, // MEAN_UMI_LENGTH 1, // OBSERVED_UNIQUE_UMIS 1, // INFERRED_UNIQUE_UMIS 0, // OBSERVED_BASE_ERRORS 2, // DUPLICATE_SETS_IGNORING_UMI 2, // DUPLICATE_SETS_WITH_UMI 0.0, // INFERRED_UMI_ENTROPY 0.0, // OBSERVED_UMI_ENTROPY -1, // ESTIMATED_BASE_QUALITY_OF_UMIS 0) // UMI_WITH_N },{ // Test simple case where there are two fragments with different UMIs. // These UMIs will match as duplicates if they are duplex, but in this test they will be // seen as non-duplicates because they are single stranded UMIs. false, // Use duplex UMI (true), or single stranded UMI (false) 0, // MAX_EDIT_DISTANCE_TO_JOIN Arrays.asList("AAA-GGG", "GGG-AAA"), // UMIs Arrays.asList("AAA-GGG", "GGG-AAA"), // Inferred UMIs Arrays.asList(false, false), // Is duplicate Arrays.asList(1, 4), // Start Position Arrays.asList(4, 1), // Mate Start Position Arrays.asList(false, true), // Negative Strand Flag of first in pair Arrays.asList(true, false), // Negative Strand Flag of second in pair new UmiMetrics("A", // LIBRARY 6.0, // MEAN_UMI_LENGTH 2, // OBSERVED_UNIQUE_UMIS 2, // INFERRED_UNIQUE_UMIS 0, // OBSERVED_BASE_ERRORS 2, // DUPLICATE_SETS_IGNORING_UMI 4, // DUPLICATE_SETS_WITH_UMI 0.5, // INFERRED_UMI_ENTROPY 0.5, // OBSERVED_UMI_ENTROPY -1, // ESTIMATED_BASE_QUALITY_OF_UMIS 0) // UMI_WITH_N }, { // Test case where a duplex UMI has a single base error. true, // Use duplex UMI (true), or single stranded UMI (false) 1, // MAX_EDIT_DISTANCE_TO_JOIN Arrays.asList("AAA-GGG", "GGG-ATA"), // UMIs Arrays.asList("AAA-GGG", "GGG-AAA"), // Inferred UMIs Arrays.asList(false, true), // Is duplicate Arrays.asList(1, 4), // Start Position Arrays.asList(4, 1), // Mate Start Position Arrays.asList(false, true), // Negative Strand Flag of first in pair Arrays.asList(true, false), // Negative Strand Flag of second in pair new UmiMetrics("A", // LIBRARY 6.0, // MEAN_UMI_LENGTH 2, // OBSERVED_UNIQUE_UMIS 1, // INFERRED_UNIQUE_UMIS 2, // OBSERVED_BASE_ERRORS 2, // DUPLICATE_SETS_IGNORING_UMI 2, // DUPLICATE_SETS_WITH_UMI 0.0, // INFERRED_UMI_ENTROPY 0.5, // OBSERVED_UMI_ENTROPY 11, // ESTIMATED_BASE_QUALITY_OF_UMIS 0) // UMI_WITH_N }}; } @Test(dataProvider = "testDuplexUmiDataProvider") public void testDuplexUmi(final boolean duplexUmi, final int editDistanceToJoin, final List<String> umis, final List<String> assignedUmis, final List<Boolean> isDuplicate, final List<Integer> startPos, final List<Integer> mateStartPos, final List<Boolean> negativeStrand1, final List<Boolean> negativeStrand2, final UmiMetrics expectedMetrics) { final String libraryName = "A"; // For the purpose of this test, all reads come from library "A". final UmiAwareMarkDuplicatesWithMateCigarTester tester = getTester(false); tester.addArg("MAX_EDIT_DISTANCE_TO_JOIN=" + editDistanceToJoin); tester.addArg("DUPLEX_UMI=" + duplexUmi); for (int i = 0; i < umis.size(); i++) { tester.addMatePairWithUmi(libraryName, umis.get(i), assignedUmis.get(i), isDuplicate.get(i), isDuplicate.get(i), startPos.get(i), mateStartPos.get(i), negativeStrand1.get(i), negativeStrand2.get(i)); } tester.setExpectedMetrics(expectedMetrics); tester.runTest(); } }
mit
shudhy/projectketiga
app/views/guest/index.blade.php
183
@section('asset') @include('layouts.partials.datatable') @stop @section('content') <h1 class="uk-heading-large">{{ $title }}</h1> @include('books._borrowdatatable') @stop
mit
anhstudios/swganh
data/scripts/templates/object/tangible/scout/camp/shared_camp_multi.py
442
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/scout/camp/shared_camp_multi.iff" result.attribute_template_id = -1 result.stfName("item_n","camp_multi") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
mit
xCeptic/PIT
PIT.API/Clients/IClient.cs
255
using System.Collections.Generic; namespace PIT.API.Clients { public interface IClient<T> { IEnumerable<T> GetAll(); T GetById(int id); T Create(T entity); T Update(T entity); void Delete(T entity); } }
mit
pivotal/projectmonitor
app/assets/javascripts/application.js
710
//= require jquery //= require jquery_ujs //= require jquery_ui //= require underscore //= require backbone //= require backbone_rails_sync //= require backbone_datalink //= require backbone/project_monitor //= require Coccyx //= require moment.min //= require d3.v3.js //= require_tree ./initializers //= require ./refreshers/refresher //= require_tree ./refreshers //= require autocomplete //= require backtraceHide //= require projectEdit //= require versionCheck //= require projectCheck //= require projectFilters $(function() { BacktraceHide.init(); VersionCheck.init(); ProjectCheck.init(); GithubRefresh.init(); HerokuRefresh.init(); RubyGemsRefresh.init(); ProjectFilters.init(); });
mit
stevenhaddox/omniauth-dice
spec/test_apps/test_rack_app.rb
282
class TestRackApp attr_reader :request_body def initialize @request_headers = {} end def call(env) @env = env @request_body = env['rack.input'].read [ 200, { 'Content-Type' => 'text/plain' }, [ 'Hello Rack' ] ] end def [](key) @env[key] end end
mit
uktrade/data-hub-fe-beta2
src/client/modules/Contacts/CollectionList/constants.js
719
export const LABELS = { status: 'Status', sector: 'Sector', country: 'Country', ukRegion: 'UK region', contactName: 'Contact name', companyName: 'Company name', } export const STATUS_OPTIONS = [ { label: 'Active', value: 'false' }, { label: 'Inactive', value: 'true' }, ] export const SORT_OPTIONS = [ { value: 'created_on:desc', name: 'Recently created' }, { value: 'created_on:asc', name: 'Oldest' }, { value: 'modified_on:desc', name: 'Recently updated' }, { value: 'modified_on:asc', name: 'Least recently updated' }, { value: 'last_name:asc', name: 'Last name A-Z' }, { value: 'address_country.name:asc', name: 'Country A-Z' }, { value: 'company.name:asc', name: 'Company A-Z' }, ]
mit
cbitstech/git_tagger
lib/git_tagger/version.rb
49
# nodoc module GitTagger VERSION = "1.1.8" end
mit
topsitemakers/ultima
extensions/preprocess/preprocess.php
167
<?php /** * @file * Main preprocess function. * * Created by: Topsitemakers * http://www.topsitemakers.com/ */ function ultima_preprocess(&$vars) { // }
mit
firegurafiku/opencl-device-lookup
tools/generate_test_registry.py
3021
#!/usr/bin/env python2 template = """/* AUTOGENERATED, DO NOT EDIT! */ #include <cmocka.h> {% for _, suiteInit, suiteClean, suiteTests in registry %} {% if suiteInit and suiteClean %} extern int {{suiteInit}}(void**); extern int {{suiteClean}}(void**); {% endif %} {% for testName in suiteTests %} extern void {{testName}}(void**); {% endfor %} {% endfor %} {% for suiteName, suiteInit, suiteClean, suiteTests in registry %} static const struct CMUnitTest global_test_group_{{suiteName}}[] = { {% for testName in suiteTests %} cmocka_unit_test({{testName}}), {% endfor %} }; {% endfor %} struct TestGroup { const struct CMUnitTest *tests; size_t tests_count; CMFixtureFunction setup; CMFixtureFunction teardown; }; static const struct TestGroup global_test_groups[] = { {% for suiteName, suiteInit, suiteClean, suiteTests in registry %} { global_test_group_{{suiteName}}, {{suiteTests | length}}, {{suiteInit | default("NULL", True)}}, {{suiteClean | default("NULL", True)}} }, {% endfor %} }; """ import argparse import jinja2 import os import re import sys parser = argparse.ArgumentParser(description='Test registry generator for CUnit') parser.add_argument('--output', metavar='H_FILE', help='header file with generated registry') parser.add_argument('files', metavar='FILE', nargs='+') # Will show usage and exit in case arguments cannot be parsed. arguments = parser.parse_args() testFiles = [] for fileName in arguments.files: if (fileName.endswith('.c') and os.path.realpath(fileName) != os.path.realpath(arguments.output)): testFiles.append(fileName) registry = [] for fileName in testFiles: baseName = os.path.basename(fileName) suiteName = os.path.splitext(baseName)[0].replace('-', '_') suiteInit = None suiteClean = None suiteTests = [] with open(fileName, mode="r") as f: r = re.compile((r"^extern\s+(void|int)\s+(%s_(\w[\w\d]*))\s*\(\s*" + r"void\s+\*\s*\*\s*\w[\w\d]*\)") % suiteName) for s in f: m = r.match(s) if m is None: continue funcName = m.group(2) testName = m.group(3) if testName == "init": suiteInit = funcName elif testName == "clean": suiteClean = funcName else: suiteTests.append(funcName) if len(suiteTests) == 0: continue if (suiteInit is None and suiteClean is not None) or \ (suiteInit is not None and suiteClean is None): sys.stderr.write("warning: init and cleanup functions must be both " + "defined or both not\n") continue registry.append((suiteName, suiteInit, suiteClean, suiteTests)) with open(arguments.output, mode="w") as f: e = jinja2.Environment(lstrip_blocks=True, trim_blocks=True) t = e.from_string(template) f.write(t.render(registry=registry))
mit
swalters/ng-grid
src/js/core/services/gridClassFactory.js
4585
(function () { 'use strict'; /** * @ngdoc object * @name ui.grid.service:gridClassFactory * * @description factory to return dom specific instances of a grid * */ angular.module('ui.grid').service('gridClassFactory', ['gridUtil', '$q', '$compile', '$templateCache', 'uiGridConstants', '$log', 'Grid', 'GridColumn', 'GridRow', function (gridUtil, $q, $compile, $templateCache, uiGridConstants, $log, Grid, GridColumn, GridRow) { var service = { /** * @ngdoc method * @name createGrid * @methodOf ui.grid.service:gridClassFactory * @description Creates a new grid instance. Each instance will have a unique id * @param {object} options An object map of options to pass into the created grid instance. * @returns {Grid} grid */ createGrid : function(options) { options = (typeof(options) !== 'undefined') ? options: {}; options.id = gridUtil.newId(); var grid = new Grid(options); // NOTE/TODO: rowTemplate should always be defined... if (grid.options.rowTemplate) { var rowTemplateFnPromise = $q.defer(); grid.getRowTemplateFn = rowTemplateFnPromise.promise; gridUtil.getTemplate(grid.options.rowTemplate) .then( function (template) { var rowTemplateFn = $compile(template); rowTemplateFnPromise.resolve(rowTemplateFn); }, function (res) { // Todo handle response error here? throw new Error("Couldn't fetch/use row template '" + grid.options.rowTemplate + "'"); }); } grid.registerColumnBuilder(service.defaultColumnBuilder); // Reset all rows to visible initially grid.registerRowsProcessor(function allRowsVisible(rows) { rows.forEach(function (row) { row.visible = true; }); return rows; }); grid.registerColumnsProcessor(function allColumnsVisible(columns) { columns.forEach(function (column) { column.visible = true; }); return columns; }); if (grid.options.enableFiltering) { grid.registerRowsProcessor(grid.searchRows); } // Register the default row processor, it sorts rows by selected columns if (grid.options.externalSort && angular.isFunction(grid.options.externalSort)) { grid.registerRowsProcessor(grid.options.externalSort); } else { grid.registerRowsProcessor(grid.sortByColumn); } return grid; }, /** * @ngdoc function * @name defaultColumnBuilder * @methodOf ui.grid.service:gridClassFactory * @description Processes designTime column definitions and applies them to col for the * core grid features * @param {object} colDef reference to column definition * @param {GridColumn} col reference to gridCol * @param {object} gridOptions reference to grid options */ defaultColumnBuilder: function (colDef, col, gridOptions) { var templateGetPromises = []; if (!colDef.headerCellTemplate) { colDef.headerCellTemplate = 'ui-grid/uiGridHeaderCell'; } if (!colDef.cellTemplate) { colDef.cellTemplate = 'ui-grid/uiGridCell'; } templateGetPromises.push(gridUtil.getTemplate(colDef.cellTemplate) .then( function (template) { col.cellTemplate = template.replace(uiGridConstants.CUSTOM_FILTERS, col.cellFilter ? "|" + col.cellFilter : ""); }, function (res) { throw new Error("Couldn't fetch/use colDef.cellTemplate '" + colDef.cellTemplate + "'"); }) ); templateGetPromises.push(gridUtil.getTemplate(colDef.headerCellTemplate) .then( function (template) { col.headerCellTemplate = template; }, function (res) { throw new Error("Couldn't fetch/use colDef.headerCellTemplate '" + colDef.headerCellTemplate + "'"); }) ); return $q.all(templateGetPromises); } }; //class definitions (moved to separate factories) return service; }]); })();
mit
chain24/ebayprocess-lumen
vendor/dts/ebay-sdk-php/src/Trading/Types/PolicyComplianceDashboardType.php
1092
<?php /** * The contents of this file was generated using the WSDLs as provided by eBay. * * DO NOT EDIT THIS FILE! */ namespace DTS\eBaySDK\Trading\Types; /** * */ class PolicyComplianceDashboardType extends \DTS\eBaySDK\Types\BaseType { /** * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ ]; /** * @param array $values Optional properties and values to assign to the object. */ public function __construct(array $values = []) { list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); parent::__construct($parentValues); if (!array_key_exists(__CLASS__, self::$properties)) { self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); } if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { self::$xmlNamespaces[__CLASS__] = 'xmlns="urn:ebay:apis:eBLBaseComponents"'; } $this->setValues(__CLASS__, $childValues); } }
mit
pimier15/PLInspector
PLImg_V41_TDI/PLImg_V2/Core/Core.cs
8338
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using MachineControl.Camera.Dalsa; using MachineControl.Stage.ACSController; using DALSA.SaperaLT.SapClassBasic; using Emgu.CV; using Emgu.CV.Structure; using Accord.Math; using MachineControl.MathClac; using PLImg_V2.Data; namespace PLImg_V2 { public partial class Core { #region Event public event TferImgArr evtRealimg ; public event TferTrgImgArr evtTrgImg ; public event TferFeedBackPos evtFedBckPos ; public event TferScanStatus evtScanEnd ; public event TferNumber evtSV ; #endregion public DalsaPiranha3_12k Cam = new DalsaPiranha3_12k(); public AcsCtrlXYZ Stg = new AcsCtrlXYZ(); public ScanInfo Info = new ScanInfo(); public TriggerScanData TrigScanData = new TriggerScanData(); Indicator Idc = new Indicator(); /*GFunc*/ public Dictionary<ScanConfig , Action> Reconnector = new Dictionary<ScanConfig, Action>(); public Dictionary<ScanConfig , Action> ExposureMode = new Dictionary<ScanConfig, Action>(); public Dictionary<string,Action> StgEnable; public Action Connect_XYZStage; public Action<double> LineRate; public Action<double> Exposure; public Action Exposure_NonTrgMode; public Action Exposure_TrgMode; public Action Grab; public Action Freeze; public Action BufClear; public Func<SapBuffer,byte[]> FullBuffdata; public Func<SapBuffer,byte[]> SingleBuffdata; public Func<byte[], int, Image<Gray, byte>> Reshape2D; #region Init public Action<ScanConfig> ConnectDevice( string camPath , string stgPath , string rstagPath ) { Create_Connector( camPath , stgPath , rstagPath ); return new Action<ScanConfig>( ( config ) => { Reconnector[config](); ExposureMode[config](); Connect_XYZStage(); InitFunc(); InitData(); foreach ( var item in StgEnable ) item.Value(); Reshape2D = FnBuff2Img( ImgWH["H"], ImgWH["W"] ); } ); } public void Create_Connector( string camPath , string stgPath , string rstagPath ) { //Reconnector.Add( ScanConfig.nonTrigger , Cam.Connect( camPath , ScanConfig.nonTrigger ) ); Reconnector.Add( ScanConfig.Trigger_1 , Cam.Connect( camPath , ScanConfig.Trigger_1 ) ); Reconnector.Add( ScanConfig.Trigger_2 , Cam.Connect( camPath , ScanConfig.Trigger_2 ) ); Reconnector.Add( ScanConfig.Trigger_4 , Cam.Connect( camPath , ScanConfig.Trigger_4 ) ); //ExposureMode.Add( ScanConfig.nonTrigger, Cam.ExposureMode( 7 ) ); ExposureMode.Add( ScanConfig.Trigger_1, Cam.ExposureMode( 3 ) ); ExposureMode.Add( ScanConfig.Trigger_2, Cam.ExposureMode( 3 ) ); ExposureMode.Add( ScanConfig.Trigger_4, Cam.ExposureMode( 3 ) ); var stgConnectMode = MachineControl.Stage.Interface.ConnectMode.IP; Connect_XYZStage = Stg.Connect( stgPath , stgConnectMode ); } public void InitFunc() { Cam.EvtResist( Cam.Xfer , GrabDoneEvt_Non ); Exposure = Cam.Exposure(); LineRate = Cam.LineRate(); Exposure_NonTrgMode = Cam.ExposureMode( 2 ); Exposure_TrgMode = Cam.ExposureMode( 6 ); Grab = Cam.Grab(); Freeze = Cam.Freeze(); BufClear = Cam.BuffClear(); FullBuffdata = Cam.BuffGetAll(); SingleBuffdata = Cam.BuffGetLine(); StgEnable = new Dictionary<string , Action>(); foreach ( var item in GD.YXZ ) StgEnable.Add( item , Stg.Enable( item ) ); RunStgBuffer = new Action<ScanConfig>( ( config ) => { if ( config == ScanConfig.Trigger_4 ) { Stg.StartTrigger( 4 ); } else { Stg.StartTrigger( 3 ); } } ); StopStgBuffer = new Action<ScanConfig>( ( config ) => { if ( config == ScanConfig.Trigger_4 ) { Stg.StopTrigger( 4 ); } else { Stg.StopTrigger( 3 ); } } ); } public void InitData() { ImgWH = Cam.GetBuffWH(); } #endregion #region GrabDoneEvent Method void GrabDoneEvt_Non( object sender, SapXferNotifyEventArgs evt ) { evtRealimg( Reshape2D( FullBuffdata(Cam.Buffers), 1 ) ); Task.Run( () => TferVariance( SingleBuffdata( Cam.Buffers ) ) ); } void GrabDoneEvt_Trg( object sender , SapXferNotifyEventArgs evt ) { Console.WriteLine( "Stop Stage Buffer" ); StopStgBuffer( CurrentConfig ); Console.WriteLine( "Grab Done in " ); Stg.WaitEps( "Y" )( TrigScanData.EndYPos[CurrentConfig], 0.005 ); var Buf2Img = FnBuff2Img( Cam.GetBuffWH()["H"] , Cam.GetBuffWH()["W"] ); var currentbuff = FullBuffdata(Cam.Buffers); var temp = Buf2Img( currentbuff , 1 ); Console.WriteLine( "send image to viewer" ); evtTrgImg( temp, TrigCount ); // 1 Trigger = 1 Buffer TrigCount += 1; if ( TrigCount < TrigLimit ) { Console.WriteLine( "Grab Done IF in " ); StgReadyTrigScan( TrigCount , CurrentConfig ); Console.WriteLine( "Run stage buffer" ); RunStgBuffer( CurrentConfig ); System.Threading.Thread.Sleep( 100 ); Console.WriteLine( "Go to end point" ); ScanMoveXYstg( "Y" , TrigScanData.EndYPos[CurrentConfig] , TrigScanData.Scan_Stage_Speed ); } else { Console.WriteLine( "send image to viewer" ); evtScanEnd(); } } #endregion public void TferVariance( byte[] src ) { try { double[] dst = new double[src.Length]; Array.Copy(src,dst,src.Length); var zscore = Idc.Zscore( dst ); var vari = Idc.Variance(zscore()); Task.Run( ( ) => evtSV( vari() ) ); } catch ( Exception ex) { Console.WriteLine( ex.ToString() ); } } #region Stage Control public void MoveXYstg( string axis , double point ) { Stg.SetSpeed( axis )( 200 ); Stg.Moveabs ( axis )( point ); } public void ScanMoveXYstg( string axis, double point , double scanspeed ) { Stg.SetSpeed( axis )( scanspeed ); Stg.Moveabs( axis )( point ); } public void MoveZstg( double point ) { Stg.SetSpeed( "Z" )( 10 ); Stg.Moveabs( "Z" )( point ); } public void GetFeedbackPos() { try { while ( true ) { var yP = Stg.GetPos("Y"); var xP = Stg.GetPos("X"); var zP = Stg.GetPos("Z"); evtFedBckPos( new double[3] { yP(), xP() , zP() } ); Task.Delay( 500 ).Wait(); } } catch ( Exception ex ) { Console.WriteLine( ex.ToString() ); } } #endregion #region Minor void LoadSetting() { } void SaveSetting() { } void SetDir() { //string dirTempPath = String.Format(ImgBasePath + DateTime.Now.ToString("MM/dd/HH/mm/ss")); //CheckAndCreateFolder cacf = new CheckAndCreateFolder(dirTempPath); //cacf.SettingFolder( dirTempPath ); //GrabM.SetDirPath( dirTempPath ); } #endregion } }
mit
almadaocta/lordbike-production
app/code/core/Mage/CatalogInventory/Model/Mysql4/Stock/Status.php
1318
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category Mage * @package Mage_CatalogInventory * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ /** * CatalogInventory Stock Status per website Resource Model * * @category Mage * @package Mage_CatalogInventory * @author Magento Core Team <core@magentocommerce.com> */ class Mage_CatalogInventory_Model_Mysql4_Stock_Status extends Mage_CatalogInventory_Model_Resource_Stock_Status { }
mit
1974kpkpkp/operaextensions.js
examples/catalog/to-read-sites-4.1-3-1/locales/tr/popup.js
141
var tr = { addButtonLabel: "Þu anki sayfayý listeye ekle", deleteButtonLabel: "Sayfayý listeden sil", lockButtonLabel: "Siteyi kilitle" };
mit
darshanhs90/Java-Coding
src/GeeksforGeeksPractice/_0043LCA.java
1997
package GeeksforGeeksPractice; import java.util.Arrays; /* * Link : http://www.geeksforgeeks.org/sum-numbers-formed-root-leaf-paths/ */ public class _0043LCA { public static void main(String[] args) { TreeNode tn=new TreeNode(1); tn.left=new TreeNode(2); tn.right=new TreeNode(3); tn.left.left=new TreeNode(4); tn.left.right=new TreeNode(5); tn.right.left=new TreeNode(6); tn.right.right=new TreeNode(7); System.out.println(lca(tn,4,5)); System.out.println(lca(tn,4,6)); System.out.println(lca(tn,3,4)); System.out.println(lca(tn,2,4)); } static int[] path,pathFirst,pathSecond; private static int lca(TreeNode tn, int firstNode, int secondNode) { path=new int[10]; pathFirst=new int[10]; pathSecond=new int[10]; getPath(tn,firstNode,path,0); pathSecond=pathFirst; getPath(tn,secondNode,path,0); System.out.println(Arrays.toString(pathFirst)); System.out.println(Arrays.toString(pathSecond)); return findIntersection(pathFirst,pathSecond); } private static int findIntersection(int[] pathFirst, int[] pathSecond) { int length=pathFirst.length>pathSecond.length?pathSecond.length:pathFirst.length; for (int i = 0; i <length; i++) { if(pathFirst[i]!=pathSecond[i] && i!=0) { return pathFirst[i-1]; } else if(pathFirst[i]!=pathSecond[i] && i==0) { return Integer.MIN_VALUE; } } return pathFirst[length-1]; } private static void getPath(TreeNode tn, int firstNodeValue, int[] path, int pathLen) { if(tn!=null) { path[pathLen]=tn.value; pathLen++; if(tn.value==firstNodeValue) { pathFirst=Arrays.copyOfRange(path,0, pathLen); return; } getPath(tn.left, firstNodeValue, path, pathLen); getPath(tn.right, firstNodeValue, path, pathLen); } } static class TreeNode{ TreeNode left,right; int value; public TreeNode(int value) { this.value=value; } } }
mit
bigobject-inc/BigObject-ODBC
Source/Driver/API/SQLGetDiagField.cpp
1198
/* * ---------------------------------------------------------------------------- * Copyright (c) 2014-2015 BigObject Inc. * All Rights Reserved. * * Use of, copying, modifications to, and distribution of this software * and its documentation without BigObject's written permission can * result in the violation of U.S., Taiwan and China Copyright and Patent laws. * Violators will be prosecuted to the highest extent of the applicable laws. * * BIGOBJECT MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF * THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED * TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A * PARTICULAR PURPOSE, OR NON-INFRINGEMENT. * ---------------------------------------------------------------------------- */ #include "Driver.hpp" /* SQLRETURN SQL_API SQLGetDiagField( SQLSMALLINT HandleType, SQLHANDLE Handle, SQLSMALLINT RecordNumber, SQLSMALLINT DiagIdentifier, SQLPOINTER DiagInfo, SQLSMALLINT BufferLength, SQLSMALLINT *StringLength) { LOG_WARN_F_FUNC(TEXT("%s: This function not supported."), LOG_FUNCTION_NAME); LOG_DEBUG_F_FUNC(TEXT("%s: SQL_SUCCESS"), LOG_FUNCTION_NAME); return SQL_SUCCESS; } */
mit
csemrm/PHP_SDK
source/optimalpayments/cardpayments/pagerator.php
1959
<?php /* * Copyright (c) 2014 Optimal Payments * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and * associated documentation files (the "Software"), to deal in the Software without restriction, * including without limitation the rights to use, copy, modify, merge, publish, distribute, * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or * substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT * NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ namespace OptimalPayments\CardPayments; class Pagerator extends \OptimalPayments\PageratorAbstract { /** * Parse the response for the result set and next page. * * @param type $data * @throws OptimalException */ protected function parseResponse($data) { if(!array_key_exists($this->arrayKey, $data)) { throw new OptimalException('Missing array key from results'); } foreach($data[$this->arrayKey] as $row) { array_push($this->results, new $this->className($row)); } $this->nextPage = null; if(array_key_exists('links', $data)) { foreach($data['links'] as $link) { if($link['rel'] == 'next') { $this->nextPage = new \OptimalPayments\Link($link); } } } } }
mit
crisbeto/material2
src/material/schematics/ng-add/theming/theming.ts
8138
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {normalize, logging} from '@angular-devkit/core'; import {ProjectDefinition} from '@angular-devkit/core/src/workspace'; import { chain, noop, Rule, SchematicContext, SchematicsException, Tree, } from '@angular-devkit/schematics'; import { addBodyClass, defaultTargetBuilders, getProjectFromWorkspace, getProjectStyleFile, getProjectTargetOptions, getProjectIndexFiles, } from '@angular/cdk/schematics'; import {InsertChange} from '@schematics/angular/utility/change'; import {getWorkspace, updateWorkspace} from '@schematics/angular/utility/workspace'; import {join} from 'path'; import {Schema} from '../schema'; import {createCustomTheme} from './create-custom-theme'; /** Path segment that can be found in paths that refer to a prebuilt theme. */ const prebuiltThemePathSegment = '@angular/material/prebuilt-themes'; /** Default file name of the custom theme that can be generated. */ const defaultCustomThemeFilename = 'custom-theme.scss'; /** Add pre-built styles to the main project style file. */ export function addThemeToAppStyles(options: Schema): Rule { return (host: Tree, context: SchematicContext) => { const themeName = options.theme || 'indigo-pink'; return themeName === 'custom' ? insertCustomTheme(options.project, host, context.logger) : insertPrebuiltTheme(options.project, themeName, context.logger); }; } /** Adds the global typography class to the body element. */ export function addTypographyClass(options: Schema): Rule { return async (host: Tree) => { const workspace = await getWorkspace(host); const project = getProjectFromWorkspace(workspace, options.project); const projectIndexFiles = getProjectIndexFiles(project); if (!projectIndexFiles.length) { throw new SchematicsException('No project index HTML file could be found.'); } if (options.typography) { projectIndexFiles.forEach(path => addBodyClass(host, path, 'mat-typography')); } }; } /** * Insert a custom theme to project style file. If no valid style file could be found, a new * Scss file for the custom theme will be created. */ async function insertCustomTheme( projectName: string, host: Tree, logger: logging.LoggerApi, ): Promise<Rule> { const workspace = await getWorkspace(host); const project = getProjectFromWorkspace(workspace, projectName); const stylesPath = getProjectStyleFile(project, 'scss'); const themeContent = createCustomTheme(projectName); if (!stylesPath) { if (!project.sourceRoot) { throw new SchematicsException( `Could not find source root for project: "${projectName}". ` + `Please make sure that the "sourceRoot" property is set in the workspace config.`, ); } // Normalize the path through the devkit utilities because we want to avoid having // unnecessary path segments and windows backslash delimiters. const customThemePath = normalize(join(project.sourceRoot, defaultCustomThemeFilename)); if (host.exists(customThemePath)) { logger.warn(`Cannot create a custom Angular Material theme because ${customThemePath} already exists. Skipping custom theme generation.`); return noop(); } host.create(customThemePath, themeContent); return addThemeStyleToTarget(projectName, 'build', customThemePath, logger); } const insertion = new InsertChange(stylesPath, 0, themeContent); const recorder = host.beginUpdate(stylesPath); recorder.insertLeft(insertion.pos, insertion.toAdd); host.commitUpdate(recorder); return noop(); } /** Insert a pre-built theme into the angular.json file. */ function insertPrebuiltTheme(project: string, theme: string, logger: logging.LoggerApi): Rule { // Path needs to be always relative to the `package.json` or workspace root. const themePath = `./node_modules/@angular/material/prebuilt-themes/${theme}.css`; return chain([ addThemeStyleToTarget(project, 'build', themePath, logger), addThemeStyleToTarget(project, 'test', themePath, logger), ]); } /** Adds a theming style entry to the given project target options. */ function addThemeStyleToTarget( projectName: string, targetName: 'test' | 'build', assetPath: string, logger: logging.LoggerApi, ): Rule { return updateWorkspace(workspace => { const project = getProjectFromWorkspace(workspace, projectName); // Do not update the builder options in case the target does not use the default CLI builder. if (!validateDefaultTargetBuilder(project, targetName, logger)) { return; } const targetOptions = getProjectTargetOptions(project, targetName); const styles = targetOptions.styles as (string | {input: string})[]; if (!styles) { targetOptions.styles = [assetPath]; } else { const existingStyles = styles.map(s => (typeof s === 'string' ? s : s.input)); for (let [index, stylePath] of existingStyles.entries()) { // If the given asset is already specified in the styles, we don't need to do anything. if (stylePath === assetPath) { return; } // In case a prebuilt theme is already set up, we can safely replace the theme with the new // theme file. If a custom theme is set up, we are not able to safely replace the custom // theme because these files can contain custom styles, while prebuilt themes are // always packaged and considered replaceable. if (stylePath.includes(defaultCustomThemeFilename)) { logger.error( `Could not add the selected theme to the CLI project ` + `configuration because there is already a custom theme file referenced.`, ); logger.info(`Please manually add the following style file to your configuration:`); logger.info(` ${assetPath}`); return; } else if (stylePath.includes(prebuiltThemePathSegment)) { styles.splice(index, 1); } } styles.unshift(assetPath); } }); } /** * Validates that the specified project target is configured with the default builders which are * provided by the Angular CLI. If the configured builder does not match the default builder, * this function can either throw or just show a warning. */ function validateDefaultTargetBuilder( project: ProjectDefinition, targetName: 'build' | 'test', logger: logging.LoggerApi, ) { const defaultBuilder = defaultTargetBuilders[targetName]; const targetConfig = project.targets && project.targets.get(targetName); const isDefaultBuilder = targetConfig && targetConfig['builder'] === defaultBuilder; // Because the build setup for the Angular CLI can be customized by developers, we can't know // where to put the theme file in the workspace configuration if custom builders are being // used. In case the builder has been changed for the "build" target, we throw an error and // exit because setting up a theme is a primary goal of `ng-add`. Otherwise if just the "test" // builder has been changed, we warn because a theme is not mandatory for running tests // with Material. See: https://github.com/angular/components/issues/14176 if (!isDefaultBuilder && targetName === 'build') { throw new SchematicsException( `Your project is not using the default builders for ` + `"${targetName}". The Angular Material schematics cannot add a theme to the workspace ` + `configuration if the builder has been changed.`, ); } else if (!isDefaultBuilder) { // for non-build targets we gracefully report the error without actually aborting the // setup schematic. This is because a theme is not mandatory for running tests. logger.warn( `Your project is not using the default builders for "${targetName}". This ` + `means that we cannot add the configured theme to the "${targetName}" target.`, ); } return isDefaultBuilder; }
mit
jackylee0424/walkingplant
software/environment_sensing/parsedht_arduino.py
2067
import sys import serial import time import os import requests import json import pickle import thread url = "https://timeseriesvisual.firebaseio.com/.json" device = "/dev/tty.usbmodemfd111" #block_list = [] block_dict = dict() machine_name = "old_raspi" if not os.path.exists("data"): os.makedirs("data") # remove old block #if os.path.exists(os.path.join('data', "block.blk")): # os.remove(os.path.join('data', "block.blk")) # save it to a block if os.path.exists(os.path.join('data', "block.blk")): with open(os.path.join('data', 'block.blk'), 'rb') as f: block_dict.update(pickle.load(f)) else: # create a blank block with open(os.path.join('data', 'block.blk'), 'wb') as f: pickle.dump(block_dict, f) #print "block_dict", block_dict if "raw" in block_dict: print "found existing DHT22 data" else: block_dict["raw"] = [] def posttofirebase(): with open(os.path.join('data', 'block.blk'), 'wb') as output: #block_dict["raw"] = block_list pickle.dump(block_dict, output, pickle.HIGHEST_PROTOCOL) print "save it to file" try: # post to firebase #response = requests.patch(url, data=json.dumps(dict(raw=block_list))) response = requests.patch(url, data=json.dumps(dict(raw=block_dict["raw"]))) print response except: print "posting error" if __name__ == "__main__": ser = serial.Serial(device, 9600, timeout=5, parity="N", bytesize=8) while True: line = ser.readline() if len(line) == 25: dht22 = map(lambda x:float(x), line.strip().split(' ')) #print dht22 output_dhc22 = dict() output_dhc22["timestamp"] = time.time() output_dhc22["data"] = dict() output_dhc22["data"]["%s-humidity"%machine_name] = dht22[0] output_dhc22["data"]["%s-temperaturec"%machine_name] = dht22[1] output_dhc22["data"]["%s-temperaturef"%machine_name] = dht22[2] output_dhc22["data"]["%s-heatindexf"%machine_name] = dht22[3] #block_list.append(output_dhc22) block_dict["raw"].append(output_dhc22) #print len(block_list) thread.start_new_thread(posttofirebase,())
mit
pdp10/sbpipe
sbpipe/snakemake/pe_collection.py
2365
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2018 Piero Dalle Pezze # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in all # copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. from sbpipe.simul.copasi import copasi as copasi_simul from sbpipe.simul import pl_simul def pe_collect(inputdir, outputdir, fileout_final_estims, fileout_all_estims, copasi=True): """ Collect the results so that they can be processed. :param inputdir: the input folder containing the data :param outputdir: the output folder to stored the collected results :param fileout_final_estims: the name of the file containing the best estimations :param fileout_all_estims: the name of the file containing all the estimations :param copasi: True if COPASI was used to generate the data. """ if copasi: simulator = copasi_simul.Copasi() else: simulator = pl_simul.PLSimul() # Collect and summarises the parameter estimation results try: files_num = simulator.get_best_fits(inputdir, outputdir, fileout_final_estims) simulator.get_all_fits(inputdir, outputdir, fileout_all_estims) # print('Files retrieved: ' + str(files_num)) except Exception as e: print("simulator: " + simulator + " not found.") import traceback print(traceback.format_exc())
mit
lemmy/tlaplus
tlatools/org.lamport.tlatools/test/tlc2/debug/TLCDebuggerTestCase.java
24438
/******************************************************************************* * Copyright (c) 2020 Microsoft Research. All rights reserved. * * The MIT License (MIT) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies * of the Software, and to permit persons to whom the Software is furnished to do * so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Contributors: * Markus Alexander Kuppe - initial API and implementation ******************************************************************************/ package tlc2.debug; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import java.net.URI; import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.Phaser; import java.util.stream.Collectors; import java.util.stream.Stream; import org.eclipse.lsp4j.debug.Breakpoint; import org.eclipse.lsp4j.debug.ContinueArguments; import org.eclipse.lsp4j.debug.EvaluateArguments; import org.eclipse.lsp4j.debug.EvaluateArgumentsContext; import org.eclipse.lsp4j.debug.EvaluateResponse; import org.eclipse.lsp4j.debug.NextArguments; import org.eclipse.lsp4j.debug.Scope; import org.eclipse.lsp4j.debug.SetBreakpointsArguments; import org.eclipse.lsp4j.debug.Source; import org.eclipse.lsp4j.debug.SourceBreakpoint; import org.eclipse.lsp4j.debug.StackFrame; import org.eclipse.lsp4j.debug.StackTraceArguments; import org.eclipse.lsp4j.debug.StepInArguments; import org.eclipse.lsp4j.debug.StepOutArguments; import org.eclipse.lsp4j.debug.StoppedEventArguments; import org.eclipse.lsp4j.debug.Variable; import org.eclipse.lsp4j.debug.services.IDebugProtocolClient; import org.eclipse.lsp4j.jsonrpc.Launcher; import org.eclipse.lsp4j.jsonrpc.RemoteEndpoint; import org.junit.Before; import tla2sany.semantic.OpDeclNode; import tlc2.debug.TLCStateStackFrame.DebuggerValue; import tlc2.tool.TLCState; import tlc2.tool.liveness.ModelCheckerTestCase; import tlc2.util.Context; import tlc2.value.impl.LazyValue; import tlc2.value.impl.RecordValue; import tlc2.value.impl.StringValue; import tlc2.value.impl.Value; public abstract class TLCDebuggerTestCase extends ModelCheckerTestCase implements IDebugProtocolClient { protected final TestTLCDebugger debugger = new TestTLCDebugger(); protected final Phaser phase = new Phaser(); public TLCDebuggerTestCase(String spec, String path, String[] extraArgs, final int exitStatus) { super(spec, path, Stream.of(extraArgs, new String[] { "-debugger", "-noGenerateSpecTE" }).flatMap(Stream::of).toArray(String[]::new), exitStatus); // (i) This/current/control/test thread and (ii) executor thread that runs TLC // and is launched in setUp below. phase.bulkRegister(2); // Register debugger and add a breakpoint *before* TLC gets started in setUp. TLCDebugger.Factory.OVERRIDE = debugger; } public TLCDebuggerTestCase(String spec, String path, final int exitStatus) { this(spec, path, new String[] {}, exitStatus); } @Override protected boolean runWithDebugger() { // TLCDebuggerTestCase configures the debugger explicitly! Especially, it // doesn't pass 'nosuspend,nohalt'. return false; } @Override protected boolean doDump() { return !super.doDump(); } @Override protected boolean noGenerateSpec() { return !super.noGenerateSpec(); } @Override protected boolean doCoverage() { // We consider coverage to be orthogonal to debugging for now although coverage // will be relevant during debugging a spec. return !super.doCoverage(); } @Before @Override public void setUp() { // Run TLC in another thread. Control TLC through the debugger from this thread. Executors.newSingleThreadExecutor().submit(() -> { super.setUp(); // Model-checking has ended at this point, resume the control/test thread for // the unit test to terminate. phase.arrive(); }); // The debugger always stops at the initial frame (usually this is the spec's // first ASSUMPTIONS). After advance, the bootstrapping is done and the actual // test can start. phase.arriveAndAwaitAdvance(); } protected OpDeclNode[] getVars() { // The order of vars is expected to be deterministic across tests!, return TLCState.Empty.getVars(); // If this ever causes problems because Empty is still null during startup, an // alternative is: // final Tool tool = (Tool) TLCGlobals.mainChecker.tool; // return tool.getSpecProcessor().getVariablesNodes(); } protected static SetBreakpointsArguments createBreakpointArgument(final String spec, final int line) { final SetBreakpointsArguments arguments = new SetBreakpointsArguments(); final SourceBreakpoint breakpoint = new SourceBreakpoint(); breakpoint.setLine(line); final SourceBreakpoint[] breakpoints = new SourceBreakpoint[] { breakpoint }; arguments.setBreakpoints(breakpoints); final Source source = new Source(); source.setName(spec); arguments.setSource(source); return arguments; } protected static void assertTLCActionFrame(final StackFrame stackFrame, final int beginLine, final int beginColumn, final int endLine, final int endColumn, String spec, final Context ctxt, final OpDeclNode... unassigned) { assertTLCActionFrame(stackFrame, beginLine, endLine, spec, ctxt, unassigned); assertEquals(beginColumn, stackFrame.getColumn()); assertEquals(endColumn + 1, (int) stackFrame.getEndColumn()); } protected static void assertTLCActionFrame(final StackFrame stackFrame, final int beginLine, final int beginColumn, final int endLine, final int endColumn, String spec, final OpDeclNode... unassigned) { assertTLCActionFrame(stackFrame, beginLine, endLine, spec, Context.Empty, unassigned); assertEquals(beginColumn, stackFrame.getColumn()); assertEquals(endColumn + 1, (int) stackFrame.getEndColumn()); } protected static void assertTLCActionFrame(final StackFrame stackFrame, final int beginLine, final int endLine, String spec, final OpDeclNode... unassigned) { assertTLCActionFrame(stackFrame, beginLine, endLine, spec, Context.Empty, unassigned); } protected static void assertTLCActionFrame(final StackFrame stackFrame, final int beginLine, final int beginColumn, final int endLine, final int endColumn, String spec, final Set<Variable> expected, final OpDeclNode... unassigned) { assertTLCActionFrame(stackFrame, beginLine, endLine, spec, expected, unassigned); assertEquals(beginColumn, stackFrame.getColumn()); assertEquals(endColumn + 1, (int) stackFrame.getEndColumn()); } protected static void assertTLCActionFrame(final StackFrame stackFrame, final int beginLine, final int endLine, String spec, final Set<Variable> expected, final OpDeclNode... unassigned) { assertTLCFrame0(stackFrame, beginLine, endLine, spec, null); assertTrue(stackFrame instanceof TLCActionStackFrame); final TLCActionStackFrame f = (TLCActionStackFrame) stackFrame; // Showing variables in the debugger does *not* unlazy LazyValues, i.e. // interferes with TLC's evaluation. final List<LazyValue> lazies = new ArrayList<>(); Context context = f.getContext(); while (context != null) { if (context.getValue() instanceof LazyValue) { LazyValue lv = (LazyValue) context.getValue(); if (lv.getValue() == null) { lazies.add(lv); } } context = context.next(); } final List<Variable> variables = Arrays.asList(f.getVariables()); assertTrue(expected.size() <= variables.size()); NXT: for (Variable v : variables) { for (Variable e : expected) { if (e.getName().equals(v.getName()) && e.getValue().equals(v.getValue()) && e.getType().equals(v.getType())) { continue NXT; } } fail(); } lazies.forEach(lv -> assertNull(lv.getValue())); } protected static void assertTLCActionFrame(final StackFrame stackFrame, final int beginLine, final int endLine, String spec, final Context expectedContext, final OpDeclNode... unassigned) { assertTLCFrame0(stackFrame, beginLine, endLine, spec, expectedContext); assertTrue(stackFrame instanceof TLCActionStackFrame); final TLCActionStackFrame f = (TLCActionStackFrame) stackFrame; assertTrue(Arrays.asList(f.getScopes()).stream().filter(s -> TLCActionStackFrame.SCOPE.equals(s.getName())) .findAny().isPresent()); assertNotNull(f.getS()); assertTrue(f.getS().allAssigned()); if (expectedContext != null && expectedContext.isEmpty()) { assertTrue(f.nestedVariables.isEmpty()); } assertNotNull(f.state); assertEquals(new HashSet<>(Arrays.asList(unassigned)), f.state.getUnassigned()); // Assert successor has an action set. This cannot be asserted for f.state // because f.state might have been read from its persisted state // (DiskStateQueue) that doesn't include f.state's action. assertNotNull(f.state.getAction()); // Assert successor has a predecessor. assertNotNull(f.state.getPredecessor()); assertStateVars(f, f.getS(), f.state); // Assert successor has a trace leading to an initial state. assertTrace(f, f.state); // Assert level of state and successor. if (!isStuttering(f.getS(), f.getT())) { assertEquals(f.getS().getLevel() + 1, f.state.getLevel()); } else { // TLA+ allows stuttering to occur. By definition, stuttering steps do *not* increase the level, // which is why tasf.successor has the same level of its predecessor. If stuttering would be // taken into account by TLCGet("level"), each state s1 to s6 above could have any level except // level 1. s1 would be the only state whose level would be 1 to inf. assertEquals(f.getS().getLevel(), f.state.getLevel()); } } private static boolean isStuttering(TLCState s, TLCState t) { // Iff s and t have all variables assigned, i.e., are fully evaluated, best we // can do is to compare all variable values. if (s.allAssigned() && t.allAssigned()) { // Evaluating equals, when not all variables are assigned, would cause a // NullPointerException in Value#equals. return s.getVals().equals(t.getVals()); } return false; } protected static void assertTLCStateFrame(final StackFrame stackFrame, final int beginLine, final int endLine, String spec, Map<String, String> expected) { assertTLCFrame0(stackFrame, beginLine, endLine, spec, null); assertTrue(stackFrame instanceof TLCStateStackFrame); assertFalse(stackFrame instanceof TLCActionStackFrame); final TLCStackFrame f = (TLCStackFrame) stackFrame; // Showing variables in the debugger does *not* unlazy LazyValues, i.e. // interferes with TLC's evaluation. final List<LazyValue> lazies = new ArrayList<>(); Context context = f.getContext(); while (context != null) { if (context.getValue() instanceof LazyValue) { LazyValue lv = (LazyValue) context.getValue(); if (lv.getValue() == null) { lazies.add(lv); } } context = context.next(); } final Variable[] variables = f.getVariables(); assertEquals(expected.size(), variables.length); for (Variable variable : variables) { assertEquals(expected.get(variable.getName()), variable.getValue()); } lazies.forEach(lv -> assertNull(lv.getValue())); } protected static void assertTLCStateFrame(final StackFrame stackFrame, final int beginLine, final int endLine, String spec) { assertTLCStateFrame(stackFrame, beginLine, endLine, spec, new OpDeclNode[0]); } protected static void assertTLCStateFrame(final StackFrame stackFrame, final int beginLine, final int endLine, String spec, final OpDeclNode... unassigned) { assertTLCStateFrame(stackFrame, beginLine, endLine, spec, Context.Empty, unassigned); } protected static void assertTLCStateFrame(final StackFrame stackFrame, final int beginLine, final int beginColumn, final int endLine, final int endColumn, String spec, final Context expectedContext, final OpDeclNode... unassigned) { assertTLCStateFrame(stackFrame, beginLine, endLine, spec, expectedContext, unassigned); assertEquals(beginColumn, stackFrame.getColumn()); assertEquals(endColumn + 1, (int) stackFrame.getEndColumn()); } protected static void assertTLCStateFrame(final StackFrame stackFrame, final int beginLine, final int endLine, String spec, final Context expectedContext, final OpDeclNode... unassigned) { assertTLCFrame0(stackFrame, beginLine, endLine, spec, expectedContext); assertTrue(stackFrame instanceof TLCStateStackFrame); assertFalse(stackFrame instanceof TLCActionStackFrame); final TLCStateStackFrame f = (TLCStateStackFrame) stackFrame; if (expectedContext != null) { assertEquals(0, new ContextComparator().compare(expectedContext, f.getContext())); } assertTrue(Arrays.asList(f.getScopes()).stream().filter(s -> TLCStateStackFrame.SCOPE.equals(s.getName())) .findAny().isPresent()); if (expectedContext != null && expectedContext.isEmpty()) { assertTrue(f.nestedVariables.isEmpty()); } assertNotNull(f.state); assertEquals(new HashSet<>(Arrays.asList(unassigned)), f.state.getUnassigned()); assertStateVars(f, f.state); assertTrace(f, f.state); } private static void assertTrace(final TLCStateStackFrame frame, final TLCState st) { final Map<Integer, DebugTLCVariable> old = new HashMap<>(frame.nestedVariables); try { final List<DebugTLCVariable> trace = Arrays.asList(frame.getTrace()).stream() .map(v -> (DebugTLCVariable) v).collect(Collectors.toList()); // Assert that the trace is never empty. assertTrue(trace.size() > 0); // Assert that the 0st (top/last/final) state is equal to st. if (st.allAssigned()) { assertEquals(new RecordValue(st), trace.get(0).getTLCValue()); } else { // State st isn't fully evaluated yet. Thus, some variables will be 'null'. assertEquals(new RecordValue(st, TLCStateStackFrame.NOT_EVAL), trace.get(0).getTLCValue()); } // Assert that the last state is an initial state. assertTrue(trace.get(trace.size() - 1).getName().startsWith("1: ")); // Reverse the trace to traverse from initial to end in the following loops Collections.reverse(trace); // Assert that the variables' numbers in trace are strictly monotonic. for (int i = 0; i < trace.size(); i++) { assertTrue(trace.get(i).getName().startsWith(Integer.toString(i + 1) + ":")); } // Assert TLCState#allAssigned for all but the last state. for (int i = 0; i < trace.size() - 1; i++) { final Value tlcValue = trace.get(i).getTLCValue(); assertTrue(tlcValue instanceof RecordValue); final RecordValue rv = (RecordValue) tlcValue; for (Value val : rv.values) { assertTrue(!(val instanceof StringValue) || !DebuggerValue.NOT_EVALUATED.equals(((StringValue) val).toString())); } } } finally { // TLCStateStackFrame#getTrace has the side-effect of adding variables to the // nested ones. frame.nestedVariables.clear(); frame.nestedVariables.putAll(old); } } private static void assertStateVars(TLCStateStackFrame frame, final TLCState st) { final Map<Integer, DebugTLCVariable> old = new HashMap<>(frame.nestedVariables); try { final Variable[] svs = frame.getStateVariables(); assertEquals(1, svs.length); assertTrue(svs[0] instanceof DebugTLCVariable); assertEquals(st.allAssigned() ? new RecordValue(st) : new RecordValue(st, TLCStateStackFrame.NOT_EVAL), ((DebugTLCVariable) svs[0]).getTLCValue()); } finally { // TLCStateStackFrame#getStateVariables has the side-effect of adding variables to the // nested ones. frame.nestedVariables.clear(); frame.nestedVariables.putAll(old); } } private static void assertStateVars(TLCActionStackFrame frame, final TLCState s, final TLCState t) { final Map<Integer, DebugTLCVariable> old = new HashMap<>(frame.nestedVariables); try { final Variable[] svs = frame.getStateVariables(); assertEquals(1, svs.length); assertTrue(svs[0] instanceof DebugTLCVariable); assertEquals(t.allAssigned() ? new RecordValue(s, t, new StringValue("Should not be used")) : new RecordValue(s, t, TLCStateStackFrame.NOT_EVAL), ((DebugTLCVariable) svs[0]).getTLCValue()); } finally { // TLCStateStackFrame#getStateVariables has the side-effect of adding variables to the // nested ones. frame.nestedVariables.clear(); frame.nestedVariables.putAll(old); } } protected static void assertTLCFrame(final StackFrame stackFrame, final int beginLine, final int endLine, String spec) { assertTLCFrame(stackFrame, beginLine, endLine, spec, Context.Empty); } protected static void assertTLCFrame(final StackFrame stackFrame, final int beginLine, final int beginColumn, final int endLine, final int endColumn, String spec) { assertTLCFrame(stackFrame, beginLine, endLine, spec); assertEquals(beginColumn, stackFrame.getColumn()); assertEquals(endColumn + 1, (int) stackFrame.getEndColumn()); } protected static void assertTLCFrame(final StackFrame stackFrame, final int beginLine, final int beginColumn, final int endLine, final int endColumn, String spec, final Context expectedContext) { assertTLCFrame(stackFrame, beginLine, endLine, spec, expectedContext); assertEquals(beginColumn, stackFrame.getColumn()); assertEquals(endColumn + 1, (int) stackFrame.getEndColumn()); } protected static void assertTLCFrame(final StackFrame stackFrame, final int beginLine, final int endLine, String spec, final Context expectedContext) { assertTLCFrame0(stackFrame, beginLine, endLine, spec, expectedContext); assertFalse(stackFrame instanceof TLCStateStackFrame); assertFalse(stackFrame instanceof TLCActionStackFrame); } private static void assertTLCFrame0(final StackFrame stackFrame, final int beginLine, final int endLine, String spec, final Context expectedContext) { assertNotNull(stackFrame); assertEquals(beginLine, stackFrame.getLine()); assertEquals(endLine, (int) stackFrame.getEndLine()); assertEquals(spec, stackFrame.getSource().getName()); assertTrue(stackFrame instanceof TLCStackFrame); final TLCStackFrame f = (TLCStackFrame) stackFrame; assertNotNull(f.getTool()); final Optional<Scope> scope = Arrays.asList(f.getScopes()).stream() .filter(s -> TLCStackFrame.SCOPE.equals(s.getName())).findAny(); if (expectedContext != null && expectedContext == Context.Empty) { assertFalse(scope.isPresent()); return; } assertTrue(scope.isPresent()); Scope sp = scope.get(); Variable[] variables = f.getVariables(sp.getVariablesReference()); assertNotNull(variables); if (expectedContext!=null) { assertEquals(0, new ContextComparator().compare(expectedContext, f.getContext())); assertEquals(expectedContext.depth(), variables.length); } } protected static Variable createVariable(String name, String value, String type) { Variable e = new Variable(); e.setName(name); e.setValue(value); e.setType(type); return e; } @Override public void stopped(StoppedEventArguments args) { // The executor/TLC thread calls this stop method. phase.arriveAndAwaitAdvance(); } protected static class ContextComparator implements Comparator<Context> { @Override public int compare(Context o1, Context o2) { if (o1 == o2) { return 0; } while (o1.hasNext()) { //TODO: Compare Context#name too! if (!o1.getValue().equals(o2.getValue())) { return -1; } o1 = o1.next(); o2 = o2.next(); } return o1.hasNext() == o2.hasNext() ? 0 : -1; } } protected class TestTLCDebugger extends TLCDebugger { public Breakpoint[] replaceAllBreakpointsWithUnchecked(final String rootModule, int line) { unsetBreakpoints(); // Set new breakpoint. try { return setBreakpoints(rootModule, line); } catch (Exception e) { return new Breakpoint[0]; } } /** * Replaces all existing breakpoints in all modules with the given one. Compared * to TLCDebugger.setBreakpoints(..), this does replace breakpoints even in * other modules. */ public Breakpoint[] replaceAllBreakpointsWith(final String rootModule, int line) throws Exception { unsetBreakpoints(); // Set new breakpoint. return setBreakpoints(rootModule, line); } public Breakpoint[] setBreakpoints(final String rootModule, int line) throws Exception { return setBreakpoints(createBreakpointArgument(rootModule, line)).get().getBreakpoints(); } public void unsetBreakpoints() { new HashSet<>(breakpoints.keySet()).forEach(module -> { final SetBreakpointsArguments args = new SetBreakpointsArguments(); args.setBreakpoints(new SourceBreakpoint[0]); final Source source = new Source(); source.setName(module); args.setSource(source); setBreakpoints(args); }); } public StackFrame[] stackTrace() throws Exception { // Convenience methods return stackTrace(new StackTraceArguments()).get().getStackFrames(); } public StackFrame[] next() throws Exception { // Convenience methods next(new NextArguments()).whenComplete((a, b) -> phase.arriveAndAwaitAdvance()); return stackTrace(); } public StackFrame[] next(final int steps) throws Exception { // Convenience methods for (int i = 0; i < steps; i++) { next(new NextArguments()).whenComplete((a, b) -> phase.arriveAndAwaitAdvance()); } return stackTrace(); } public StackFrame[] stepOut() throws Exception { // Convenience methods stepOut(new StepOutArguments()).whenComplete((a, b) -> phase.arriveAndAwaitAdvance()); return stackTrace(); } public StackFrame[] stepIn(final int steps) throws Exception { // Convenience methods for (int i = 0; i < steps; i++) { stepIn(new StepInArguments()).whenComplete((a, b) -> phase.arriveAndAwaitAdvance()); } return stackTrace(); } public StackFrame[] stepIn() throws Exception { return stepIn(1); } public StackFrame[] continue_() throws Exception { // Convenience methods continue_(new ContinueArguments()).whenComplete((a, b) -> phase.arriveAndAwaitAdvance()); return stackTrace(); } public EvaluateResponse evaluate(final String module, final String symbol, final int beginLine, final int beginColumn, final int endLine, final int endColumn) throws Exception { final EvaluateArguments args = new EvaluateArguments(); args.setContext(EvaluateArgumentsContext.HOVER); // Resolve module to absolute path required by URI. final URI uri = new URI("tlaplus", "", Paths.get(module).toAbsolutePath().toString(), symbol, String.format("%s %s %s %s", beginLine, beginColumn, endLine, endColumn)); args.setExpression(uri.toASCIIString()); args.setFrameId(this.stack.peek().getId()); // Just use the id of the topmost frame. return evaluate(args).get(); } public class TestLauncher implements Launcher<IDebugProtocolClient> { @Override public IDebugProtocolClient getRemoteProxy() { return TLCDebuggerTestCase.this; } @Override public RemoteEndpoint getRemoteEndpoint() { return null; } @Override public Future<Void> startListening() { return null; } } public TestTLCDebugger() { launcher = new TestLauncher(); } } }
mit
kataras/gapi
httptest/httptest.go
5685
package httptest import ( "crypto/tls" "net/http" "net/http/httptest" "testing" "github.com/kataras/iris/v12" "github.com/kataras/iris/v12/context" "github.com/kataras/iris/v12/core/router" "github.com/kataras/iris/v12/i18n" "github.com/iris-contrib/httpexpect/v2" ) type ( // OptionSetter sets a configuration field to the configuration OptionSetter interface { // Set receives a pointer to the Configuration type and does the job of filling it Set(c *Configuration) } // OptionSet implements the OptionSetter OptionSet func(c *Configuration) ) // Set is the func which makes the OptionSet an OptionSetter, this is used mostly func (o OptionSet) Set(c *Configuration) { o(c) } // Configuration httptest configuration type Configuration struct { // URL the base url. // Defaults to empty string "". URL string // Debug if true then debug messages from the httpexpect will be shown when a test runs // Defaults to false. Debug bool // LogLevel sets the application's log level. // Defaults to "disable" when testing. LogLevel string // If true then the underline httpexpect report will be acquired by the NewRequireReporter // call instead of the default NewAssertReporter. // Defaults to false. Strict bool // Note: if more reports are available in the future then add a Reporter interface as a field. } // Set implements the OptionSetter for the Configuration itself func (c Configuration) Set(main *Configuration) { main.URL = c.URL main.Debug = c.Debug if c.LogLevel != "" { main.LogLevel = c.LogLevel } main.Strict = c.Strict } var ( // URL if set then it sets the httptest's BaseURL. // Defaults to empty string "". URL = func(schemeAndHost string) OptionSet { return func(c *Configuration) { c.URL = schemeAndHost } } // Debug if true then debug messages from the httpexpect will be shown when a test runs // Defaults to false. Debug = func(val bool) OptionSet { return func(c *Configuration) { c.Debug = val } } // LogLevel sets the application's log level. // Defaults to disabled when testing. LogLevel = func(level string) OptionSet { return func(c *Configuration) { c.LogLevel = level } } // Strict sets the Strict configuration field to "val". // Applies the NewRequireReporter instead of the default one. // Use this if you want the test to fail on first error, before all checks have been done. Strict = func(val bool) OptionSet { return func(c *Configuration) { c.Strict = val } } ) // DefaultConfiguration returns the default configuration for the httptest. func DefaultConfiguration() *Configuration { return &Configuration{URL: "", Debug: false, LogLevel: "disable"} } // New Prepares and returns a new test framework based on the "app". // Usage: // httptest.New(t, app) // With options: // httptest.New(t, app, httptest.URL(...), httptest.Debug(true), httptest.LogLevel("debug"), httptest.Strict(true)) // // Example at: https://github.com/kataras/iris/tree/master/_examples/testing/httptest. func New(t *testing.T, app *iris.Application, setters ...OptionSetter) *httpexpect.Expect { conf := DefaultConfiguration() for _, setter := range setters { setter.Set(conf) } // set the logger or disable it (default). app.Logger().SetLevel(conf.LogLevel) if err := app.Build(); err != nil { if conf.LogLevel != "disable" { app.Logger().Println(err.Error()) return nil } } var reporter httpexpect.Reporter if conf.Strict { reporter = httpexpect.NewRequireReporter(t) } else { reporter = httpexpect.NewAssertReporter(t) } testConfiguration := httpexpect.Config{ BaseURL: conf.URL, Client: &http.Client{ Transport: httpexpect.NewBinder(app), Jar: httpexpect.NewJar(), }, Reporter: reporter, } if conf.Debug { testConfiguration.Printers = []httpexpect.Printer{ httpexpect.NewDebugPrinter(t, true), } } return httpexpect.WithConfig(testConfiguration) } // NewInsecure same as New but receives a single host instead of the whole framework. // Useful for testing running TLS servers. func NewInsecure(t *testing.T, setters ...OptionSetter) *httpexpect.Expect { conf := DefaultConfiguration() for _, setter := range setters { setter.Set(conf) } transport := &http.Transport{ TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, // lint:ignore } testConfiguration := httpexpect.Config{ BaseURL: conf.URL, Client: &http.Client{ Transport: transport, Jar: httpexpect.NewJar(), }, Reporter: httpexpect.NewAssertReporter(t), } if conf.Debug { testConfiguration.Printers = []httpexpect.Printer{ httpexpect.NewDebugPrinter(t, true), } } return httpexpect.WithConfig(testConfiguration) } // Aliases for "net/http/httptest" package. See `Do` package-level function. var ( NewRecorder = httptest.NewRecorder NewRequest = httptest.NewRequest ) // Do is a simple helper which can be used to test handlers individually // with the "net/http/httptest" package. // This package contains aliases for `NewRequest` and `NewRecorder` too. // // For a more efficient testing please use the `New` function instead. func Do(w http.ResponseWriter, r *http.Request, handler iris.Handler, irisConfigurators ...iris.Configurator) { app := new(iris.Application) app.I18n = i18n.New() app.Configure(iris.WithConfiguration(iris.DefaultConfiguration()), iris.WithLogLevel("disable")) app.Configure(irisConfigurators...) app.HTTPErrorHandler = router.NewDefaultHandler(app.ConfigurationReadOnly(), app.Logger()) app.ContextPool = context.New(func() interface{} { return context.NewContext(app) }) ctx := app.ContextPool.Acquire(w, r) handler(ctx) app.ContextPool.Release(ctx) }
mit
RyderReed15/LightningMaterials
src/main/java/lightningmats/entity/chest/ChestRenderer.java
6702
package lightningmats.entity.chest; import cpw.mods.fml.common.FMLLog; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import java.util.Calendar; import net.minecraft.block.Block; import net.minecraft.block.BlockChest; import net.minecraft.client.model.ModelChest; import net.minecraft.client.model.ModelLargeChest; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntityChest; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL12; @SideOnly(Side.CLIENT) public class ChestRenderer extends TileEntitySpecialRenderer { private static final ResourceLocation normaldouble1 = new ResourceLocation("lightningmats:textures/entity/chest/TileEntityLightningChest1.png"); private static final ResourceLocation christmas1 = new ResourceLocation("textures/entity/chest/christmas_double.png"); private static final ResourceLocation normaldouble = new ResourceLocation("lightningmats:textures/entity/chest/TileEntityLightningChest1.png"); private static final ResourceLocation normal1 = new ResourceLocation("lightningmats:textures/entity/chest/TileEntityLightningChest.png"); private static final ResourceLocation christmas = new ResourceLocation("textures/entity/chest/christmas.png"); private static final ResourceLocation normal = new ResourceLocation("lightningmats:textures/entity/chest/TileEntityLightningChest.png"); private ModelChest field_147510_h = new ModelChest(); private ModelChest field_147511_i = new ModelLargeChest(); private boolean field_147509_j; private static final String __OBFID = "CL_00000965"; public ChestRenderer() { Calendar calendar = Calendar.getInstance(); if (calendar.get(2) + 1 == 12 && calendar.get(5) >= 24 && calendar.get(5) <= 26) { this.field_147509_j = true; } } public void renderTileEntityAt(TileEntityLightningChest p_147500_1_, double p_147500_2_, double p_147500_4_, double p_147500_6_, float p_147500_8_) { int i; if (!p_147500_1_.hasWorldObj()) { i = 0; } else { Block block = p_147500_1_.getBlockType(); i = p_147500_1_.getBlockMetadata(); if (block instanceof BlockChest && i == 0) { try { ((BlockChest)block).func_149954_e(p_147500_1_.getWorldObj(), p_147500_1_.xCoord, p_147500_1_.yCoord, p_147500_1_.zCoord); } catch (ClassCastException e) { FMLLog.severe("Attempted to render a chest at %d, %d, %d that was not a chest", p_147500_1_.xCoord, p_147500_1_.yCoord, p_147500_1_.zCoord); } i = p_147500_1_.getBlockMetadata(); } p_147500_1_.checkForAdjacentChests(); } if (p_147500_1_.adjacentChestZNeg == null && p_147500_1_.adjacentChestXNeg == null) { ModelChest modelchest; if (p_147500_1_.adjacentChestXPos == null && p_147500_1_.adjacentChestZPos == null) { modelchest = this.field_147510_h; if (p_147500_1_.func_145980_j() == 1) { this.bindTexture(normal1); } else if (this.field_147509_j) { this.bindTexture(christmas); } else { this.bindTexture(normal); } } else { modelchest = this.field_147511_i; if (p_147500_1_.func_145980_j() == 1) { this.bindTexture(normaldouble1); } else if (this.field_147509_j) { this.bindTexture(christmas1); } else { this.bindTexture(normaldouble); } } GL11.glPushMatrix(); GL11.glEnable(GL12.GL_RESCALE_NORMAL); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); GL11.glTranslatef((float)p_147500_2_, (float)p_147500_4_ + 1.0F, (float)p_147500_6_ + 1.0F); GL11.glScalef(1.0F, -1.0F, -1.0F); GL11.glTranslatef(0.5F, 0.5F, 0.5F); short short1 = 0; if (i == 2) { short1 = 180; } if (i == 3) { short1 = 0; } if (i == 4) { short1 = 90; } if (i == 5) { short1 = -90; } if (i == 2 && p_147500_1_.adjacentChestXPos != null) { GL11.glTranslatef(1.0F, 0.0F, 0.0F); } if (i == 5 && p_147500_1_.adjacentChestZPos != null) { GL11.glTranslatef(0.0F, 0.0F, -1.0F); } GL11.glRotatef((float)short1, 0.0F, 1.0F, 0.0F); GL11.glTranslatef(-0.5F, -0.5F, -0.5F); float f1 = p_147500_1_.prevLidAngle + (p_147500_1_.lidAngle - p_147500_1_.prevLidAngle) * p_147500_8_; float f2; if (p_147500_1_.adjacentChestZNeg != null) { f2 = p_147500_1_.adjacentChestZNeg.prevLidAngle + (p_147500_1_.adjacentChestZNeg.lidAngle - p_147500_1_.adjacentChestZNeg.prevLidAngle) * p_147500_8_; if (f2 > f1) { f1 = f2; } } if (p_147500_1_.adjacentChestXNeg != null) { f2 = p_147500_1_.adjacentChestXNeg.prevLidAngle + (p_147500_1_.adjacentChestXNeg.lidAngle - p_147500_1_.adjacentChestXNeg.prevLidAngle) * p_147500_8_; if (f2 > f1) { f1 = f2; } } f1 = 1.0F - f1; f1 = 1.0F - f1 * f1 * f1; modelchest.chestLid.rotateAngleX = -(f1 * (float)Math.PI / 2.0F); modelchest.renderAll(); GL11.glDisable(GL12.GL_RESCALE_NORMAL); GL11.glPopMatrix(); GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); } } public void renderTileEntityAt(TileEntity p_147500_1_, double p_147500_2_, double p_147500_4_, double p_147500_6_, float p_147500_8_) { this.renderTileEntityAt((TileEntityLightningChest)p_147500_1_, p_147500_2_, p_147500_4_, p_147500_6_, p_147500_8_); } }
mit
Kryptos-FR/markdig-wpf
src/Markdig.Wpf/Renderers/Xaml/CodeBlockRenderer.cs
1115
// Copyright (c) Nicolas Musset. All rights reserved. // This file is licensed under the MIT license. // See the LICENSE.md file in the project root for more information. using System; using Markdig.Syntax; namespace Markdig.Renderers.Xaml { /// <summary> /// A XAML renderer for a <see cref="CodeBlock"/>. /// </summary> /// <seealso cref="Xaml.XamlObjectRenderer{T}" /> public class CodeBlockRenderer : XamlObjectRenderer<CodeBlock> { protected override void Write(XamlRenderer renderer, CodeBlock obj) { if (renderer == null) throw new ArgumentNullException(nameof(renderer)); if (obj == null) throw new ArgumentNullException(nameof(obj)); renderer.EnsureLine(); renderer.Write("<Paragraph xml:space=\"preserve\""); // Apply code block styling renderer.Write(" Style=\"{StaticResource {x:Static markdig:Styles.CodeBlockStyleKey}}\""); renderer.WriteLine(">"); renderer.WriteLeafRawLines(obj, true, true); renderer.WriteLine("</Paragraph>"); } } }
mit
gregumo/victoire
Bundle/WidgetBundle/Tests/Generator/WidgetGeneratorTest.php
1921
<?php namespace Bundle\WidgetBundle\Tests\Generator; use Sensio\Bundle\GeneratorBundle\Tests\Generator\GeneratorTest; use Victoire\Bundle\WidgetBundle\Generator\WidgetGenerator; class WidgetGeneratorTest extends GeneratorTest { public function testGenerate() { $this->getGenerator()->generate( $namespace = 'Victoire\\Widget\\TestBundle', $bundle = 'VictoireWidgetTestBundle', $dir = $this->tmpDir, $format = 'annotation', $structure = null, $fields = [ 'test' => [ 'columnName' => 'test', 'fieldName' => 'test', 'type' => 'string', 'length' => 255, ], ], $parent = 'Anakin', $packagistParentName = 'friendsofvictoire/anakin-widget', $contentResolver = false, $parentContentResolver = false, $orgname = 'friendsofvictoire' ); $files = [ 'README.md', ]; foreach ($files as $file) { $this->assertTrue(file_exists($this->tmpDir.'/Victoire/Widget/TestBundle/'.$file), sprintf('%s has been generated', $file)); } } protected function getGenerator() { $generator = new WidgetGenerator(); $skeletonDirs = [ __DIR__.'/../../../../vendor/sensio/generator-bundle/Sensio/Bundle/GeneratorBundle/Resources/skeleton', __DIR__.'/../../Resources/skeleton', ]; $generator->setSkeletonDirs($skeletonDirs); $generator->setTemplating(new \Twig_Environment(new \Twig_Loader_Filesystem($skeletonDirs), [ 'debug' => true, 'cache' => false, 'strict_variables' => true, 'autoescape' => false, ])); return $generator; } }
mit
yojimbo87/Arango.VelocyPack
src/Arango.VelocyPack/Arango.VelocyPack.Tests/Deserialization/Numbers/SmallIntegerValueDeserializationTests.cs
5367
using NUnit.Framework; using Arango.VelocyPack.Tests.Utils; namespace Arango.VelocyPack.Tests.Deserialization.Numbers { [TestFixture] public class SmallIntegerValueDeserializationTests { [Test] public void DeserializeZeroIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonZeroInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(0, value); } [Test] public void DeserializePosOneIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonPosOneInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(1, value); } [Test] public void DeserializePosTwoIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonPosTwoInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(2, value); } [Test] public void DeserializePosThreeIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonPosThreeInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(3, value); } [Test] public void DeserializePosFourIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonPosFourInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(4, value); } [Test] public void DeserializePosFiveIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonPosFiveInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(5, value); } [Test] public void DeserializePosSixIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonPosSixInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(6, value); } [Test] public void DeserializePosSevenIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonPosSevenInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(7, value); } [Test] public void DeserializePosEightIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonPosEightInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(8, value); } [Test] public void DeserializePosNineIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonPosNineInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(9, value); } [Test] public void DeserializeNegSixIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonNegSixInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(-6, value); } [Test] public void DeserializeNegFiveIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonNegFiveInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(-5, value); } [Test] public void DeserializeNegFourIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonNegFourInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(-4, value); } [Test] public void DeserializeNegThreeIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonNegThreeInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(-3, value); } [Test] public void DeserializeNegTwoIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonNegTwoInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(-2, value); } [Test] public void DeserializeNegOneIntValue() { // given var data = Converter.ToVPackBytes(Paths.JsonNegOneInt); // when var value = VPack.ToObject<sbyte>(data); // then Assert.AreEqual(-1, value); } } }
mit
nathanvda/docx
lib/docx/elements/bookmark.rb
2465
require 'docx/elements/element' module Docx module Elements class Bookmark include Element attr_accessor :name def self.tag 'bookmarkStart' end def initialize(node) @node = node @name = @node['w:name'] end # Insert text before bookmarkStart node def insert_text_before(text) text_run = get_run_before text_run.text = "#{text_run.text}#{text}" end # Insert text after bookmarkStart node def insert_text_after(text) text_run = get_run_after text_run.text = "#{text}#{text_run.text}" end # insert multiple lines starting with paragraph containing bookmark node. def insert_multiple_lines(text_array) # Hold paragraphs to be inserted into, corresponding to the index of the strings in the text array paragraphs = [] paragraph = self.parent_paragraph # Remove text from paragraph paragraph.blank! paragraphs << paragraph for i in 0...(text_array.size - 1) # Copy previous paragraph new_p = paragraphs[i].copy # Insert as sibling of previous paragraph new_p.insert_after(paragraphs[i]) paragraphs << new_p end # Insert text into corresponding newly created paragraphs paragraphs.each_index do |index| paragraphs[index].text = text_array[index] end end # Get text run immediately prior to bookmark node def get_run_before # at_xpath returns the first match found and preceding-sibling returns siblings in the # order they appear in the document not the order as they appear when moving out from # the starting node if not (r_nodes = @node.xpath("./preceding-sibling::w:r")).empty? r_node = r_nodes.last Containers::TextRun.new(r_node) else new_r = Containers::TextRun.create_with(self) new_r.insert_before(self) new_r end end # Get text run immediately after bookmark node def get_run_after if (r_node = @node.at_xpath("./following-sibling::w:r")) Containers::TextRun.new(r_node) else new_r = Containers::TextRun.create_with(self) new_r.insert_after(self) new_r end end end end end
mit
croudcare/ethon_061
spec/ethon/multi/stack_spec.rb
2129
require 'spec_helper' describe Ethon::Multi::Stack do let(:multi) { Ethon::Multi.new } let(:easy) { Ethon::Easy.new } describe "#add" do context "when easy already added" do before { multi.add(easy) } it "returns nil" do expect(multi.add(easy)).to be_nil end end context "when easy new" do it "adds easy to multi" do Ethon::Curl.should_receive(:multi_add_handle).and_return(:ok) multi.add(easy) end it "adds easy to easy_handles" do multi.add(easy) expect(multi.easy_handles).to include(easy) end end context "when multi_add_handle fails" do it "raises multi add error" do Ethon::Curl.should_receive(:multi_add_handle).and_return(:bad_easy_handle) expect{ multi.add(easy) }.to raise_error(Ethon::Errors::MultiAdd) end end context "when multi cleaned up before" do it "raises multi add error" do Ethon::Curl.multi_cleanup(multi.handle) expect{ multi.add(easy) }.to raise_error(Ethon::Errors::MultiAdd) end end end describe "#delete" do context "when easy in easy_handles" do before { multi.add(easy) } it "deletes easy from multi" do Ethon::Curl.should_receive(:multi_remove_handle).and_return(:ok) multi.delete(easy) end it "deletes easy from easy_handles" do multi.delete(easy) expect(multi.easy_handles).to_not include(easy) end end context "when easy is not in easy_handles" do it "does nothing" do Ethon::Curl.should_receive(:multi_add_handle).and_return(:ok) multi.add(easy) end it "adds easy to easy_handles" do multi.add(easy) expect(multi.easy_handles).to include(easy) end end context "when multi_remove_handle fails" do before { multi.add(easy) } it "raises multi remove error" do Ethon::Curl.should_receive(:multi_remove_handle).and_return(:bad_easy_handle) expect{ multi.delete(easy) }.to raise_error(Ethon::Errors::MultiRemove) end end end end
mit
Azure/azure-sdk-for-net
sdk/websites/Microsoft.Azure.Management.WebSites/src/Generated/StaticSitesOperationsExtensions.cs
186562
// <auto-generated> // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace Microsoft.Azure.Management.WebSites { using Microsoft.Rest; using Microsoft.Rest.Azure; using Models; using System.Threading; using System.Threading.Tasks; /// <summary> /// Extension methods for StaticSitesOperations. /// </summary> public static partial class StaticSitesOperationsExtensions { /// <summary> /// Generates a preview workflow file for the static site /// </summary> /// <remarks> /// Description for Generates a preview workflow file for the static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// Location where you plan to create the static site. /// </param> /// <param name='staticSitesWorkflowPreviewRequest'> /// A JSON representation of the StaticSitesWorkflowPreviewRequest properties. /// See example. /// </param> public static StaticSitesWorkflowPreview PreviewWorkflow(this IStaticSitesOperations operations, string location, StaticSitesWorkflowPreviewRequest staticSitesWorkflowPreviewRequest) { return operations.PreviewWorkflowAsync(location, staticSitesWorkflowPreviewRequest).GetAwaiter().GetResult(); } /// <summary> /// Generates a preview workflow file for the static site /// </summary> /// <remarks> /// Description for Generates a preview workflow file for the static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='location'> /// Location where you plan to create the static site. /// </param> /// <param name='staticSitesWorkflowPreviewRequest'> /// A JSON representation of the StaticSitesWorkflowPreviewRequest properties. /// See example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSitesWorkflowPreview> PreviewWorkflowAsync(this IStaticSitesOperations operations, string location, StaticSitesWorkflowPreviewRequest staticSitesWorkflowPreviewRequest, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PreviewWorkflowWithHttpMessagesAsync(location, staticSitesWorkflowPreviewRequest, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Get all Static Sites for a subscription. /// </summary> /// <remarks> /// Description for Get all Static Sites for a subscription. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IPage<StaticSiteARMResource> List(this IStaticSitesOperations operations) { return operations.ListAsync().GetAwaiter().GetResult(); } /// <summary> /// Get all Static Sites for a subscription. /// </summary> /// <remarks> /// Description for Get all Static Sites for a subscription. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteARMResource>> ListAsync(this IStaticSitesOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets all static sites in the specified resource group. /// </summary> /// <remarks> /// Description for Gets all static sites in the specified resource group. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> public static IPage<StaticSiteARMResource> GetStaticSitesByResourceGroup(this IStaticSitesOperations operations, string resourceGroupName) { return operations.GetStaticSitesByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); } /// <summary> /// Gets all static sites in the specified resource group. /// </summary> /// <remarks> /// Description for Gets all static sites in the specified resource group. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteARMResource>> GetStaticSitesByResourceGroupAsync(this IStaticSitesOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetStaticSitesByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the details of a static site. /// </summary> /// <remarks> /// Description for Gets the details of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> public static StaticSiteARMResource GetStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name) { return operations.GetStaticSiteAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Gets the details of a static site. /// </summary> /// <remarks> /// Description for Gets the details of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteARMResource> GetStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetStaticSiteWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Creates a new static site in an existing resource group, or updates an /// existing static site. /// </summary> /// <remarks> /// Description for Creates a new static site in an existing resource group, or /// updates an existing static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to create or update. /// </param> /// <param name='staticSiteEnvelope'> /// A JSON representation of the staticsite properties. See example. /// </param> public static StaticSiteARMResource CreateOrUpdateStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteARMResource staticSiteEnvelope) { return operations.CreateOrUpdateStaticSiteAsync(resourceGroupName, name, staticSiteEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Creates a new static site in an existing resource group, or updates an /// existing static site. /// </summary> /// <remarks> /// Description for Creates a new static site in an existing resource group, or /// updates an existing static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to create or update. /// </param> /// <param name='staticSiteEnvelope'> /// A JSON representation of the staticsite properties. See example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteARMResource> CreateOrUpdateStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteARMResource staticSiteEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateStaticSiteWithHttpMessagesAsync(resourceGroupName, name, staticSiteEnvelope, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Deletes a static site. /// </summary> /// <remarks> /// Description for Deletes a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to delete. /// </param> public static void DeleteStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name) { operations.DeleteStaticSiteAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Deletes a static site. /// </summary> /// <remarks> /// Description for Deletes a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteStaticSiteWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Creates a new static site in an existing resource group, or updates an /// existing static site. /// </summary> /// <remarks> /// Description for Creates a new static site in an existing resource group, or /// updates an existing static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to create or update. /// </param> /// <param name='staticSiteEnvelope'> /// A JSON representation of the staticsite properties. See example. /// </param> public static StaticSiteARMResource UpdateStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSitePatchResource staticSiteEnvelope) { return operations.UpdateStaticSiteAsync(resourceGroupName, name, staticSiteEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Creates a new static site in an existing resource group, or updates an /// existing static site. /// </summary> /// <remarks> /// Description for Creates a new static site in an existing resource group, or /// updates an existing static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to create or update. /// </param> /// <param name='staticSiteEnvelope'> /// A JSON representation of the staticsite properties. See example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteARMResource> UpdateStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSitePatchResource staticSiteEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateStaticSiteWithHttpMessagesAsync(resourceGroupName, name, staticSiteEnvelope, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the list of users of a static site. /// </summary> /// <remarks> /// Description for Gets the list of users of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='authprovider'> /// The auth provider for the users. /// </param> public static IPage<StaticSiteUserARMResource> ListStaticSiteUsers(this IStaticSitesOperations operations, string resourceGroupName, string name, string authprovider) { return operations.ListStaticSiteUsersAsync(resourceGroupName, name, authprovider).GetAwaiter().GetResult(); } /// <summary> /// Gets the list of users of a static site. /// </summary> /// <remarks> /// Description for Gets the list of users of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='authprovider'> /// The auth provider for the users. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteUserARMResource>> ListStaticSiteUsersAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string authprovider, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteUsersWithHttpMessagesAsync(resourceGroupName, name, authprovider, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Deletes the user entry from the static site. /// </summary> /// <remarks> /// Description for Deletes the user entry from the static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the staticsite. /// </param> /// <param name='authprovider'> /// The auth provider for this user. /// </param> /// <param name='userid'> /// The user id of the user. /// </param> public static void DeleteStaticSiteUser(this IStaticSitesOperations operations, string resourceGroupName, string name, string authprovider, string userid) { operations.DeleteStaticSiteUserAsync(resourceGroupName, name, authprovider, userid).GetAwaiter().GetResult(); } /// <summary> /// Deletes the user entry from the static site. /// </summary> /// <remarks> /// Description for Deletes the user entry from the static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the staticsite. /// </param> /// <param name='authprovider'> /// The auth provider for this user. /// </param> /// <param name='userid'> /// The user id of the user. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteStaticSiteUserAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string authprovider, string userid, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteStaticSiteUserWithHttpMessagesAsync(resourceGroupName, name, authprovider, userid, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Updates a user entry with the listed roles /// </summary> /// <remarks> /// Description for Updates a user entry with the listed roles /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='authprovider'> /// The auth provider for this user. /// </param> /// <param name='userid'> /// The user id of the user. /// </param> /// <param name='staticSiteUserEnvelope'> /// A JSON representation of the StaticSiteUser properties. See example. /// </param> public static StaticSiteUserARMResource UpdateStaticSiteUser(this IStaticSitesOperations operations, string resourceGroupName, string name, string authprovider, string userid, StaticSiteUserARMResource staticSiteUserEnvelope) { return operations.UpdateStaticSiteUserAsync(resourceGroupName, name, authprovider, userid, staticSiteUserEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Updates a user entry with the listed roles /// </summary> /// <remarks> /// Description for Updates a user entry with the listed roles /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='authprovider'> /// The auth provider for this user. /// </param> /// <param name='userid'> /// The user id of the user. /// </param> /// <param name='staticSiteUserEnvelope'> /// A JSON representation of the StaticSiteUser properties. See example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteUserARMResource> UpdateStaticSiteUserAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string authprovider, string userid, StaticSiteUserARMResource staticSiteUserEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateStaticSiteUserWithHttpMessagesAsync(resourceGroupName, name, authprovider, userid, staticSiteUserEnvelope, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets all static site builds for a particular static site. /// </summary> /// <remarks> /// Description for Gets all static site builds for a particular static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> public static IPage<StaticSiteBuildARMResource> GetStaticSiteBuilds(this IStaticSitesOperations operations, string resourceGroupName, string name) { return operations.GetStaticSiteBuildsAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Gets all static site builds for a particular static site. /// </summary> /// <remarks> /// Description for Gets all static site builds for a particular static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteBuildARMResource>> GetStaticSiteBuildsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetStaticSiteBuildsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the details of a static site build. /// </summary> /// <remarks> /// Description for Gets the details of a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> public static StaticSiteBuildARMResource GetStaticSiteBuild(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName) { return operations.GetStaticSiteBuildAsync(resourceGroupName, name, environmentName).GetAwaiter().GetResult(); } /// <summary> /// Gets the details of a static site build. /// </summary> /// <remarks> /// Description for Gets the details of a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteBuildARMResource> GetStaticSiteBuildAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetStaticSiteBuildWithHttpMessagesAsync(resourceGroupName, name, environmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Deletes a static site build. /// </summary> /// <remarks> /// Description for Deletes a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> public static void DeleteStaticSiteBuild(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName) { operations.DeleteStaticSiteBuildAsync(resourceGroupName, name, environmentName).GetAwaiter().GetResult(); } /// <summary> /// Deletes a static site build. /// </summary> /// <remarks> /// Description for Deletes a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteStaticSiteBuildAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteStaticSiteBuildWithHttpMessagesAsync(resourceGroupName, name, environmentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Creates or updates the app settings of a static site build. /// </summary> /// <remarks> /// Description for Creates or updates the app settings of a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='appSettings'> /// The dictionary containing the static site app settings to update. /// </param> public static StringDictionary CreateOrUpdateStaticSiteBuildAppSettings(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, StringDictionary appSettings) { return operations.CreateOrUpdateStaticSiteBuildAppSettingsAsync(resourceGroupName, name, environmentName, appSettings).GetAwaiter().GetResult(); } /// <summary> /// Creates or updates the app settings of a static site build. /// </summary> /// <remarks> /// Description for Creates or updates the app settings of a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='appSettings'> /// The dictionary containing the static site app settings to update. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StringDictionary> CreateOrUpdateStaticSiteBuildAppSettingsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, StringDictionary appSettings, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateStaticSiteBuildAppSettingsWithHttpMessagesAsync(resourceGroupName, name, environmentName, appSettings, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Creates or updates the function app settings of a static site build. /// </summary> /// <remarks> /// Description for Creates or updates the function app settings of a static /// site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='appSettings'> /// The dictionary containing the static site function app settings to update. /// </param> public static StringDictionary CreateOrUpdateStaticSiteBuildFunctionAppSettings(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, StringDictionary appSettings) { return operations.CreateOrUpdateStaticSiteBuildFunctionAppSettingsAsync(resourceGroupName, name, environmentName, appSettings).GetAwaiter().GetResult(); } /// <summary> /// Creates or updates the function app settings of a static site build. /// </summary> /// <remarks> /// Description for Creates or updates the function app settings of a static /// site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='appSettings'> /// The dictionary containing the static site function app settings to update. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StringDictionary> CreateOrUpdateStaticSiteBuildFunctionAppSettingsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, StringDictionary appSettings, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateStaticSiteBuildFunctionAppSettingsWithHttpMessagesAsync(resourceGroupName, name, environmentName, appSettings, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the functions of a particular static site build. /// </summary> /// <remarks> /// Description for Gets the functions of a particular static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> public static IPage<StaticSiteFunctionOverviewARMResource> ListStaticSiteBuildFunctions(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName) { return operations.ListStaticSiteBuildFunctionsAsync(resourceGroupName, name, environmentName).GetAwaiter().GetResult(); } /// <summary> /// Gets the functions of a particular static site build. /// </summary> /// <remarks> /// Description for Gets the functions of a particular static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteFunctionOverviewARMResource>> ListStaticSiteBuildFunctionsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteBuildFunctionsWithHttpMessagesAsync(resourceGroupName, name, environmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the application settings of a static site build. /// </summary> /// <remarks> /// Description for Gets the application settings of a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> public static StringDictionary ListStaticSiteBuildAppSettings(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName) { return operations.ListStaticSiteBuildAppSettingsAsync(resourceGroupName, name, environmentName).GetAwaiter().GetResult(); } /// <summary> /// Gets the application settings of a static site build. /// </summary> /// <remarks> /// Description for Gets the application settings of a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StringDictionary> ListStaticSiteBuildAppSettingsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteBuildAppSettingsWithHttpMessagesAsync(resourceGroupName, name, environmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the application settings of a static site build. /// </summary> /// <remarks> /// Description for Gets the application settings of a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> public static StringDictionary ListStaticSiteBuildFunctionAppSettings(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName) { return operations.ListStaticSiteBuildFunctionAppSettingsAsync(resourceGroupName, name, environmentName).GetAwaiter().GetResult(); } /// <summary> /// Gets the application settings of a static site build. /// </summary> /// <remarks> /// Description for Gets the application settings of a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StringDictionary> ListStaticSiteBuildFunctionAppSettingsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteBuildFunctionAppSettingsWithHttpMessagesAsync(resourceGroupName, name, environmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the details of the user provided function apps registered with a /// static site build /// </summary> /// <remarks> /// Description for Gets the details of the user provided function apps /// registered with a static site build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> public static IPage<StaticSiteUserProvidedFunctionAppARMResource> GetUserProvidedFunctionAppsForStaticSiteBuild(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName) { return operations.GetUserProvidedFunctionAppsForStaticSiteBuildAsync(resourceGroupName, name, environmentName).GetAwaiter().GetResult(); } /// <summary> /// Gets the details of the user provided function apps registered with a /// static site build /// </summary> /// <remarks> /// Description for Gets the details of the user provided function apps /// registered with a static site build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteUserProvidedFunctionAppARMResource>> GetUserProvidedFunctionAppsForStaticSiteBuildAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUserProvidedFunctionAppsForStaticSiteBuildWithHttpMessagesAsync(resourceGroupName, name, environmentName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the details of the user provided function app registered with a static /// site build /// </summary> /// <remarks> /// Description for Gets the details of the user provided function app /// registered with a static site build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='functionAppName'> /// Name of the function app registered with the static site build. /// </param> public static StaticSiteUserProvidedFunctionAppARMResource GetUserProvidedFunctionAppForStaticSiteBuild(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, string functionAppName) { return operations.GetUserProvidedFunctionAppForStaticSiteBuildAsync(resourceGroupName, name, environmentName, functionAppName).GetAwaiter().GetResult(); } /// <summary> /// Gets the details of the user provided function app registered with a static /// site build /// </summary> /// <remarks> /// Description for Gets the details of the user provided function app /// registered with a static site build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='functionAppName'> /// Name of the function app registered with the static site build. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteUserProvidedFunctionAppARMResource> GetUserProvidedFunctionAppForStaticSiteBuildAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, string functionAppName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUserProvidedFunctionAppForStaticSiteBuildWithHttpMessagesAsync(resourceGroupName, name, environmentName, functionAppName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Register a user provided function app with a static site build /// </summary> /// <remarks> /// Description for Register a user provided function app with a static site /// build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='functionAppName'> /// Name of the function app to register with the static site build. /// </param> /// <param name='staticSiteUserProvidedFunctionEnvelope'> /// A JSON representation of the user provided function app properties. See /// example. /// </param> /// <param name='isForced'> /// Specify &lt;code&gt;true&lt;/code&gt; to force the update of the auth /// configuration on the function app even if an AzureStaticWebApps provider is /// already configured on the function app. The default is /// &lt;code&gt;false&lt;/code&gt;. /// </param> public static StaticSiteUserProvidedFunctionAppARMResource RegisterUserProvidedFunctionAppWithStaticSiteBuild(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, string functionAppName, StaticSiteUserProvidedFunctionAppARMResource staticSiteUserProvidedFunctionEnvelope, bool? isForced = default(bool?)) { return operations.RegisterUserProvidedFunctionAppWithStaticSiteBuildAsync(resourceGroupName, name, environmentName, functionAppName, staticSiteUserProvidedFunctionEnvelope, isForced).GetAwaiter().GetResult(); } /// <summary> /// Register a user provided function app with a static site build /// </summary> /// <remarks> /// Description for Register a user provided function app with a static site /// build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='functionAppName'> /// Name of the function app to register with the static site build. /// </param> /// <param name='staticSiteUserProvidedFunctionEnvelope'> /// A JSON representation of the user provided function app properties. See /// example. /// </param> /// <param name='isForced'> /// Specify &lt;code&gt;true&lt;/code&gt; to force the update of the auth /// configuration on the function app even if an AzureStaticWebApps provider is /// already configured on the function app. The default is /// &lt;code&gt;false&lt;/code&gt;. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteUserProvidedFunctionAppARMResource> RegisterUserProvidedFunctionAppWithStaticSiteBuildAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, string functionAppName, StaticSiteUserProvidedFunctionAppARMResource staticSiteUserProvidedFunctionEnvelope, bool? isForced = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RegisterUserProvidedFunctionAppWithStaticSiteBuildWithHttpMessagesAsync(resourceGroupName, name, environmentName, functionAppName, staticSiteUserProvidedFunctionEnvelope, isForced, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Detach the user provided function app from the static site build /// </summary> /// <remarks> /// Description for Detach the user provided function app from the static site /// build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='functionAppName'> /// Name of the function app registered with the static site build. /// </param> public static void DetachUserProvidedFunctionAppFromStaticSiteBuild(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, string functionAppName) { operations.DetachUserProvidedFunctionAppFromStaticSiteBuildAsync(resourceGroupName, name, environmentName, functionAppName).GetAwaiter().GetResult(); } /// <summary> /// Detach the user provided function app from the static site build /// </summary> /// <remarks> /// Description for Detach the user provided function app from the static site /// build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='functionAppName'> /// Name of the function app registered with the static site build. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DetachUserProvidedFunctionAppFromStaticSiteBuildAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, string functionAppName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DetachUserProvidedFunctionAppFromStaticSiteBuildWithHttpMessagesAsync(resourceGroupName, name, environmentName, functionAppName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Deploys zipped content to a specific environment of a static site. /// </summary> /// <remarks> /// Description for Deploys zipped content to a specific environment of a /// static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// Name of the environment. /// </param> /// <param name='staticSiteZipDeploymentEnvelope'> /// A JSON representation of the StaticSiteZipDeployment properties. See /// example. /// </param> public static void CreateZipDeploymentForStaticSiteBuild(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, StaticSiteZipDeploymentARMResource staticSiteZipDeploymentEnvelope) { operations.CreateZipDeploymentForStaticSiteBuildAsync(resourceGroupName, name, environmentName, staticSiteZipDeploymentEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Deploys zipped content to a specific environment of a static site. /// </summary> /// <remarks> /// Description for Deploys zipped content to a specific environment of a /// static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// Name of the environment. /// </param> /// <param name='staticSiteZipDeploymentEnvelope'> /// A JSON representation of the StaticSiteZipDeployment properties. See /// example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task CreateZipDeploymentForStaticSiteBuildAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, StaticSiteZipDeploymentARMResource staticSiteZipDeploymentEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.CreateZipDeploymentForStaticSiteBuildWithHttpMessagesAsync(resourceGroupName, name, environmentName, staticSiteZipDeploymentEnvelope, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Creates or updates the app settings of a static site. /// </summary> /// <remarks> /// Description for Creates or updates the app settings of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='appSettings'> /// The dictionary containing the static site app settings to update. /// </param> public static StringDictionary CreateOrUpdateStaticSiteAppSettings(this IStaticSitesOperations operations, string resourceGroupName, string name, StringDictionary appSettings) { return operations.CreateOrUpdateStaticSiteAppSettingsAsync(resourceGroupName, name, appSettings).GetAwaiter().GetResult(); } /// <summary> /// Creates or updates the app settings of a static site. /// </summary> /// <remarks> /// Description for Creates or updates the app settings of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='appSettings'> /// The dictionary containing the static site app settings to update. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StringDictionary> CreateOrUpdateStaticSiteAppSettingsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, StringDictionary appSettings, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateStaticSiteAppSettingsWithHttpMessagesAsync(resourceGroupName, name, appSettings, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Creates or updates the function app settings of a static site. /// </summary> /// <remarks> /// Description for Creates or updates the function app settings of a static /// site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='appSettings'> /// The dictionary containing the static site function app settings to update. /// </param> public static StringDictionary CreateOrUpdateStaticSiteFunctionAppSettings(this IStaticSitesOperations operations, string resourceGroupName, string name, StringDictionary appSettings) { return operations.CreateOrUpdateStaticSiteFunctionAppSettingsAsync(resourceGroupName, name, appSettings).GetAwaiter().GetResult(); } /// <summary> /// Creates or updates the function app settings of a static site. /// </summary> /// <remarks> /// Description for Creates or updates the function app settings of a static /// site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='appSettings'> /// The dictionary containing the static site function app settings to update. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StringDictionary> CreateOrUpdateStaticSiteFunctionAppSettingsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, StringDictionary appSettings, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateStaticSiteFunctionAppSettingsWithHttpMessagesAsync(resourceGroupName, name, appSettings, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Creates an invitation link for a user with the role /// </summary> /// <remarks> /// Description for Creates an invitation link for a user with the role /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='staticSiteUserRolesInvitationEnvelope'> /// </param> public static StaticSiteUserInvitationResponseResource CreateUserRolesInvitationLink(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteUserInvitationRequestResource staticSiteUserRolesInvitationEnvelope) { return operations.CreateUserRolesInvitationLinkAsync(resourceGroupName, name, staticSiteUserRolesInvitationEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Creates an invitation link for a user with the role /// </summary> /// <remarks> /// Description for Creates an invitation link for a user with the role /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='staticSiteUserRolesInvitationEnvelope'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteUserInvitationResponseResource> CreateUserRolesInvitationLinkAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteUserInvitationRequestResource staticSiteUserRolesInvitationEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateUserRolesInvitationLinkWithHttpMessagesAsync(resourceGroupName, name, staticSiteUserRolesInvitationEnvelope, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets all static site custom domains for a particular static site. /// </summary> /// <remarks> /// Description for Gets all static site custom domains for a particular static /// site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site resource to search in. /// </param> public static IPage<StaticSiteCustomDomainOverviewARMResource> ListStaticSiteCustomDomains(this IStaticSitesOperations operations, string resourceGroupName, string name) { return operations.ListStaticSiteCustomDomainsAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Gets all static site custom domains for a particular static site. /// </summary> /// <remarks> /// Description for Gets all static site custom domains for a particular static /// site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site resource to search in. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteCustomDomainOverviewARMResource>> ListStaticSiteCustomDomainsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteCustomDomainsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets an existing custom domain for a particular static site. /// </summary> /// <remarks> /// Description for Gets an existing custom domain for a particular static /// site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site resource to search in. /// </param> /// <param name='domainName'> /// The custom domain name. /// </param> public static StaticSiteCustomDomainOverviewARMResource GetStaticSiteCustomDomain(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName) { return operations.GetStaticSiteCustomDomainAsync(resourceGroupName, name, domainName).GetAwaiter().GetResult(); } /// <summary> /// Gets an existing custom domain for a particular static site. /// </summary> /// <remarks> /// Description for Gets an existing custom domain for a particular static /// site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site resource to search in. /// </param> /// <param name='domainName'> /// The custom domain name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteCustomDomainOverviewARMResource> GetStaticSiteCustomDomainAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetStaticSiteCustomDomainWithHttpMessagesAsync(resourceGroupName, name, domainName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Creates a new static site custom domain in an existing resource group and /// static site. /// </summary> /// <remarks> /// Description for Creates a new static site custom domain in an existing /// resource group and static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to create. /// </param> /// <param name='staticSiteCustomDomainRequestPropertiesEnvelope'> /// A JSON representation of the static site custom domain request properties. /// See example. /// </param> public static StaticSiteCustomDomainOverviewARMResource CreateOrUpdateStaticSiteCustomDomain(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainRequestPropertiesARMResource staticSiteCustomDomainRequestPropertiesEnvelope) { return operations.CreateOrUpdateStaticSiteCustomDomainAsync(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Creates a new static site custom domain in an existing resource group and /// static site. /// </summary> /// <remarks> /// Description for Creates a new static site custom domain in an existing /// resource group and static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to create. /// </param> /// <param name='staticSiteCustomDomainRequestPropertiesEnvelope'> /// A JSON representation of the static site custom domain request properties. /// See example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteCustomDomainOverviewARMResource> CreateOrUpdateStaticSiteCustomDomainAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainRequestPropertiesARMResource staticSiteCustomDomainRequestPropertiesEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateStaticSiteCustomDomainWithHttpMessagesAsync(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Deletes a custom domain. /// </summary> /// <remarks> /// Description for Deletes a custom domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to delete. /// </param> public static void DeleteStaticSiteCustomDomain(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName) { operations.DeleteStaticSiteCustomDomainAsync(resourceGroupName, name, domainName).GetAwaiter().GetResult(); } /// <summary> /// Deletes a custom domain. /// </summary> /// <remarks> /// Description for Deletes a custom domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteStaticSiteCustomDomainAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteStaticSiteCustomDomainWithHttpMessagesAsync(resourceGroupName, name, domainName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Validates a particular custom domain can be added to a static site. /// </summary> /// <remarks> /// Description for Validates a particular custom domain can be added to a /// static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to validate. /// </param> /// <param name='staticSiteCustomDomainRequestPropertiesEnvelope'> /// A JSON representation of the static site custom domain request properties. /// See example. /// </param> public static void ValidateCustomDomainCanBeAddedToStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainRequestPropertiesARMResource staticSiteCustomDomainRequestPropertiesEnvelope) { operations.ValidateCustomDomainCanBeAddedToStaticSiteAsync(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Validates a particular custom domain can be added to a static site. /// </summary> /// <remarks> /// Description for Validates a particular custom domain can be added to a /// static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to validate. /// </param> /// <param name='staticSiteCustomDomainRequestPropertiesEnvelope'> /// A JSON representation of the static site custom domain request properties. /// See example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ValidateCustomDomainCanBeAddedToStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainRequestPropertiesARMResource staticSiteCustomDomainRequestPropertiesEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.ValidateCustomDomainCanBeAddedToStaticSiteWithHttpMessagesAsync(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Detaches a static site. /// </summary> /// <remarks> /// Description for Detaches a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to detach. /// </param> public static void DetachStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name) { operations.DetachStaticSiteAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Detaches a static site. /// </summary> /// <remarks> /// Description for Detaches a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to detach. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DetachStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DetachStaticSiteWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Gets the functions of a static site. /// </summary> /// <remarks> /// Description for Gets the functions of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> public static IPage<StaticSiteFunctionOverviewARMResource> ListStaticSiteFunctions(this IStaticSitesOperations operations, string resourceGroupName, string name) { return operations.ListStaticSiteFunctionsAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Gets the functions of a static site. /// </summary> /// <remarks> /// Description for Gets the functions of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteFunctionOverviewARMResource>> ListStaticSiteFunctionsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteFunctionsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the application settings of a static site. /// </summary> /// <remarks> /// Description for Gets the application settings of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> public static StringDictionary ListStaticSiteAppSettings(this IStaticSitesOperations operations, string resourceGroupName, string name) { return operations.ListStaticSiteAppSettingsAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Gets the application settings of a static site. /// </summary> /// <remarks> /// Description for Gets the application settings of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StringDictionary> ListStaticSiteAppSettingsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteAppSettingsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Lists the roles configured for the static site. /// </summary> /// <remarks> /// Description for Lists the roles configured for the static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> public static StringList ListStaticSiteConfiguredRoles(this IStaticSitesOperations operations, string resourceGroupName, string name) { return operations.ListStaticSiteConfiguredRolesAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Lists the roles configured for the static site. /// </summary> /// <remarks> /// Description for Lists the roles configured for the static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StringList> ListStaticSiteConfiguredRolesAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteConfiguredRolesWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the application settings of a static site. /// </summary> /// <remarks> /// Description for Gets the application settings of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> public static StringDictionary ListStaticSiteFunctionAppSettings(this IStaticSitesOperations operations, string resourceGroupName, string name) { return operations.ListStaticSiteFunctionAppSettingsAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Gets the application settings of a static site. /// </summary> /// <remarks> /// Description for Gets the application settings of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StringDictionary> ListStaticSiteFunctionAppSettingsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteFunctionAppSettingsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Lists the secrets for an existing static site. /// </summary> /// <remarks> /// Description for Lists the secrets for an existing static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> public static StringDictionary ListStaticSiteSecrets(this IStaticSitesOperations operations, string resourceGroupName, string name) { return operations.ListStaticSiteSecretsAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Lists the secrets for an existing static site. /// </summary> /// <remarks> /// Description for Lists the secrets for an existing static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StringDictionary> ListStaticSiteSecretsAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteSecretsWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the list of private endpoint connections associated with a static site /// </summary> /// <remarks> /// Description for Gets the list of private endpoint connections associated /// with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> public static IPage<RemotePrivateEndpointConnectionARMResource> GetPrivateEndpointConnectionList(this IStaticSitesOperations operations, string resourceGroupName, string name) { return operations.GetPrivateEndpointConnectionListAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Gets the list of private endpoint connections associated with a static site /// </summary> /// <remarks> /// Description for Gets the list of private endpoint connections associated /// with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<RemotePrivateEndpointConnectionARMResource>> GetPrivateEndpointConnectionListAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPrivateEndpointConnectionListWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets a private endpoint connection /// </summary> /// <remarks> /// Description for Gets a private endpoint connection /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection. /// </param> public static RemotePrivateEndpointConnectionARMResource GetPrivateEndpointConnection(this IStaticSitesOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName) { return operations.GetPrivateEndpointConnectionAsync(resourceGroupName, name, privateEndpointConnectionName).GetAwaiter().GetResult(); } /// <summary> /// Gets a private endpoint connection /// </summary> /// <remarks> /// Description for Gets a private endpoint connection /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<RemotePrivateEndpointConnectionARMResource> GetPrivateEndpointConnectionAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPrivateEndpointConnectionWithHttpMessagesAsync(resourceGroupName, name, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Approves or rejects a private endpoint connection /// </summary> /// <remarks> /// Description for Approves or rejects a private endpoint connection /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection. /// </param> /// <param name='privateEndpointWrapper'> /// Request body. /// </param> public static RemotePrivateEndpointConnectionARMResource ApproveOrRejectPrivateEndpointConnection(this IStaticSitesOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper) { return operations.ApproveOrRejectPrivateEndpointConnectionAsync(resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper).GetAwaiter().GetResult(); } /// <summary> /// Approves or rejects a private endpoint connection /// </summary> /// <remarks> /// Description for Approves or rejects a private endpoint connection /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection. /// </param> /// <param name='privateEndpointWrapper'> /// Request body. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<RemotePrivateEndpointConnectionARMResource> ApproveOrRejectPrivateEndpointConnectionAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ApproveOrRejectPrivateEndpointConnectionWithHttpMessagesAsync(resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Deletes a private endpoint connection /// </summary> /// <remarks> /// Description for Deletes a private endpoint connection /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection. /// </param> public static object DeletePrivateEndpointConnection(this IStaticSitesOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName) { return operations.DeletePrivateEndpointConnectionAsync(resourceGroupName, name, privateEndpointConnectionName).GetAwaiter().GetResult(); } /// <summary> /// Deletes a private endpoint connection /// </summary> /// <remarks> /// Description for Deletes a private endpoint connection /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<object> DeletePrivateEndpointConnectionAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeletePrivateEndpointConnectionWithHttpMessagesAsync(resourceGroupName, name, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the private link resources /// </summary> /// <remarks> /// Description for Gets the private link resources /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the site. /// </param> public static PrivateLinkResourcesWrapper GetPrivateLinkResources(this IStaticSitesOperations operations, string resourceGroupName, string name) { return operations.GetPrivateLinkResourcesAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Gets the private link resources /// </summary> /// <remarks> /// Description for Gets the private link resources /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<PrivateLinkResourcesWrapper> GetPrivateLinkResourcesAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPrivateLinkResourcesWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Resets the api key for an existing static site. /// </summary> /// <remarks> /// Description for Resets the api key for an existing static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='resetPropertiesEnvelope'> /// </param> public static void ResetStaticSiteApiKey(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteResetPropertiesARMResource resetPropertiesEnvelope) { operations.ResetStaticSiteApiKeyAsync(resourceGroupName, name, resetPropertiesEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Resets the api key for an existing static site. /// </summary> /// <remarks> /// Description for Resets the api key for an existing static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='resetPropertiesEnvelope'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task ResetStaticSiteApiKeyAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteResetPropertiesARMResource resetPropertiesEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.ResetStaticSiteApiKeyWithHttpMessagesAsync(resourceGroupName, name, resetPropertiesEnvelope, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Gets the details of the user provided function apps registered with a /// static site /// </summary> /// <remarks> /// Description for Gets the details of the user provided function apps /// registered with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> public static IPage<StaticSiteUserProvidedFunctionAppARMResource> GetUserProvidedFunctionAppsForStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name) { return operations.GetUserProvidedFunctionAppsForStaticSiteAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Gets the details of the user provided function apps registered with a /// static site /// </summary> /// <remarks> /// Description for Gets the details of the user provided function apps /// registered with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteUserProvidedFunctionAppARMResource>> GetUserProvidedFunctionAppsForStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUserProvidedFunctionAppsForStaticSiteWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the details of the user provided function app registered with a static /// site /// </summary> /// <remarks> /// Description for Gets the details of the user provided function app /// registered with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='functionAppName'> /// Name of the function app registered with the static site. /// </param> public static StaticSiteUserProvidedFunctionAppARMResource GetUserProvidedFunctionAppForStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name, string functionAppName) { return operations.GetUserProvidedFunctionAppForStaticSiteAsync(resourceGroupName, name, functionAppName).GetAwaiter().GetResult(); } /// <summary> /// Gets the details of the user provided function app registered with a static /// site /// </summary> /// <remarks> /// Description for Gets the details of the user provided function app /// registered with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='functionAppName'> /// Name of the function app registered with the static site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteUserProvidedFunctionAppARMResource> GetUserProvidedFunctionAppForStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string functionAppName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUserProvidedFunctionAppForStaticSiteWithHttpMessagesAsync(resourceGroupName, name, functionAppName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Register a user provided function app with a static site /// </summary> /// <remarks> /// Description for Register a user provided function app with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='functionAppName'> /// Name of the function app to register with the static site. /// </param> /// <param name='staticSiteUserProvidedFunctionEnvelope'> /// A JSON representation of the user provided function app properties. See /// example. /// </param> /// <param name='isForced'> /// Specify &lt;code&gt;true&lt;/code&gt; to force the update of the auth /// configuration on the function app even if an AzureStaticWebApps provider is /// already configured on the function app. The default is /// &lt;code&gt;false&lt;/code&gt;. /// </param> public static StaticSiteUserProvidedFunctionAppARMResource RegisterUserProvidedFunctionAppWithStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name, string functionAppName, StaticSiteUserProvidedFunctionAppARMResource staticSiteUserProvidedFunctionEnvelope, bool? isForced = default(bool?)) { return operations.RegisterUserProvidedFunctionAppWithStaticSiteAsync(resourceGroupName, name, functionAppName, staticSiteUserProvidedFunctionEnvelope, isForced).GetAwaiter().GetResult(); } /// <summary> /// Register a user provided function app with a static site /// </summary> /// <remarks> /// Description for Register a user provided function app with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='functionAppName'> /// Name of the function app to register with the static site. /// </param> /// <param name='staticSiteUserProvidedFunctionEnvelope'> /// A JSON representation of the user provided function app properties. See /// example. /// </param> /// <param name='isForced'> /// Specify &lt;code&gt;true&lt;/code&gt; to force the update of the auth /// configuration on the function app even if an AzureStaticWebApps provider is /// already configured on the function app. The default is /// &lt;code&gt;false&lt;/code&gt;. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteUserProvidedFunctionAppARMResource> RegisterUserProvidedFunctionAppWithStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string functionAppName, StaticSiteUserProvidedFunctionAppARMResource staticSiteUserProvidedFunctionEnvelope, bool? isForced = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.RegisterUserProvidedFunctionAppWithStaticSiteWithHttpMessagesAsync(resourceGroupName, name, functionAppName, staticSiteUserProvidedFunctionEnvelope, isForced, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Detach the user provided function app from the static site /// </summary> /// <remarks> /// Description for Detach the user provided function app from the static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='functionAppName'> /// Name of the function app registered with the static site. /// </param> public static void DetachUserProvidedFunctionAppFromStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name, string functionAppName) { operations.DetachUserProvidedFunctionAppFromStaticSiteAsync(resourceGroupName, name, functionAppName).GetAwaiter().GetResult(); } /// <summary> /// Detach the user provided function app from the static site /// </summary> /// <remarks> /// Description for Detach the user provided function app from the static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='functionAppName'> /// Name of the function app registered with the static site. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DetachUserProvidedFunctionAppFromStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string functionAppName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DetachUserProvidedFunctionAppFromStaticSiteWithHttpMessagesAsync(resourceGroupName, name, functionAppName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Deploys zipped content to a static site. /// </summary> /// <remarks> /// Description for Deploys zipped content to a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='staticSiteZipDeploymentEnvelope'> /// A JSON representation of the StaticSiteZipDeployment properties. See /// example. /// </param> public static void CreateZipDeploymentForStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteZipDeploymentARMResource staticSiteZipDeploymentEnvelope) { operations.CreateZipDeploymentForStaticSiteAsync(resourceGroupName, name, staticSiteZipDeploymentEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Deploys zipped content to a static site. /// </summary> /// <remarks> /// Description for Deploys zipped content to a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='staticSiteZipDeploymentEnvelope'> /// A JSON representation of the StaticSiteZipDeployment properties. See /// example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task CreateZipDeploymentForStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteZipDeploymentARMResource staticSiteZipDeploymentEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.CreateZipDeploymentForStaticSiteWithHttpMessagesAsync(resourceGroupName, name, staticSiteZipDeploymentEnvelope, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Creates a new static site in an existing resource group, or updates an /// existing static site. /// </summary> /// <remarks> /// Description for Creates a new static site in an existing resource group, or /// updates an existing static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to create or update. /// </param> /// <param name='staticSiteEnvelope'> /// A JSON representation of the staticsite properties. See example. /// </param> public static StaticSiteARMResource BeginCreateOrUpdateStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteARMResource staticSiteEnvelope) { return operations.BeginCreateOrUpdateStaticSiteAsync(resourceGroupName, name, staticSiteEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Creates a new static site in an existing resource group, or updates an /// existing static site. /// </summary> /// <remarks> /// Description for Creates a new static site in an existing resource group, or /// updates an existing static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to create or update. /// </param> /// <param name='staticSiteEnvelope'> /// A JSON representation of the staticsite properties. See example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteARMResource> BeginCreateOrUpdateStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteARMResource staticSiteEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateStaticSiteWithHttpMessagesAsync(resourceGroupName, name, staticSiteEnvelope, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Deletes a static site. /// </summary> /// <remarks> /// Description for Deletes a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to delete. /// </param> public static void BeginDeleteStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name) { operations.BeginDeleteStaticSiteAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Deletes a static site. /// </summary> /// <remarks> /// Description for Deletes a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteStaticSiteWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Deletes a static site build. /// </summary> /// <remarks> /// Description for Deletes a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> public static void BeginDeleteStaticSiteBuild(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName) { operations.BeginDeleteStaticSiteBuildAsync(resourceGroupName, name, environmentName).GetAwaiter().GetResult(); } /// <summary> /// Deletes a static site build. /// </summary> /// <remarks> /// Description for Deletes a static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteStaticSiteBuildAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteStaticSiteBuildWithHttpMessagesAsync(resourceGroupName, name, environmentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Register a user provided function app with a static site build /// </summary> /// <remarks> /// Description for Register a user provided function app with a static site /// build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='functionAppName'> /// Name of the function app to register with the static site build. /// </param> /// <param name='staticSiteUserProvidedFunctionEnvelope'> /// A JSON representation of the user provided function app properties. See /// example. /// </param> /// <param name='isForced'> /// Specify &lt;code&gt;true&lt;/code&gt; to force the update of the auth /// configuration on the function app even if an AzureStaticWebApps provider is /// already configured on the function app. The default is /// &lt;code&gt;false&lt;/code&gt;. /// </param> public static StaticSiteUserProvidedFunctionAppARMResource BeginRegisterUserProvidedFunctionAppWithStaticSiteBuild(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, string functionAppName, StaticSiteUserProvidedFunctionAppARMResource staticSiteUserProvidedFunctionEnvelope, bool? isForced = default(bool?)) { return operations.BeginRegisterUserProvidedFunctionAppWithStaticSiteBuildAsync(resourceGroupName, name, environmentName, functionAppName, staticSiteUserProvidedFunctionEnvelope, isForced).GetAwaiter().GetResult(); } /// <summary> /// Register a user provided function app with a static site build /// </summary> /// <remarks> /// Description for Register a user provided function app with a static site /// build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// The stage site identifier. /// </param> /// <param name='functionAppName'> /// Name of the function app to register with the static site build. /// </param> /// <param name='staticSiteUserProvidedFunctionEnvelope'> /// A JSON representation of the user provided function app properties. See /// example. /// </param> /// <param name='isForced'> /// Specify &lt;code&gt;true&lt;/code&gt; to force the update of the auth /// configuration on the function app even if an AzureStaticWebApps provider is /// already configured on the function app. The default is /// &lt;code&gt;false&lt;/code&gt;. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteUserProvidedFunctionAppARMResource> BeginRegisterUserProvidedFunctionAppWithStaticSiteBuildAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, string functionAppName, StaticSiteUserProvidedFunctionAppARMResource staticSiteUserProvidedFunctionEnvelope, bool? isForced = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginRegisterUserProvidedFunctionAppWithStaticSiteBuildWithHttpMessagesAsync(resourceGroupName, name, environmentName, functionAppName, staticSiteUserProvidedFunctionEnvelope, isForced, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Deploys zipped content to a specific environment of a static site. /// </summary> /// <remarks> /// Description for Deploys zipped content to a specific environment of a /// static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// Name of the environment. /// </param> /// <param name='staticSiteZipDeploymentEnvelope'> /// A JSON representation of the StaticSiteZipDeployment properties. See /// example. /// </param> public static void BeginCreateZipDeploymentForStaticSiteBuild(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, StaticSiteZipDeploymentARMResource staticSiteZipDeploymentEnvelope) { operations.BeginCreateZipDeploymentForStaticSiteBuildAsync(resourceGroupName, name, environmentName, staticSiteZipDeploymentEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Deploys zipped content to a specific environment of a static site. /// </summary> /// <remarks> /// Description for Deploys zipped content to a specific environment of a /// static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='environmentName'> /// Name of the environment. /// </param> /// <param name='staticSiteZipDeploymentEnvelope'> /// A JSON representation of the StaticSiteZipDeployment properties. See /// example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginCreateZipDeploymentForStaticSiteBuildAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string environmentName, StaticSiteZipDeploymentARMResource staticSiteZipDeploymentEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginCreateZipDeploymentForStaticSiteBuildWithHttpMessagesAsync(resourceGroupName, name, environmentName, staticSiteZipDeploymentEnvelope, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Creates a new static site custom domain in an existing resource group and /// static site. /// </summary> /// <remarks> /// Description for Creates a new static site custom domain in an existing /// resource group and static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to create. /// </param> /// <param name='staticSiteCustomDomainRequestPropertiesEnvelope'> /// A JSON representation of the static site custom domain request properties. /// See example. /// </param> public static StaticSiteCustomDomainOverviewARMResource BeginCreateOrUpdateStaticSiteCustomDomain(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainRequestPropertiesARMResource staticSiteCustomDomainRequestPropertiesEnvelope) { return operations.BeginCreateOrUpdateStaticSiteCustomDomainAsync(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Creates a new static site custom domain in an existing resource group and /// static site. /// </summary> /// <remarks> /// Description for Creates a new static site custom domain in an existing /// resource group and static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to create. /// </param> /// <param name='staticSiteCustomDomainRequestPropertiesEnvelope'> /// A JSON representation of the static site custom domain request properties. /// See example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteCustomDomainOverviewARMResource> BeginCreateOrUpdateStaticSiteCustomDomainAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainRequestPropertiesARMResource staticSiteCustomDomainRequestPropertiesEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateOrUpdateStaticSiteCustomDomainWithHttpMessagesAsync(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Deletes a custom domain. /// </summary> /// <remarks> /// Description for Deletes a custom domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to delete. /// </param> public static void BeginDeleteStaticSiteCustomDomain(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName) { operations.BeginDeleteStaticSiteCustomDomainAsync(resourceGroupName, name, domainName).GetAwaiter().GetResult(); } /// <summary> /// Deletes a custom domain. /// </summary> /// <remarks> /// Description for Deletes a custom domain. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteStaticSiteCustomDomainAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteStaticSiteCustomDomainWithHttpMessagesAsync(resourceGroupName, name, domainName, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Validates a particular custom domain can be added to a static site. /// </summary> /// <remarks> /// Description for Validates a particular custom domain can be added to a /// static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to validate. /// </param> /// <param name='staticSiteCustomDomainRequestPropertiesEnvelope'> /// A JSON representation of the static site custom domain request properties. /// See example. /// </param> public static void BeginValidateCustomDomainCanBeAddedToStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainRequestPropertiesARMResource staticSiteCustomDomainRequestPropertiesEnvelope) { operations.BeginValidateCustomDomainCanBeAddedToStaticSiteAsync(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Validates a particular custom domain can be added to a static site. /// </summary> /// <remarks> /// Description for Validates a particular custom domain can be added to a /// static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='domainName'> /// The custom domain to validate. /// </param> /// <param name='staticSiteCustomDomainRequestPropertiesEnvelope'> /// A JSON representation of the static site custom domain request properties. /// See example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginValidateCustomDomainCanBeAddedToStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string domainName, StaticSiteCustomDomainRequestPropertiesARMResource staticSiteCustomDomainRequestPropertiesEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginValidateCustomDomainCanBeAddedToStaticSiteWithHttpMessagesAsync(resourceGroupName, name, domainName, staticSiteCustomDomainRequestPropertiesEnvelope, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Detaches a static site. /// </summary> /// <remarks> /// Description for Detaches a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to detach. /// </param> public static void BeginDetachStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name) { operations.BeginDetachStaticSiteAsync(resourceGroupName, name).GetAwaiter().GetResult(); } /// <summary> /// Detaches a static site. /// </summary> /// <remarks> /// Description for Detaches a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site to detach. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDetachStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDetachStaticSiteWithHttpMessagesAsync(resourceGroupName, name, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Approves or rejects a private endpoint connection /// </summary> /// <remarks> /// Description for Approves or rejects a private endpoint connection /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection. /// </param> /// <param name='privateEndpointWrapper'> /// Request body. /// </param> public static RemotePrivateEndpointConnectionARMResource BeginApproveOrRejectPrivateEndpointConnection(this IStaticSitesOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper) { return operations.BeginApproveOrRejectPrivateEndpointConnectionAsync(resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper).GetAwaiter().GetResult(); } /// <summary> /// Approves or rejects a private endpoint connection /// </summary> /// <remarks> /// Description for Approves or rejects a private endpoint connection /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection. /// </param> /// <param name='privateEndpointWrapper'> /// Request body. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<RemotePrivateEndpointConnectionARMResource> BeginApproveOrRejectPrivateEndpointConnectionAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName, PrivateLinkConnectionApprovalRequestResource privateEndpointWrapper, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginApproveOrRejectPrivateEndpointConnectionWithHttpMessagesAsync(resourceGroupName, name, privateEndpointConnectionName, privateEndpointWrapper, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Deletes a private endpoint connection /// </summary> /// <remarks> /// Description for Deletes a private endpoint connection /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection. /// </param> public static object BeginDeletePrivateEndpointConnection(this IStaticSitesOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName) { return operations.BeginDeletePrivateEndpointConnectionAsync(resourceGroupName, name, privateEndpointConnectionName).GetAwaiter().GetResult(); } /// <summary> /// Deletes a private endpoint connection /// </summary> /// <remarks> /// Description for Deletes a private endpoint connection /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='privateEndpointConnectionName'> /// Name of the private endpoint connection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<object> BeginDeletePrivateEndpointConnectionAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginDeletePrivateEndpointConnectionWithHttpMessagesAsync(resourceGroupName, name, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Register a user provided function app with a static site /// </summary> /// <remarks> /// Description for Register a user provided function app with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='functionAppName'> /// Name of the function app to register with the static site. /// </param> /// <param name='staticSiteUserProvidedFunctionEnvelope'> /// A JSON representation of the user provided function app properties. See /// example. /// </param> /// <param name='isForced'> /// Specify &lt;code&gt;true&lt;/code&gt; to force the update of the auth /// configuration on the function app even if an AzureStaticWebApps provider is /// already configured on the function app. The default is /// &lt;code&gt;false&lt;/code&gt;. /// </param> public static StaticSiteUserProvidedFunctionAppARMResource BeginRegisterUserProvidedFunctionAppWithStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name, string functionAppName, StaticSiteUserProvidedFunctionAppARMResource staticSiteUserProvidedFunctionEnvelope, bool? isForced = default(bool?)) { return operations.BeginRegisterUserProvidedFunctionAppWithStaticSiteAsync(resourceGroupName, name, functionAppName, staticSiteUserProvidedFunctionEnvelope, isForced).GetAwaiter().GetResult(); } /// <summary> /// Register a user provided function app with a static site /// </summary> /// <remarks> /// Description for Register a user provided function app with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='functionAppName'> /// Name of the function app to register with the static site. /// </param> /// <param name='staticSiteUserProvidedFunctionEnvelope'> /// A JSON representation of the user provided function app properties. See /// example. /// </param> /// <param name='isForced'> /// Specify &lt;code&gt;true&lt;/code&gt; to force the update of the auth /// configuration on the function app even if an AzureStaticWebApps provider is /// already configured on the function app. The default is /// &lt;code&gt;false&lt;/code&gt;. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<StaticSiteUserProvidedFunctionAppARMResource> BeginRegisterUserProvidedFunctionAppWithStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, string functionAppName, StaticSiteUserProvidedFunctionAppARMResource staticSiteUserProvidedFunctionEnvelope, bool? isForced = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginRegisterUserProvidedFunctionAppWithStaticSiteWithHttpMessagesAsync(resourceGroupName, name, functionAppName, staticSiteUserProvidedFunctionEnvelope, isForced, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Deploys zipped content to a static site. /// </summary> /// <remarks> /// Description for Deploys zipped content to a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='staticSiteZipDeploymentEnvelope'> /// A JSON representation of the StaticSiteZipDeployment properties. See /// example. /// </param> public static void BeginCreateZipDeploymentForStaticSite(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteZipDeploymentARMResource staticSiteZipDeploymentEnvelope) { operations.BeginCreateZipDeploymentForStaticSiteAsync(resourceGroupName, name, staticSiteZipDeploymentEnvelope).GetAwaiter().GetResult(); } /// <summary> /// Deploys zipped content to a static site. /// </summary> /// <remarks> /// Description for Deploys zipped content to a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='name'> /// Name of the static site. /// </param> /// <param name='staticSiteZipDeploymentEnvelope'> /// A JSON representation of the StaticSiteZipDeployment properties. See /// example. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginCreateZipDeploymentForStaticSiteAsync(this IStaticSitesOperations operations, string resourceGroupName, string name, StaticSiteZipDeploymentARMResource staticSiteZipDeploymentEnvelope, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginCreateZipDeploymentForStaticSiteWithHttpMessagesAsync(resourceGroupName, name, staticSiteZipDeploymentEnvelope, null, cancellationToken).ConfigureAwait(false)).Dispose(); } /// <summary> /// Get all Static Sites for a subscription. /// </summary> /// <remarks> /// Description for Get all Static Sites for a subscription. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage<StaticSiteARMResource> ListNext(this IStaticSitesOperations operations, string nextPageLink) { return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// <summary> /// Get all Static Sites for a subscription. /// </summary> /// <remarks> /// Description for Get all Static Sites for a subscription. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteARMResource>> ListNextAsync(this IStaticSitesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets all static sites in the specified resource group. /// </summary> /// <remarks> /// Description for Gets all static sites in the specified resource group. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage<StaticSiteARMResource> GetStaticSitesByResourceGroupNext(this IStaticSitesOperations operations, string nextPageLink) { return operations.GetStaticSitesByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// <summary> /// Gets all static sites in the specified resource group. /// </summary> /// <remarks> /// Description for Gets all static sites in the specified resource group. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteARMResource>> GetStaticSitesByResourceGroupNextAsync(this IStaticSitesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetStaticSitesByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the list of users of a static site. /// </summary> /// <remarks> /// Description for Gets the list of users of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage<StaticSiteUserARMResource> ListStaticSiteUsersNext(this IStaticSitesOperations operations, string nextPageLink) { return operations.ListStaticSiteUsersNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// <summary> /// Gets the list of users of a static site. /// </summary> /// <remarks> /// Description for Gets the list of users of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteUserARMResource>> ListStaticSiteUsersNextAsync(this IStaticSitesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteUsersNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets all static site builds for a particular static site. /// </summary> /// <remarks> /// Description for Gets all static site builds for a particular static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage<StaticSiteBuildARMResource> GetStaticSiteBuildsNext(this IStaticSitesOperations operations, string nextPageLink) { return operations.GetStaticSiteBuildsNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// <summary> /// Gets all static site builds for a particular static site. /// </summary> /// <remarks> /// Description for Gets all static site builds for a particular static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteBuildARMResource>> GetStaticSiteBuildsNextAsync(this IStaticSitesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetStaticSiteBuildsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the functions of a particular static site build. /// </summary> /// <remarks> /// Description for Gets the functions of a particular static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage<StaticSiteFunctionOverviewARMResource> ListStaticSiteBuildFunctionsNext(this IStaticSitesOperations operations, string nextPageLink) { return operations.ListStaticSiteBuildFunctionsNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// <summary> /// Gets the functions of a particular static site build. /// </summary> /// <remarks> /// Description for Gets the functions of a particular static site build. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteFunctionOverviewARMResource>> ListStaticSiteBuildFunctionsNextAsync(this IStaticSitesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteBuildFunctionsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the details of the user provided function apps registered with a /// static site build /// </summary> /// <remarks> /// Description for Gets the details of the user provided function apps /// registered with a static site build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage<StaticSiteUserProvidedFunctionAppARMResource> GetUserProvidedFunctionAppsForStaticSiteBuildNext(this IStaticSitesOperations operations, string nextPageLink) { return operations.GetUserProvidedFunctionAppsForStaticSiteBuildNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// <summary> /// Gets the details of the user provided function apps registered with a /// static site build /// </summary> /// <remarks> /// Description for Gets the details of the user provided function apps /// registered with a static site build /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteUserProvidedFunctionAppARMResource>> GetUserProvidedFunctionAppsForStaticSiteBuildNextAsync(this IStaticSitesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUserProvidedFunctionAppsForStaticSiteBuildNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets all static site custom domains for a particular static site. /// </summary> /// <remarks> /// Description for Gets all static site custom domains for a particular static /// site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage<StaticSiteCustomDomainOverviewARMResource> ListStaticSiteCustomDomainsNext(this IStaticSitesOperations operations, string nextPageLink) { return operations.ListStaticSiteCustomDomainsNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// <summary> /// Gets all static site custom domains for a particular static site. /// </summary> /// <remarks> /// Description for Gets all static site custom domains for a particular static /// site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteCustomDomainOverviewARMResource>> ListStaticSiteCustomDomainsNextAsync(this IStaticSitesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteCustomDomainsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the functions of a static site. /// </summary> /// <remarks> /// Description for Gets the functions of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage<StaticSiteFunctionOverviewARMResource> ListStaticSiteFunctionsNext(this IStaticSitesOperations operations, string nextPageLink) { return operations.ListStaticSiteFunctionsNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// <summary> /// Gets the functions of a static site. /// </summary> /// <remarks> /// Description for Gets the functions of a static site. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteFunctionOverviewARMResource>> ListStaticSiteFunctionsNextAsync(this IStaticSitesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListStaticSiteFunctionsNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the list of private endpoint connections associated with a static site /// </summary> /// <remarks> /// Description for Gets the list of private endpoint connections associated /// with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage<RemotePrivateEndpointConnectionARMResource> GetPrivateEndpointConnectionListNext(this IStaticSitesOperations operations, string nextPageLink) { return operations.GetPrivateEndpointConnectionListNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// <summary> /// Gets the list of private endpoint connections associated with a static site /// </summary> /// <remarks> /// Description for Gets the list of private endpoint connections associated /// with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<RemotePrivateEndpointConnectionARMResource>> GetPrivateEndpointConnectionListNextAsync(this IStaticSitesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetPrivateEndpointConnectionListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// <summary> /// Gets the details of the user provided function apps registered with a /// static site /// </summary> /// <remarks> /// Description for Gets the details of the user provided function apps /// registered with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage<StaticSiteUserProvidedFunctionAppARMResource> GetUserProvidedFunctionAppsForStaticSiteNext(this IStaticSitesOperations operations, string nextPageLink) { return operations.GetUserProvidedFunctionAppsForStaticSiteNextAsync(nextPageLink).GetAwaiter().GetResult(); } /// <summary> /// Gets the details of the user provided function apps registered with a /// static site /// </summary> /// <remarks> /// Description for Gets the details of the user provided function apps /// registered with a static site /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task<IPage<StaticSiteUserProvidedFunctionAppARMResource>> GetUserProvidedFunctionAppsForStaticSiteNextAsync(this IStaticSitesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetUserProvidedFunctionAppsForStaticSiteNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } } }
mit
darrelljefferson/themcset.com
bin/test/h/f/m.php
37
<?php namespace test\h\f; class m { }
mit
alexandresalome/mailcatcher
Tests/AbstractTest.php
1823
<?php namespace Alex\MailCatcher\Tests; use Alex\MailCatcher\Client; abstract class AbstractTest extends \PHPUnit_Framework_TestCase { public function getClient() { if (!isset($_SERVER['MAILCATCHER_HTTP'])) { $this->markTestSkipped('mailcatcher HTTP missing'); } return new Client($_SERVER['MAILCATCHER_HTTP']); } public function sendMessage(\Swift_Mime_MimePart $message) { if (!isset($_SERVER['MAILCATCHER_SMTP'])) { $this->markTestSkipped('mailcatcher SMTP missing'); } if (!preg_match('#^smtp://(?P<host>[^:]+):(?P<port>\d+)$#', $_SERVER['MAILCATCHER_SMTP'], $vars)) { throw new \InvalidArgumentException(sprintf('SMTP URL malformatted. Expected smtp://host:port, got "%s".', $_SERVER['MAILCATCHER_SMTP'])); } $host = $vars['host']; $port = $vars['port']; static $mailer; if (null === $mailer) { $transport = \Swift_SmtpTransport::newInstance($host, $port); $mailer = \Swift_Mailer::newInstance($transport); } if (!$mailer->send($message)) { throw new \RuntimeException('Unable to send message'); } } public function createFixtures() { $client = $this->getClient(); $client->purge(); for ($i = 1; $i <= 7; $i++) { // 7 = 2 x 3 + 1 $detail = floor($i/3).' x 3 + '.($i - floor($i/3)*3); $message = \Swift_Message::newInstance() ->setSubject($i.' = '.$detail) ->setFrom(array('foo'.$i.'@example.org' => 'Foo '.$detail)) ->setTo(array('bar@example.org' => 'Bar')) ->setBody('Bazinga! '.$detail) ; $this->sendMessage($message); } } }
mit
continuoustests/AutoTest.Net
lib/NUnit/src/NUnit-2.6.0.12051/src/NUnitFramework/framework/Constraints/SameAsConstraint.cs
1893
// **************************************************************** // Copyright 2007, Charlie Poole // This is free software licensed under the NUnit license. You may // obtain a copy of the license at http://nunit.org // **************************************************************** using System; namespace NUnit.Framework.Constraints { /// <summary> /// SameAsConstraint tests whether an object is identical to /// the object passed to its constructor /// </summary> public class SameAsConstraint : Constraint { private object expected; /// <summary> /// Initializes a new instance of the <see cref="T:SameAsConstraint"/> class. /// </summary> /// <param name="expected">The expected object.</param> public SameAsConstraint(object expected) : base(expected) { this.expected = expected; } /// <summary> /// Test whether the constraint is satisfied by a given value /// </summary> /// <param name="actual">The value to be tested</param> /// <returns>True for success, false for failure</returns> public override bool Matches(object actual) { this.actual = actual; #if NETCF_1_0 // TODO: THis makes it compile, now make it work. return expected.Equals(actual); #else return Object.ReferenceEquals(expected, actual); #endif } /// <summary> /// Write the constraint description to a MessageWriter /// </summary> /// <param name="writer">The writer on which the description is displayed</param> public override void WriteDescriptionTo(MessageWriter writer) { writer.WritePredicate("same as"); writer.WriteExpectedValue(expected); } } }
mit
emilsoman/rails-4-api
config/environments/development.rb
1117
Rails4Api::Application.configure do # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. config.cache_classes = false # Do not eager load code on boot. config.eager_load = false # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log # Raise an error on page load if there are pending migrations config.active_record.migration_error = :page_load # Debug mode disables concatenation and preprocessing of assets. # This option may cause significant delays in view rendering with a large # number of complex assets. config.assets.debug = true end
mit
turingou/sdk
dist/factory.js
3399
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.lowLevel = lowLevel; exports.highLevel = highLevel; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _url = require('url'); var _url2 = _interopRequireDefault(_url); var _lodash = require('lodash'); var _lodash2 = _interopRequireDefault(_lodash); var _debug = require('debug'); var _debug2 = _interopRequireDefault(_debug); var _request = require('request'); var _request2 = _interopRequireDefault(_request); var _url3 = require('./url'); var _url4 = _interopRequireDefault(_url3); function lowLevel(host, method, rules) { return function (url) { var params = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; // Return a Promise/A+ return initRequest({ host: host, url: url, method: method, rules: rules }, params); }; } function highLevel(host, _ref, rules) { var url = _ref.url; var method = _ref.method; var callback = _ref.callback; return function () { var params = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0]; // Return a Promise/A+ return initRequest({ host: host, rules: rules, url: (0, _url4['default'])(url, params), method: method ? method.toLowerCase() : 'get' }, params, callback); }; } function initRequest(opts, params, middleware) { var rules = opts.rules; var options = isObject(params) ? params : {}; if (rules) { if (rules.all) options = _lodash2['default'].merge(_lodash2['default'].cloneDeep(rules.all), options); if (rules[opts.method]) options = _lodash2['default'].merge(_lodash2['default'].cloneDeep(rules[opts.method]), options); if (options.headers) { Object.keys(options.headers).forEach(function (k) { if (typeof options.headers[k] === 'function') options.headers[k] = options.headers[k](); }); } } options.method = opts.method; options.url = isAbsUri(opts.url) ? opts.url : _url2['default'].resolve(opts.host, opts.url); if (options.json == undefined) options.json = true; (0, _debug2['default'])('sdk:request')(options); return new Promise(function (Resolve, Reject) { return (0, _request2['default'])(options, function (err, response, body) { if (err) return Reject(err); (0, _debug2['default'])('sdk:response:status')(response.statusCode); (0, _debug2['default'])('sdk:response:headers')(response.headers); (0, _debug2['default'])('sdk:response:body')(body); var code = response.statusCode; if (code >= 400) return Reject(new Error(code)); if (_lodash2['default'].isFunction(middleware)) { return middleware(response, body, function (customError, customBody) { if (customError) return Reject(customError); return Resolve({ code: code, response: response, body: customBody || body }); }); } return Resolve({ code: code, response: response, body: body }); }); }); } function isObject(obj) { return obj && _lodash2['default'].isObject(obj) && !_lodash2['default'].isFunction(obj); } function isAbsUri(uri) { return uri && (uri.indexOf('http') === 0 || uri.indexOf('https') === 0); } //# sourceMappingURL=factory.js.map
mit
beni55/fortune
test/integration/serializers/form.js
4619
import http from 'http' import qs from 'querystring' import FormData from 'form-data' import { run, comment } from 'tapdance' import { ok, deepEqual, equal } from '../../helpers' import httpTest from '../http' import json from '../../../lib/serializer/serializers/json' import { formUrlEncoded, formData } from '../../../lib/serializer/serializers/form' import testInstance from '../test_instance' import fortune from '../../../lib' const options = { serializers: [ { type: json }, { type: formUrlEncoded }, { type: formData } ] } const test = httpTest.bind(null, options) run(() => { comment('get anything should fail') return test('/', { headers: { 'Accept': 'application/x-www-form-urlencoded' } }, response => { equal(response.status, 415, 'status is correct') }) }) run(() => { comment('create records using urlencoded data') return test(`/animal`, { method: 'post', headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, body: qs.stringify({ name: 'Ayy lmao', nicknames: [ 'ayy', 'lmao' ] }) }, response => { equal(response.status, 201, 'status is correct') ok(~response.headers['content-type'].indexOf('application/json'), 'content type is correct') deepEqual(response.body.map(record => record.name), [ 'Ayy lmao' ], 'response body is correct') }) }) run(() => { comment('update records using urlencoded data') return test(`/animal`, { method: 'post', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'X-HTTP-Method': 'PATCH' }, body: qs.stringify({ id: 1, name: 'Ayy lmao', nicknames: [ 'ayy', 'lmao' ] }) }, response => { equal(response.status, 200, 'status is correct') ok(~response.headers['content-type'].indexOf('application/json'), 'content type is correct') deepEqual(response.body.map(record => record.name), [ 'Ayy lmao' ], 'response body is correct') }) }) run(() => { comment('create records using form data') let server let store const deadbeef = new Buffer('deadbeef', 'hex') const form = new FormData() form.append('name', 'Ayy lmao') form.append('picture', deadbeef, { filename: 'deadbeef.dump' }) return testInstance(options) .then(s => { store = s server = http.createServer(fortune.net.http(store)).listen(1337) }) .then(() => new Promise((resolve, reject) => form.submit('http://localhost:1337/animal', (error, response) => error ? reject(error) : resolve(response)))) .then(response => { equal(response.statusCode, 201, 'status is correct') ok(~response.headers['content-type'].indexOf('application/json'), 'content type is correct') return new Promise(resolve => { const chunks = [] response.on('data', chunk => chunks.push(chunk)) response.on('end', () => resolve(Buffer.concat(chunks))) }) }) .then(payload => { const body = JSON.parse(payload.toString()) deepEqual(body.map(record => record.name), [ 'Ayy lmao' ], 'name is correct') deepEqual(body.map(record => record.picture), [ deadbeef.toString('base64') ], 'picture is correct') store.disconnect() server.close() }) }) run(() => { comment('update records using form data') let server let store const deadbeef = new Buffer('deadbeef', 'hex') const form = new FormData() form.append('id', 1) form.append('name', 'Ayy lmao') form.append('picture', deadbeef, { filename: 'deadbeef.dump' }) return testInstance(options) .then(s => { store = s server = http.createServer(fortune.net.http(store)).listen(1337) }) .then(() => new Promise((resolve, reject) => form.submit({ host: 'localhost', port: 1337, path: '/animal', headers: { 'X-HTTP-Method': 'PATCH' } }, (error, response) => error ? reject(error) : resolve(response)))) .then(response => { equal(response.statusCode, 200, 'status is correct') ok(~response.headers['content-type'].indexOf('application/json'), 'content type is correct') return new Promise(resolve => { const chunks = [] response.on('data', chunk => chunks.push(chunk)) response.on('end', () => resolve(Buffer.concat(chunks))) }) }) .then(payload => { const body = JSON.parse(payload.toString()) deepEqual(body.map(record => record.name), [ 'Ayy lmao' ], 'name is correct') deepEqual(body.map(record => record.picture), [ deadbeef.toString('base64') ], 'picture is correct') store.disconnect() server.close() }) })
mit
guymguym/webrtc-native
test/dataChannel.js
4725
var WEBRTC = require('../'); function P2P(alice, bob) { alice.onicecandidate = function(event) { var candidate = event.candidate || event; bob.addIceCandidate(candidate); }; bob.onicecandidate = function(event) { var candidate = event.candidate || event; alice.addIceCandidate(candidate); }; alice.onnegotiationneeded = function() { alice.createOffer(function(sdp) { alice.setLocalDescription(sdp, function() { bob.setRemoteDescription(sdp, function() { bob.createAnswer(function(sdp) { bob.setLocalDescription(sdp, function() { alice.setRemoteDescription(sdp, function() { console.log("Alice -> Bob: Connected!"); }); }); }); }); }); }); }; bob.onnegotiationneeded = function() { bob.createOffer(function(sdp) { bob.setLocalDescription(sdp, function() { alice.setRemoteDescription(sdp, function() { alice.createAnswer(function(sdp) { alice.setLocalDescription(sdp, function() { bob.setRemoteDescription(sdp, function() { console.log("Bob -> Alice: Connected!"); }); }); }); }); }); }); }; alice.onaddstream = function(stream) { if (stream) { console.log('Alice got mediaStream'); } }; bob.onaddstream = function(stream) { if (stream) { console.log('Bob got mediaStream'); } }; alice.ondatachannel = function(event, callback) { var channel = event ? event.channel || event : null; if (!channel) { return false; } console.log('Alice: Got DataChannel!'); channel.onopen = function() { console.log('Alice: DataChannel Open!'); if (callback) { callback(channel); } }; channel.onmessage = function(event) { var data = event.data; console.log('Alice:', data); }; channel.onclose = function() { console.log('Alice: DataChannel Closed!'); }; }; bob.ondatachannel = function(event, callback) { var channel = event ? event.channel || event : null; if (!channel) { return false; } console.log('Bob: Got DataChannel!'); channel.onopen = function() { console.log('Bob: DataChannel Open!'); if (callback) { callback(channel); } }; channel.onmessage = function(event) { var data = event.data; console.log('Bob:', data); channel.send('Hello Alice!'); }; channel.onclose = function() { console.log('Bob: DataChannel Closed!'); }; }; } var config = { iceServers: [ { url: 'stun:stun.l.google.com:19302', }, ], }; function sctpTest() { console.log('Running SCTP DataChannel Test'); var sctpDataChannelConfig = { reliable: true, ordered: true, }; var sctpDataChannelConstraints = { audio: false, video: false, optional: [ { RtpDataChannels: false, DtlsSrtpKeyAgreement: true, }, ], mandatory: { OfferToReceiveAudio: false, OfferToReceiveVideo: false, }, }; var alice = new WEBRTC.RTCPeerConnection(config, sctpDataChannelConstraints); var bob = new WEBRTC.RTCPeerConnection(config, sctpDataChannelConstraints); P2P(alice, bob); alice.ondatachannel(alice.createDataChannel('TestChannel', sctpDataChannelConfig), function(channel) { channel.send('Hello Bob!'); setTimeout(function () { channel.close(); }, 1000); setTimeout(function() { alice.close(); bob.close(); }, 5000); }); } function rtpTest() { console.log('Running RTP DataChannel Test'); var rtpDataChannelConfig = { reliable: false, ordered: false, }; var rtpDataChannelConstraints = { audio: false, video: false, optional: [ { RtpDataChannels: true, DtlsSrtpKeyAgreement: false, }, ], mandatory: { OfferToReceiveAudio: false, OfferToReceiveVideo: false, }, }; var alice = new WEBRTC.RTCPeerConnection(config, rtpDataChannelConstraints); var bob = new WEBRTC.RTCPeerConnection(config, rtpDataChannelConstraints); P2P(alice, bob); alice.ondatachannel(alice.createDataChannel('TestChannel', rtpDataChannelConfig), function(channel) { channel.send('Hello Bob!'); setTimeout(function () { channel.close(); }, 1000); setTimeout(function() { alice.close(); bob.close(); setTimeout(function() { sctpTest(); }, 1000); }, 5000); }); } rtpTest();
mit
matt9mg/concrete5
concrete/tools/users/bulk_group_add.php
3607
<?php defined('C5_EXECUTE') or die("Access Denied."); $searchInstance = Loader::helper('text')->entities($_REQUEST['searchInstance']); if (!strlen($searchInstance)) { $searchInstance = 'user'; } $form = Loader::helper('form'); $ih = Loader::helper('concrete/ui'); $tp = new TaskPermission(); $users = array(); if (is_array($_REQUEST['uID'])) { foreach ($_REQUEST['uID'] as $uID) { $ui = UserInfo::getByID($uID); $users[] = $ui; } } foreach ($users as $ui) { $up = new Permissions($ui); if (!$up->canViewUser()) { die(t("Access Denied.")); } } $gl = new GroupList(); $g1 = $gl->getResults(); if ($_POST['task'] == 'group_add') { // build the group array $groupIDs = $_REQUEST['groupIDs']; $groups = array(); if (is_array($groupIDs) && count($groupIDs)) { foreach ($groupIDs as $gID) { $groups[] = Group::getByID($gID); } } foreach ($users as $ui) { if ($ui instanceof UserInfo) { $u = $ui->getUserObject(); foreach ($groups as $g) { $gp = new Permissions($g); if ($gp->canAssignGroup()) { if (!$u->inGroup($g)) { // avoid messing up group enter times $u->enterGroup($g); } } } } } echo Loader::helper('json')->encode(array('error' => false)); exit; } if (!isset($_REQUEST['reload'])) { ?> <div id="ccm-user-bulk-group-add-wrapper"> <?php } ?> <div id="ccm-user-activate" class="ccm-ui"> <form method="post" id="ccm-user-bulk-group-add" action="<?php echo REL_DIR_FILES_TOOLS_REQUIRED ?>/users/bulk_group_add"> <fieldset class="form-stacked"> <?php echo $form->hidden('task', 'group_add'); foreach ($users as $ui) { echo $form->hidden('uID[]', $ui->getUserID()); } ?> <div class="clearfix"> <?=$form->label('groupIDs', t('Add the users below to Group(s)'))?> <div class="input"> <select multiple name="groupIDs[]" class="select2-select" data-placeholder="<?php echo t('Select Group(s)');?>" > <?php foreach ($g1 as $gRow) { $g = Group::getByID($gRow['gID']); $gp = new Permissions($g); if ($gp->canAssignGroup()) { ?> <option value="<?=$g->getGroupID()?>" <?php if (is_array($_REQUEST['groupIDs']) && in_array($g->getGroupID(), $_REQUEST['groupIDs'])) { ?> selected="selected" <?php } ?>><?=$g->getGroupDisplayName()?></option> <?php } }?> </select> </div> </div> </fieldset> <?php Loader::element('users/confirm_list', array('users' => $users)); ?> </form> </div> <div class="dialog-buttons"> <?=$ih->button_js(t('Cancel'), 'jQuery.fn.dialog.closeTop()', 'left', 'btn')?> <?=$ih->button_js(t('Save'), 'ccm_userBulkGroupAdd()', 'right', 'btn primary')?> </div> <?php if (!isset($_REQUEST['reload'])) { ?> </div> <?php } ?> <script type="text/javascript"> ccm_userBulkGroupAdd = function() { jQuery.fn.dialog.showLoader(); $("#ccm-user-bulk-group-add").ajaxSubmit(function(resp) { jQuery.fn.dialog.closeTop(); jQuery.fn.dialog.hideLoader(); ccm_deactivateSearchResults('<?=$searchInstance?>'); ConcreteAlert.notify({ 'message': ccmi18n.saveUserSettingsMsg, 'title': ccmi18n.user_group_add }); $("#ccm-<?=$searchInstance?>-advanced-search").ajaxSubmit(function(r) { ccm_parseAdvancedSearchResponse(r, '<?=$searchInstance?>'); }); }); }; $(function() { $(".select2-select").select2(); }); </script>
mit
AJ-Moore/Blockrus
libraries/include/glm/detail/type_mat3x3.hpp
8860
/////////////////////////////////////////////////////////////////////////////////// /// OpenGL Mathematics (glm.g-truc.net) /// /// Copyright (c) 2005 - 2015 G-Truc Creation (www.g-truc.net) /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to deal /// in the Software without restriction, including without limitation the rights /// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell /// copies of the Software, and to permit persons to whom the Software is /// furnished to do so, subject to the following conditions: /// /// The above copyright notice and this permission notice shall be included in /// all copies or substantial portions of the Software. /// /// Restrictions: /// By making use of the Software for military purposes, you choose to make /// a Bunny unhappy. /// /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, /// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE /// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER /// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. /// /// @ref core /// @file glm/detail/type_mat3x3.hpp /// @date 2005-01-27 / 2011-06-15 /// @author Christophe Riccio /////////////////////////////////////////////////////////////////////////////////// #pragma once #include "../fwd.hpp" #include "type_vec3.hpp" #include "type_mat.hpp" #include <limits> #include <cstddef> namespace glm { template <typename T, precision P = defaultp> struct tmat3x3 { typedef tvec3<T, P> col_type; typedef tvec3<T, P> row_type; typedef tmat3x3<T, P> type; typedef tmat3x3<T, P> transpose_type; typedef T value_type; # ifdef GLM_META_PROG_HELPERS static GLM_RELAXED_CONSTEXPR length_t components = 3; static GLM_RELAXED_CONSTEXPR length_t cols = 3; static GLM_RELAXED_CONSTEXPR length_t rows = 3; static GLM_RELAXED_CONSTEXPR precision prec = P; # endif//GLM_META_PROG_HELPERS template <typename U, precision Q> friend tvec3<U, Q> operator/(tmat3x3<U, Q> const & m, tvec3<U, Q> const & v); template <typename U, precision Q> friend tvec3<U, Q> operator/(tvec3<U, Q> const & v, tmat3x3<U, Q> const & m); private: col_type value[3]; public: // -- Constructors -- GLM_FUNC_DECL tmat3x3() GLM_DEFAULT_CTOR; GLM_FUNC_DECL tmat3x3(tmat3x3<T, P> const & m) GLM_DEFAULT; template <precision Q> GLM_FUNC_DECL tmat3x3(tmat3x3<T, Q> const & m); GLM_FUNC_DECL explicit tmat3x3(ctor); GLM_FUNC_DECL explicit tmat3x3(T const & s); GLM_FUNC_DECL tmat3x3( T const & x0, T const & y0, T const & z0, T const & x1, T const & y1, T const & z1, T const & x2, T const & y2, T const & z2); GLM_FUNC_DECL tmat3x3( col_type const & v0, col_type const & v1, col_type const & v2); // -- Conversions -- template< typename X1, typename Y1, typename Z1, typename X2, typename Y2, typename Z2, typename X3, typename Y3, typename Z3> GLM_FUNC_DECL tmat3x3( X1 const & x1, Y1 const & y1, Z1 const & z1, X2 const & x2, Y2 const & y2, Z2 const & z2, X3 const & x3, Y3 const & y3, Z3 const & z3); template <typename V1, typename V2, typename V3> GLM_FUNC_DECL tmat3x3( tvec3<V1, P> const & v1, tvec3<V2, P> const & v2, tvec3<V3, P> const & v3); // -- Matrix conversions -- template <typename U, precision Q> GLM_FUNC_DECL GLM_EXPLICIT tmat3x3(tmat3x3<U, Q> const & m); GLM_FUNC_DECL explicit tmat3x3(tmat2x2<T, P> const & x); GLM_FUNC_DECL explicit tmat3x3(tmat4x4<T, P> const & x); GLM_FUNC_DECL explicit tmat3x3(tmat2x3<T, P> const & x); GLM_FUNC_DECL explicit tmat3x3(tmat3x2<T, P> const & x); GLM_FUNC_DECL explicit tmat3x3(tmat2x4<T, P> const & x); GLM_FUNC_DECL explicit tmat3x3(tmat4x2<T, P> const & x); GLM_FUNC_DECL explicit tmat3x3(tmat3x4<T, P> const & x); GLM_FUNC_DECL explicit tmat3x3(tmat4x3<T, P> const & x); // -- Accesses -- # ifdef GLM_FORCE_SIZE_FUNC typedef size_t size_type; GLM_FUNC_DECL GLM_CONSTEXPR size_t size() const; GLM_FUNC_DECL col_type & operator[](size_type i); GLM_FUNC_DECL col_type const & operator[](size_type i) const; # else typedef length_t length_type; GLM_FUNC_DECL GLM_CONSTEXPR length_type length() const; GLM_FUNC_DECL col_type & operator[](length_type i); GLM_FUNC_DECL col_type const & operator[](length_type i) const; # endif//GLM_FORCE_SIZE_FUNC // -- Unary arithmetic operators -- GLM_FUNC_DECL tmat3x3<T, P> & operator=(tmat3x3<T, P> const & m) GLM_DEFAULT; template <typename U> GLM_FUNC_DECL tmat3x3<T, P> & operator=(tmat3x3<U, P> const & m); template <typename U> GLM_FUNC_DECL tmat3x3<T, P> & operator+=(U s); template <typename U> GLM_FUNC_DECL tmat3x3<T, P> & operator+=(tmat3x3<U, P> const & m); template <typename U> GLM_FUNC_DECL tmat3x3<T, P> & operator-=(U s); template <typename U> GLM_FUNC_DECL tmat3x3<T, P> & operator-=(tmat3x3<U, P> const & m); template <typename U> GLM_FUNC_DECL tmat3x3<T, P> & operator*=(U s); template <typename U> GLM_FUNC_DECL tmat3x3<T, P> & operator*=(tmat3x3<U, P> const & m); template <typename U> GLM_FUNC_DECL tmat3x3<T, P> & operator/=(U s); template <typename U> GLM_FUNC_DECL tmat3x3<T, P> & operator/=(tmat3x3<U, P> const & m); // -- Increment and decrement operators -- GLM_FUNC_DECL tmat3x3<T, P> & operator++(); GLM_FUNC_DECL tmat3x3<T, P> & operator--(); GLM_FUNC_DECL tmat3x3<T, P> operator++(int); GLM_FUNC_DECL tmat3x3<T, P> operator--(int); }; // -- Unary operators -- template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> const operator-(tmat3x3<T, P> const & m); // -- Binary operators -- template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator+(tmat3x3<T, P> const & m, T const & s); template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator+(T const & s, tmat3x3<T, P> const & m); template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator+(tmat3x3<T, P> const & m1, tmat3x3<T, P> const & m2); template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator-(tmat3x3<T, P> const & m, T const & s); template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator-(T const & s, tmat3x3<T, P> const & m); template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator-(tmat3x3<T, P> const & m1, tmat3x3<T, P> const & m2); template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator*(tmat3x3<T, P> const & m, T const & s); template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator*(T const & s, tmat3x3<T, P> const & m); template <typename T, precision P> GLM_FUNC_DECL typename tmat3x3<T, P>::col_type operator*(tmat3x3<T, P> const & m, typename tmat3x3<T, P>::row_type const & v); template <typename T, precision P> GLM_FUNC_DECL typename tmat3x3<T, P>::row_type operator*(typename tmat3x3<T, P>::col_type const & v, tmat3x3<T, P> const & m); template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator*(tmat3x3<T, P> const & m1, tmat3x3<T, P> const & m2); template <typename T, precision P> GLM_FUNC_DECL tmat2x3<T, P> operator*(tmat3x3<T, P> const & m1, tmat2x3<T, P> const & m2); template <typename T, precision P> GLM_FUNC_DECL tmat4x3<T, P> operator*(tmat3x3<T, P> const & m1, tmat4x3<T, P> const & m2); template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator/(tmat3x3<T, P> const & m, T const & s); template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator/(T const & s, tmat3x3<T, P> const & m); template <typename T, precision P> GLM_FUNC_DECL typename tmat3x3<T, P>::col_type operator/(tmat3x3<T, P> const & m, typename tmat3x3<T, P>::row_type const & v); template <typename T, precision P> GLM_FUNC_DECL typename tmat3x3<T, P>::row_type operator/(typename tmat3x3<T, P>::col_type const & v, tmat3x3<T, P> const & m); template <typename T, precision P> GLM_FUNC_DECL tmat3x3<T, P> operator/(tmat3x3<T, P> const & m1, tmat3x3<T, P> const & m2); // -- Boolean operators -- template <typename T, precision P> GLM_FUNC_DECL bool operator==(tmat3x3<T, P> const & m1, tmat3x3<T, P> const & m2); template <typename T, precision P> GLM_FUNC_DECL bool operator!=(tmat3x3<T, P> const & m1, tmat3x3<T, P> const & m2); // -- Is type -- template <typename T, precision P> struct type<T, P, tmat3x3> { static bool const is_vec = false; static bool const is_mat = true; static bool const is_quat = false; }; }//namespace glm #ifndef GLM_EXTERNAL_TEMPLATE #include "type_mat3x3.inl" #endif
mit
ihym/ng-lightning
src/app/components/select/select.component.ts
169
import { Component } from '@angular/core'; @Component({ selector: 'app-demo-select', templateUrl: './select.component.html', }) export class DemoSelectComponent {}
mit
rgabbard-bbn/bue-common-open
common-core-open/src/main/java/com/bbn/bue/common/files/NoSuchKeyException.java
481
package com.bbn.bue.common.files; /** * Thrown to indicate that a non-existent key has been requested. * * @author Constantine Lignos, Ryan Gabbard */ public final class NoSuchKeyException extends RuntimeException { NoSuchKeyException() { super(); } NoSuchKeyException(String message) { super(message); } NoSuchKeyException(String message, Throwable cause) { super(message, cause); } NoSuchKeyException(Throwable cause) { super(cause); } }
mit
enriclluelles/route_translator
test/integration/generated_path_test.rb
1931
# frozen_string_literal: true require 'test_helper' class GeneratedPathTest < ActionDispatch::IntegrationTest include RouteTranslator::ConfigurationHelper include RouteTranslator::RoutesHelper def setup setup_config end def teardown teardown_config end def test_path_generated get '/show' assert_response :success assert_select 'a[href="/show"]' end def test_path_translated get '/es/mostrar' assert_response :success assert_select 'a[href="/es/mostrar"]' end def test_path_translated_after_force config_force_locale true get '/es/mostrar' assert_response :success assert_select 'a[href="/es/mostrar"]' end def test_path_translated_while_generate_unlocalized_routes config_generate_unlocalized_routes true get '/es/mostrar' assert_response :success assert_select 'a[href="/es/mostrar"]' end def test_with_optionals get '/optional' assert_response :success assert_select 'a[href="/optional"]' get '/optional/12' assert_response :success assert_select 'a[href="/optional/12"]' end def test_with_prefixed_optionals get '/prefixed_optional' assert_response :success assert_select 'a[href="/prefixed_optional"]' get '/prefixed_optional/p-12' assert_response :success assert_select 'a[href="/prefixed_optional/p-12"]' end def test_with_suffix get '/10-suffix' assert_response :success assert_equal '10', response.body end def test_path_translated_with_suffix get '/es/10-sufijo' assert_response :success assert_equal '10', response.body end def test_path_with_slash_in_translation get '/es/foo/bar' assert_response :success assert_equal '/es/foo/bar', response.body end def test_path_with_space_in_translation get '/es/foo%20bar' assert_response :success assert_equal '/es/foo%20bar', response.body end end
mit
adsofmelk/art
app/Console/Commands/ResetPasswordsCommand.php
1919
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; use phpDocumentor\Reflection\Types\This; use Illuminate\Support\Facades\Hash; class ResetPasswordsCommand extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'reset:passwords'; /** * The console command description. * * @var string */ protected $description = 'Reset de passwords de usuarios con numero de documento'; /** * Create a new command instance. * * @return void */ public function __construct() { parent::__construct(); } /** * Execute the console command. * * @return mixed */ public function handle() { echo "\nReset de passwords\n"; try{ $this->resetPasswords(); } catch (Exception $e){ echo $e->getMessage(); return false; } echo "\nProceso finalizado \n\n"; } public function resetPasswords(){ try{ $usuarios = \App\User::get(); foreach ($usuarios as $row){ DB::beginTransaction(); $persona = \App\PersonasModel::find($row->personas_idpersonas); echo "\n".$persona->nombres . " " . $persona->apellidos. " -> ". $persona->documento . " ... "; $usuario = \App\User::find($row->id); $usuario->password = Hash::make($persona->documento); $usuario->save(); echo "Password modificado"; DB::commit(); } return true; } catch (Exception $ex) { DB::rollBack(); return false; } } }
mit
OmerHerera/react-marvel
data/characters.js
707141
module.exports = { "code": 200, "status": "Ok", "copyright": "© 2015 MARVEL", "attributionText": "Data provided by Marvel. © 2015 MARVEL", "attributionHTML": "<a href=\"http://marvel.com\">Data provided by Marvel. © 2015 MARVEL</a>", "etag": "422034efe955c73af06f5be31561401a4230d521", "data": { "offset": 0, "limit": 100, "total": 1485, "count": 100, "results": [ { "id": 1011334, "name": "3-D Man", "description": "", "modified": "2014-04-29T14:18:17-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/c/e0/535fecbbb9784", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011334", "comics": { "available": 11, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011334/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/21366", "name": "Avengers: The Initiative (2007) #14" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24571", "name": "Avengers: The Initiative (2007) #14 (SPOTLIGHT VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/21546", "name": "Avengers: The Initiative (2007) #15" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/21741", "name": "Avengers: The Initiative (2007) #16" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/21975", "name": "Avengers: The Initiative (2007) #17" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/22299", "name": "Avengers: The Initiative (2007) #18" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/22300", "name": "Avengers: The Initiative (2007) #18 (ZOMBIE VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/22506", "name": "Avengers: The Initiative (2007) #19" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/10223", "name": "Marvel Premiere (1972) #35" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/10224", "name": "Marvel Premiere (1972) #36" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/10225", "name": "Marvel Premiere (1972) #37" } ], "returned": 11 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011334/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1945", "name": "Avengers: The Initiative (2007 - 2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2045", "name": "Marvel Premiere (1972 - 1981)" } ], "returned": 2 }, "stories": { "available": 17, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011334/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19947", "name": "Cover #19947", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19948", "name": "The 3-D Man!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19949", "name": "Cover #19949", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19950", "name": "The Devil's Music!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19951", "name": "Cover #19951", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19952", "name": "Code-Name: The Cold Warrior!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/47185", "name": "Avengers: The Initiative (2007) #14 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/47499", "name": "Avengers: The Initiative (2007) #15 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/47792", "name": "Avengers: The Initiative (2007) #16", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/47793", "name": "Avengers: The Initiative (2007) #16 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/48362", "name": "Avengers: The Initiative (2007) #17 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/49104", "name": "Avengers: The Initiative (2007) #18 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/49106", "name": "Avengers: The Initiative (2007) #18, Zombie Variant - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/49888", "name": "Avengers: The Initiative (2007) #19", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/49889", "name": "Avengers: The Initiative (2007) #19 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/54371", "name": "Avengers: The Initiative (2007) #14, Spotlight Variant - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/96303", "name": "Deadpool (1997) #44", "type": "interiorStory" } ], "returned": 17 }, "events": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011334/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/269", "name": "Secret Invasion" } ], "returned": 1 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/74/3-d_man?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/3-D_Man_(Chandler)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011334/3-d_man?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1017100, "name": "A-Bomb (HAS)", "description": "Rick Jones has been Hulk's best bud since day one, but now he's more than a friend...he's a teammate! Transformed by a Gamma energy explosion, A-Bomb's thick, armored skin is just as strong and powerful as it is blue. And when he curls into action, he uses it like a giant bowling ball of destruction! ", "modified": "2013-09-18T15:54:04-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/3/20/5232158de5b16", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1017100", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017100/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017100/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017100/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017100/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/76/a-bomb?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1017100/a-bomb_has?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009144, "name": "A.I.M.", "description": "AIM is a terrorist organization bent on destroying the world.", "modified": "2013-10-17T14:41:30-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/6/20/52602f21f29ec", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009144", "comics": { "available": 36, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009144/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36763", "name": "Ant-Man & the Wasp (2010) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17553", "name": "Avengers (1998) #67" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7340", "name": "Avengers (1963) #87" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1170", "name": "Avengers Vol. 2: Red Zone (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1214", "name": "Avengers Vol. II: Red Zone (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12787", "name": "Captain America (1998) #28" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20367", "name": "Defenders (1972) #57" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/31068", "name": "Incredible Hulks (2009) #606 (VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36737", "name": "Marvel Adventures Super Heroes (2010) #16" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2110", "name": "Marvel Masterworks: Captain America Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1130", "name": "Marvel Masterworks: Captain America Vol. 1 - 2nd Edition (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2820", "name": "Marvel Masterworks: Doctor Strange Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2319", "name": "Marvel Masterworks: Doctor Strange Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2001", "name": "Marvel Masterworks: The Invincible Iron Man Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17468", "name": "Marvel Masterworks: The Invincible Iron Man Vol. 1 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1164", "name": "Marvel Masterworks: The Silver Surfer Vol. 2 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/11068", "name": "Strange Tales (1951) #146" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/11069", "name": "Strange Tales (1951) #147" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/11070", "name": "Strange Tales (1951) #148" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/11324", "name": "Tales of Suspense (1959) #79" } ], "returned": 20 }, "series": { "available": 23, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009144/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/13082", "name": "Ant-Man & the Wasp (2010 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1991", "name": "Avengers (1963 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/354", "name": "Avengers (1998 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/227", "name": "Avengers Vol. 2: Red Zone (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/271", "name": "Avengers Vol. II: Red Zone (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1997", "name": "Captain America (1998 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3743", "name": "Defenders (1972 - 1986)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/8842", "name": "Incredible Hulks (2009 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9718", "name": "Marvel Adventures Super Heroes (2010 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1506", "name": "Marvel Masterworks: Captain America Vol. (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/189", "name": "Marvel Masterworks: Captain America Vol. 1 - 2nd Edition (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1468", "name": "Marvel Masterworks: Doctor Strange Vol. (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1494", "name": "Marvel Masterworks: The Invincible Iron Man Vol. (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3300", "name": "Marvel Masterworks: The Invincible Iron Man Vol. 1 (0000 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/222", "name": "Marvel Masterworks: The Silver Surfer Vol. 2 (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2076", "name": "Strange Tales (1951 - 1968)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2079", "name": "Tales of Suspense (1959 - 1968)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2725", "name": "Tales of Suspense Transport (1959 - 1968)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13213", "name": "Taskmaster (2010 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" } ], "returned": 20 }, "stories": { "available": 28, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009144/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/10253", "name": "When the Unliving Strike", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/10255", "name": "Cover #10255", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/10256", "name": "The Enemy Within!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/10259", "name": "Death Before Dishonor!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/10261", "name": "Cover #10261", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/10262", "name": "The End of A.I.M.!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/11921", "name": "The Red Skull Lives!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/11930", "name": "He Who Holds the Cosmic Cube", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/11936", "name": "The Maddening Mystery of the Inconceivable Adaptoid!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/11981", "name": "If This Be... Modok", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/11984", "name": "A Time to Die -- A Time to Live!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/11995", "name": "At the Mercy of the Maggia", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15243", "name": "Look Homeward, Avenger", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28233", "name": "In Sin Airy X", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28971", "name": "[The Brothers Part I]", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/34426", "name": "The Red Skull Lives!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/34435", "name": "He Who Holds the Cosmic Cube", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/34441", "name": "The Maddening Mystery of the Inconceivable Adaptoid!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/34486", "name": "If This Be... Modok", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/34489", "name": "A Time to Die -- A Time to Live!", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009144/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/77/aim.?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/A.I.M.?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009144/aim.?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010699, "name": "Aaron Stack", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010699", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010699/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010699/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010699/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010699/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2809/aaron_stack?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010699/aaron_stack?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009146, "name": "Abomination (Emil Blonsky)", "description": "Formerly known as Emil Blonsky, a spy of Soviet Yugoslavian origin working for the KGB, the Abomination gained his powers after receiving a dose of gamma radiation similar to that which transformed Bruce Banner into the incredible Hulk.", "modified": "2012-03-20T12:32:12-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/9/50/4ce18691cbf04", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009146", "comics": { "available": 43, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009146/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17547", "name": "Avengers (1998) #61" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17548", "name": "Avengers (1998) #62" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1098", "name": "Avengers Vol. 1: World Trust (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8557", "name": "Earth X (1999) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4241", "name": "Earth X (New (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20863", "name": "Hulk (2008) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23677", "name": "Hulk Vol. 1: Red Hulk (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2499", "name": "Hulk: Destruction (2005) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14425", "name": "Incredible Hulk (1999) #25" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14428", "name": "Incredible Hulk (1999) #28" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14450", "name": "Incredible Hulk (1999) #50" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14451", "name": "Incredible Hulk (1999) #51" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8948", "name": "Incredible Hulk (1962) #137" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9006", "name": "Incredible Hulk (1962) #195" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9007", "name": "Incredible Hulk (1962) #196" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9125", "name": "Incredible Hulk (1962) #314" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9193", "name": "Incredible Hulk (1962) #382" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9194", "name": "Incredible Hulk (1962) #383" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9195", "name": "Incredible Hulk (1962) #384" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9243", "name": "Incredible Hulk (1962) #432" } ], "returned": 20 }, "series": { "available": 24, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009146/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/354", "name": "Avengers (1998 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/158", "name": "Avengers Vol. 1: World Trust (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/378", "name": "Earth X (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1806", "name": "Earth X (New (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3374", "name": "Hulk (2008 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6831", "name": "Hulk Vol. 1: Red Hulk (2009 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/924", "name": "Hulk: Destruction (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/465", "name": "Incredible Hulk (1999 - 2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2021", "name": "Incredible Hulk (1962 - 1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2983", "name": "Incredible Hulk Annual (1968 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/212", "name": "Incredible Hulk Vol. 4: Abominable (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/244", "name": "Incredible Hulk Vol. IV: Abominable (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/8842", "name": "Incredible Hulks (2009 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2572", "name": "Iron Man (1998 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/977", "name": "Irredeemable Ant-Man (2006 - 2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2423", "name": "Irredeemable Ant-Man Vol. 1: Low-Life (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3722", "name": "Killraven (2002 - 2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2437", "name": "Killraven Premiere (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1671", "name": "Marvel Masterworks: The Incredible Hulk Vol.3 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2301", "name": "Marvel Super-Heroes (1992 - 1993)" } ], "returned": 20 }, "stories": { "available": 39, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009146/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4946", "name": "4 of 4 - 4XLS", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5496", "name": "1 of 6 -", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/12370", "name": "Cover #12370", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/12372", "name": "Whosoever Harms the Hulk..!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18419", "name": "[none]", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18420", "name": "The Stars Mine Enemy", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18537", "name": "Warfare In Wonderland!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18539", "name": "The Abomination Proclamation!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18776", "name": "Cover #18776", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18914", "name": "Moving On", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18916", "name": "Green Canard", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18918", "name": "Small Talk", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19024", "name": "Shades of Green", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19081", "name": "Who Shall Fear The Green Goliath?", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19082", "name": "Last Legs", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19119", "name": "The Great Astonishment - Chapter One: Auld Lang Syne", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19122", "name": "The Great Astonishment - Chapter Two: The Edge of Universal Pain", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19124", "name": "The Strangest Story Of All Time!!", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19125", "name": "The Great Astonishment - Conclusion: It's All True!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24932", "name": "Earth X Chapter Seven", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009146/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/296", "name": "Chaos War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/253", "name": "Infinity Gauntlet" } ], "returned": 2 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/81/abomination?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Abomination?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009146/abomination_emil_blonsky?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1016823, "name": "Abomination (Ultimate)", "description": "", "modified": "2012-07-10T19:11:52-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1016823", "comics": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1016823/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15717", "name": "Ultimate X-Men (2000) #26" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1151", "name": "Ultimate X-Men Vol. 6: Return of the King (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1186", "name": "Ultimate X-Men Vol. VI: Return of the King (Trade Paperback)" } ], "returned": 3 }, "series": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1016823/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/474", "name": "Ultimate X-Men (2000 - 2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/210", "name": "Ultimate X-Men Vol. 6: Return of the King (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/243", "name": "Ultimate X-Men Vol. VI: Return of the King (2003)" } ], "returned": 3 }, "stories": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1016823/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31883", "name": "Free Preview of THE INCREDIBLE HULK #50", "type": "interiorStory" } ], "returned": 1 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1016823/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/81/abomination?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1016823/abomination_ultimate?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009148, "name": "Absorbing Man", "description": "", "modified": "2013-10-24T14:32:08-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/1/b0/5269678709fb7", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009148", "comics": { "available": 43, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009148/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36481", "name": "Avengers Academy (2010) #16" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36480", "name": "Avengers Academy (2010) #17" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36479", "name": "Avengers Academy (2010) #18" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36484", "name": "Avengers Academy (2010) #19" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36489", "name": "Avengers Academy (2010) #21" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/6935", "name": "Avengers Annual (1967) #20" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12783", "name": "Captain America (1998) #24" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20427", "name": "Dazzler (1981) #18" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20428", "name": "Dazzler (1981) #19" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/41433", "name": "Fear Itself (2010) #2 (3rd Printing Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38452", "name": "Fear Itself: Fellowship of Fear (2011) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39848", "name": "Fear Itself: The Worthy (2011) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/40977", "name": "Fear Itself: The Worthy (2011) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9072", "name": "Incredible Hulk (1962) #261" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/29794", "name": "Iron Man 2.0 (2011) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/29795", "name": "Iron Man 2.0 (2011) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9698", "name": "Journey Into Mystery (1952) #122" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5234", "name": "Marvel Adventures Fantastic Four (2005) #17" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/6277", "name": "Marvel Adventures Fantastic Four Vol. 5: All 4 One, 4 for All (Digest)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39537", "name": "Marvel Masterworks: The Mighty Thor Vol. 3 (Trade Paperback)" } ], "returned": 20 }, "series": { "available": 28, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009148/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/9086", "name": "Avengers Academy (2010 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1988", "name": "Avengers Annual (1967 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1997", "name": "Captain America (1998 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3745", "name": "Dazzler (1981 - 1986)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13691", "name": "Fear Itself (2010 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13857", "name": "Fear Itself: Fellowship of Fear (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13827", "name": "Fear Itself: The Worthy (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2021", "name": "Incredible Hulk (1962 - 1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9924", "name": "Iron Man 2.0 (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2032", "name": "Journey Into Mystery (1952 - 1966)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/926", "name": "Marvel Adventures Fantastic Four (2005 - 2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1959", "name": "Marvel Adventures Fantastic Four Vol. 5: All 4 One, 4 for All (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14492", "name": "Marvel Masterworks: The Mighty Thor Vol. 3 (2011 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14491", "name": "Marvel Masterworks: The Mighty Thor Vol. 3 Variant (DM Only) (2011 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1588", "name": "Marvel Masterworks: The Mighty Thor Vol. 4 (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2301", "name": "Marvel Super-Heroes (1992 - 1993)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1866", "name": "Mighty Avengers (2007 - 2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2059", "name": "Paradise X (2002 - 2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2431", "name": "Paradise X Vol. 1 (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6796", "name": "Secret Warriors (2008 - 2011)" } ], "returned": 20 }, "stories": { "available": 43, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009148/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4988", "name": "1 of 1", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/11028", "name": "Journey Into Mystery (1952) #122", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/16688", "name": "Thor (1966) #206", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/16691", "name": "Thor (1966) #207", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17049", "name": "Thor (1966) #375", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17050", "name": "Shadows of the Past", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17051", "name": "Heroes Always Win...Don't They?", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17342", "name": "Cover #17342", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17412", "name": "A Wing and a Prayer", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18670", "name": "Encounter On Easter Island!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21604", "name": "Secret Wars (1984) #6", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21606", "name": "Secret Wars (1984) #7", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26016", "name": "Paradise X Issue 0", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26025", "name": "Cover #26025", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28708", "name": "The Hunted Part 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31596", "name": "", "type": "pinup" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31597", "name": "Downtown Demolition", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37745", "name": "A Wing and a Prayer", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/39926", "name": "And the Absorbing Man Makes Three!", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/39927", "name": "Hammer Time!", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009148/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/302", "name": "Fear Itself" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/270", "name": "Secret Wars" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/309", "name": "Shattered Heroes" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/273", "name": "Siege" } ], "returned": 4 }, "urls": [ { "type": "detail", "url": "http://marvel.com/comics/characters/1009148/absorbing_man?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Absorbing_Man?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009148/absorbing_man?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009149, "name": "Abyss", "description": "", "modified": "2014-04-29T14:10:43-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/9/30/535feab462a64", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009149", "comics": { "available": 8, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009149/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13943", "name": "Uncanny X-Men (1963) #402" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13945", "name": "Uncanny X-Men (1963) #404" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13946", "name": "Uncanny X-Men (1963) #405" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13947", "name": "Uncanny X-Men (1963) #406" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13970", "name": "Uncanny X-Men (1963) #429" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13972", "name": "Uncanny X-Men (1963) #431" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12386", "name": "X-Men: Alpha (1994) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2539", "name": "X-Men: The Complete Age of Apocalypse Epic Book 2 (Trade Paperback)" } ], "returned": 8 }, "series": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009149/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2104", "name": "X-Men: Alpha (1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1583", "name": "X-Men: The Complete Age of Apocalypse Epic Book 2 (2005)" } ], "returned": 3 }, "stories": { "available": 8, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009149/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26281", "name": "A Beginning", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28352", "name": "Utility of Myth", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28356", "name": "Army Ants", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28358", "name": "Ballroom Blitzkrieg", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28360", "name": "Staring Contests are for Suckers", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28407", "name": "The Draco Part One: Sins of the Father", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28411", "name": "The Draco Part Three", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28413", "name": "The Draco Part Four", "type": "interiorStory" } ], "returned": 8 }, "events": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009149/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/227", "name": "Age of Apocalypse" } ], "returned": 1 }, "urls": [ { "type": "detail", "url": "http://marvel.com/comics/characters/1009149/abyss?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Abyss_(alien)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009149/abyss?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010903, "name": "Abyss (Age of Apocalypse)", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/3/80/4c00358ec7548", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010903", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010903/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010903/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010903/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010903/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/85/abyss?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Abyss_(Age_of_Apocalypse)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010903/abyss_age_of_apocalypse?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011266, "name": "Adam Destine", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011266", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011266/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011266/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011266/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011266/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2902/adam_destine?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Destine,_Adam?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011266/adam_destine?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010354, "name": "Adam Warlock", "description": "Adam Warlock is an artificially created human who was born in a cocoon at a scientific complex called The Beehive.", "modified": "2013-08-07T13:49:06-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/a/f0/5202887448860", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010354", "comics": { "available": 104, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010354/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17271", "name": "Annihilation: Conquest (2007) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17405", "name": "Annihilation: Conquest (2007) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17645", "name": "Annihilation: Conquest (2007) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20686", "name": "Annihilation: Conquest (2007) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20885", "name": "Annihilation: Conquest (2007) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/21016", "name": "Annihilation: Conquest (2007) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12412", "name": "Avengers Forever (1998) #9" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1033", "name": "Avengers Legends Vol. I: Avengers Forever (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20731", "name": "Clandestine Classic Premiere (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20187", "name": "Doctor Strange, Sorcerer Supreme (1988) #27" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20193", "name": "Doctor Strange, Sorcerer Supreme (1988) #32" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20197", "name": "Doctor Strange, Sorcerer Supreme (1988) #36" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8560", "name": "Earth X (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8552", "name": "Earth X (1999) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8550", "name": "Earth X (1999) #11" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4241", "name": "Earth X (New (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12975", "name": "Fantastic Four (1961) #172" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13195", "name": "Fantastic Four (1961) #370" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8988", "name": "Incredible Hulk (1962) #177" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8989", "name": "Incredible Hulk (1962) #178" } ], "returned": 20 }, "series": { "available": 46, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010354/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/3061", "name": "Annihilation: Conquest (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2111", "name": "Avengers Forever (1998 - 2001)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/93", "name": "Avengers Legends Vol. I: Avengers Forever (2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3874", "name": "Clandestine Classic Premiere (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3741", "name": "Doctor Strange, Sorcerer Supreme (1988 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/378", "name": "Earth X (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1806", "name": "Earth X (New (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2121", "name": "Fantastic Four (1961 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2021", "name": "Incredible Hulk (1962 - 1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2983", "name": "Incredible Hulk Annual (1968 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6449", "name": "Infinity Crusade Vol. 1 (2008 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2039", "name": "Marvel Comics Presents (1988 - 1995)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1697", "name": "Marvel Comics Presents: Wolverine Vol. 4 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1837", "name": "Marvel Masterworks: Warlock Vol. (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2045", "name": "Marvel Premiere (1972 - 1981)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2301", "name": "Marvel Super-Heroes (1992 - 1993)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3715", "name": "Marvel Two-in-One (1974 - 1983)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1504", "name": "Marvel Visionaries: Steve Ditko (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/7455", "name": "New Mutants (2009 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2055", "name": "New Mutants (1983 - 1991)" } ], "returned": 20 }, "stories": { "available": 124, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010354/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/12569", "name": "Cry, the Bedeviled Planet!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/13121", "name": "Forever Evil", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18500", "name": "Peril of the Paired Planets", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18501", "name": "Peril of the Paired Planets", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18503", "name": "Triumph On Terra-Two", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19847", "name": "Cover #19847", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19848", "name": "Performance", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19859", "name": "Days of Future Present Part 4", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19860", "name": "You Must Remember This", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19883", "name": "The Adventures of Lockheed the Space Dragon and His Pet Girl, Kitty", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19884", "name": "The Saga of Storm: Goddess of Thunder", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19885", "name": "There's No Place Like Home", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19887", "name": "Cover #19887", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19888", "name": "And Men Shall Call Him Warlock", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19911", "name": "Cover #19911", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19912", "name": "The Hounds of Helios", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/20169", "name": "Cover #20169", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/20170", "name": "The Day of the Prophet", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/20171", "name": "Cover #20171", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/20172", "name": "How Strange My Destiny! The Price! Part I Chapter I", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 10, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010354/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/293", "name": "Annihilation: Conquest" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/233", "name": "Atlantis Attacks" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/235", "name": "Blood and Thunder" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/240", "name": "Days of Future Present" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/302", "name": "Fear Itself" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/253", "name": "Infinity Gauntlet" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/29", "name": "Infinity War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/263", "name": "Mutant Massacre" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/271", "name": "Secret Wars II" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/280", "name": "X-Tinction Agenda" } ], "returned": 10 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2854/adam_warlock?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Warlock,_Adam?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010354/adam_warlock?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010846, "name": "Aegis (Trey Rollins)", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/5/e0/4c0035c9c425d", "extension": "gif" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010846", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010846/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010846/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010846/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010846/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/95/aegis?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Aegis_%28Trey_Rollins%29?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010846/aegis_trey_rollins?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011297, "name": "Agent Brand", "description": "", "modified": "2013-10-24T13:09:30-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/4/60/52695285d6e7e", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011297", "comics": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011297/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5477", "name": "Astonishing X-Men (2004) #19 (Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38318", "name": "Astonishing X-Men (2004) #38" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38319", "name": "Astonishing X-Men (2004) #40" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/40024", "name": "Astonishing X-Men (2004) #40 (I Am Captain America Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39890", "name": "Heralds (Trade Paperback)" } ], "returned": 5 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011297/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/744", "name": "Astonishing X-Men (2004 - 2013)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13065", "name": "Heralds (2010 - Present)" } ], "returned": 2 }, "stories": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011297/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3353", "name": "Interior #3353", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/89900", "name": "Astonishing X-Men (2004) #38", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/90548", "name": "Heralds TPB", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/90819", "name": "Interior #90819", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/90853", "name": " Interior Astonishing X-Men (2004) #40", "type": "interiorStory" } ], "returned": 5 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011297/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/100/agent_brand?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Agent_Brand?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011297/agent_brand?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011031, "name": "Agent X (Nijo)", "description": "Originally a partner of the mind-altering assassin Black Swan, Nijo spied on Deadpool as part of the Swan's plan to exact revenge for Deadpool falsely taking credit for the Swan's assassination of the Four Winds crime family, which included Nijo's brother.", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011031", "comics": { "available": 10, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011031/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17702", "name": "Agent X (2002) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17709", "name": "Agent X (2002) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17710", "name": "Agent X (2002) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17711", "name": "Agent X (2002) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17712", "name": "Agent X (2002) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17713", "name": "Agent X (2002) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17704", "name": "Agent X (2002) #11" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1649", "name": "Cable & Deadpool (2004) #12" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/21845", "name": "Cable & Deadpool (2004) #46 (Zombie Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5761", "name": "Cable & Deadpool Vol. 2: The Burnt Offering (Trade Paperback)" } ], "returned": 10 }, "series": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011031/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/459", "name": "Agent X (2002 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/693", "name": "Cable & Deadpool (2004 - 2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1338", "name": "Cable & Deadpool Vol. 2: The Burnt Offering (2007)" } ], "returned": 3 }, "stories": { "available": 15, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011031/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2484", "name": "2 of 2 - Thirty Pieces", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37514", "name": "Cover #37514", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37515", "name": "Dead Man's Switch Part One", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37518", "name": "Cover #37518", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37525", "name": "Cover #37525", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37526", "name": "Dead Man's Switch Part Two", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37527", "name": "Cover #37527", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37528", "name": "Dead Man's Switch Part Three", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37529", "name": "Cover #37529", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37530", "name": "Dead Man's Switch Part Four", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37531", "name": "Cover #37531", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37532", "name": "Dead Man's Switch Part Five", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37533", "name": "Cover #37533", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37534", "name": "Dead Man's Switch Part Six", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/94769", "name": "Cable & Deadpool (2004) #46, Zombie Variant", "type": "cover" } ], "returned": 15 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011031/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/101/agent_x?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Agent_X_(Nijo)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011031/agent_x_nijo?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009150, "name": "Agent Zero", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/f/60/4c0042121d790", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009150", "comics": { "available": 20, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009150/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/3357", "name": "Weapon X: Days of Future Now (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2438", "name": "Weapon X: Days of Future Now (2005) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18293", "name": "What If? (1989)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14182", "name": "Wolverine (1988) #60" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14183", "name": "Wolverine (1988) #61" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14184", "name": "Wolverine (1988) #62" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14185", "name": "Wolverine (1988) #63" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14186", "name": "Wolverine (1988) #64" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14189", "name": "Wolverine (1988) #67" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14190", "name": "Wolverine (1988) #68" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14211", "name": "Wolverine (1988) #87" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14107", "name": "Wolverine (1988) #163" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14110", "name": "Wolverine (1988) #166" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14121", "name": "Wolverine (1988) #176" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1023", "name": "Wolverine/Deadpool: Weapon X (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18176", "name": "X-Man (1995)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14282", "name": "X-Men (1991) #10" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14293", "name": "X-Men (1991) #11" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18132", "name": "X-Men Unlimited (1993) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18116", "name": "X-Men Unlimited (1993) #15" } ], "returned": 20 }, "series": { "available": 8, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009150/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1478", "name": "Weapon X: Days of Future Now (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/869", "name": "Weapon X: Days of Future Now (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3648", "name": "What If? (1989 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2262", "name": "Wolverine (1988 - 2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/84", "name": "Wolverine/Deadpool: Weapon X (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3643", "name": "X-Man (1995 - 2000)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2265", "name": "X-Men (1991 - 2001)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3637", "name": "X-Men Unlimited (1993 - 1999)" } ], "returned": 8 }, "stories": { "available": 20, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009150/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4606", "name": "3 of 5 - 5XLS", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28706", "name": "The Hunted Part 2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28712", "name": "The Hunted Part 5", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28738", "name": "The Logan Files Epilogue", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28881", "name": "Counting Coup", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28883", "name": "Nightmare Quest!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28885", "name": "Reunion!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28887", "name": "Bastions of Glory!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28889", "name": "What Goes Around...", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28895", "name": "Valley O' Death", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28897", "name": "Epsilon Red", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28941", "name": "Showdown In Lowtown", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/29125", "name": "Last Stand", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/29139", "name": "Over...Again", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38511", "name": "Second Contact", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38554", "name": "Among Us--A Sabretooth", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38555", "name": "The Whispers Scream", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38556", "name": "Sabretooth Vs. Maverick: Severed Ties", "type": "pinup" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38650", "name": "Maverick", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38903", "name": "Maverick", "type": "" } ], "returned": 20 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009150/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/102/agent_zero?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Agent_Zero?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009150/agent_zero?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011198, "name": "Agents of Atlas", "description": "", "modified": "2010-11-17T14:36:25-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/9/a0/4ce18a834b7f5", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011198", "comics": { "available": 31, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011198/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/6318", "name": "Agents of Atlas (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23659", "name": "Agents of Atlas (2009) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4801", "name": "Agents of Atlas (2006) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23660", "name": "Agents of Atlas (2009) #1 (50/50 COVER)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23825", "name": "Agents of Atlas (2009) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5089", "name": "Agents of Atlas (2006) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/27402", "name": "Agents of Atlas (2009) #2 (BACHALO 2ND PRINTING VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23824", "name": "Agents of Atlas (2009) #2 (MCGUINNESS VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5241", "name": "Agents of Atlas (2006) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24015", "name": "Agents of Atlas (2009) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24016", "name": "Agents of Atlas (2009) #3 (MCGUINNESS VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24017", "name": "Agents of Atlas (2009) #3 (Wolverine Art Appreciation Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5404", "name": "Agents of Atlas (2006) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24219", "name": "Agents of Atlas (2009) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5665", "name": "Agents of Atlas (2006) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24221", "name": "Agents of Atlas (2009) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24222", "name": "Agents of Atlas (2009) #5 (MCGUINNESS VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5842", "name": "Agents of Atlas (2006) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24360", "name": "Agents of Atlas (2009) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24361", "name": "Agents of Atlas (2009) #7" } ], "returned": 20 }, "series": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011198/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/6807", "name": "Agents of Atlas (2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1980", "name": "Agents of Atlas (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1097", "name": "Agents of Atlas (2006 - 2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9181", "name": "Avengers Vs. Atlas (2010)" } ], "returned": 4 }, "stories": { "available": 32, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011198/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/6009", "name": "1 of 6 - 6 XLS-", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/6011", "name": "2 of 6 - 6 XLS -", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/6013", "name": "3 of 6 - 6 XLS -", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/6015", "name": "4 of 6 - 6 XLS -", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/6017", "name": "5 of 6 - 6 XLS -", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/6019", "name": "5 of 6 - Story A - 6XLS", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/52393", "name": "1 of 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/52395", "name": "1 of 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/52861", "name": "2 of 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/52863", "name": "2 of 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53263", "name": "3 of 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53265", "name": "3 of 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53266", "name": "3 of 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53669", "name": "1 of 2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53673", "name": "2 of 2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53675", "name": "2 of 2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53893", "name": "Interior #53893", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53895", "name": "Interior #53895", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53897", "name": "Interior #53897", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53899", "name": "Interior #53899", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011198/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/318", "name": "Dark Reign" } ], "returned": 1 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/103/agents_of_atlas?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Agents_of_Atlas?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011198/agents_of_atlas?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011175, "name": "Aginar", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011175", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011175/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011175/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011175/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011175/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/105/aginar?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Aginar?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011175/aginar?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011136, "name": "Air-Walker (Gabriel Lan)", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011136", "comics": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011136/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5589", "name": "Heroes Reborn: Iron Man (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/16330", "name": "Iron Man (1996) #11" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/16331", "name": "Iron Man (1996) #12" } ], "returned": 3 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011136/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1814", "name": "Heroes Reborn: Iron Man (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13577", "name": "Iron Man (1996 - 1998)" } ], "returned": 2 }, "stories": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011136/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/34082", "name": "Magical Mystery Tour", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/34085", "name": "Matters of the Heart", "type": "interiorStory" } ], "returned": 2 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011136/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/109/air-walker?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Air-Walker_(Gabriel_Lan)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011136/air-walker_gabriel_lan?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011176, "name": "Ajak", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/2/80/4c002f35c5215", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011176", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011176/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011176/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011176/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011176/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/111/ajak?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Ajak?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011176/ajak?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010870, "name": "Ajaxis", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/70/4c0035adc7d3a", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010870", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010870/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010870/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010870/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010870/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/113/ajaxis?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Ajaxis?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010870/ajaxis?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011194, "name": "Akemi", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011194", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011194/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011194/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011194/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011194/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/114/akemi?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011194/akemi?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011170, "name": "Alain", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011170", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011170/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011170/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011170/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011170/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/116/alain?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Alain?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011170/alain?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009240, "name": "Albert Cleary", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009240", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009240/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009240/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009240/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009240/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2692/albert_cleary?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009240/albert_cleary?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011120, "name": "Albion", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011120", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011120/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011120/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011120/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011120/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/118/albion?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Albion?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011120/albion?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010836, "name": "Alex Power", "description": "", "modified": "2011-10-27T09:57:58-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/9/50/4ce5a385a2e82", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010836", "comics": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010836/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/35509", "name": "Amazing Spider-Man (1999) #673" } ], "returned": 1 }, "series": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010836/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/454", "name": "Amazing Spider-Man (1999 - 2013)" } ], "returned": 1 }, "stories": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010836/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/95451", "name": "Amazing Spider-Man (1999) #673", "type": "cover" } ], "returned": 1 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010836/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/1387/alex_power?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010836/alex_power?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010755, "name": "Alex Wilder", "description": "Despite being the only one of the Runaways without any superhuman abilities or tech, Alex Wilder became the de facto leader of the group due to his natural leadership skills and intellect, as well as prodigy-level logic and strategy.", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/2/c0/4c00377144d5a", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010755", "comics": { "available": 7, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010755/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15061", "name": "Runaways (2003) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15071", "name": "Runaways (2003) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15072", "name": "Runaways (2003) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15073", "name": "Runaways (2003) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15074", "name": "Runaways (2003) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15075", "name": "Runaways (2003) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1273", "name": "Runaways Vol. 1: Pride & Joy (Digest)" } ], "returned": 7 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010755/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2584", "name": "Runaways (2003 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/327", "name": "Runaways Vol. 1: Pride & Joy (2004)" } ], "returned": 2 }, "stories": { "available": 7, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010755/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30606", "name": "Pride and Joy, Part 1 of 6", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30622", "name": "Cover #30622", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30623", "name": "Pride and Joy, Part 2 of 6", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30625", "name": "Pride and Joy, Part 3 of 6", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30627", "name": "Pride and Joy, Part 4 of 6", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30629", "name": "Pride and Joy, Part 5 of 6", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30631", "name": "Pride and Joy, Part 6 of 6", "type": "interiorStory" } ], "returned": 7 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010755/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2820/alex_wilder?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Wilder%2C_Alex?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010755/alex_wilder?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011214, "name": "Alexa Mendez", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011214", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011214/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011214/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011214/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011214/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2892/alexa_mendez?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011214/alexa_mendez?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009497, "name": "Alexander Pierce", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009497", "comics": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009497/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/26285", "name": "Secret Warriors (2008) #12" } ], "returned": 1 }, "series": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009497/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/6796", "name": "Secret Warriors (2008 - 2011)" } ], "returned": 1 }, "stories": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009497/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/57873", "name": "Secret Warriors (2008) #12", "type": "interiorStory" } ], "returned": 1 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009497/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2738/alexander_pierce?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009497/alexander_pierce?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1014990, "name": "Alice", "description": "", "modified": "2010-11-18T16:01:44-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/6/70/4cd061e6d6573", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1014990", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1014990/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1014990/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1014990/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1014990/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/122/alice?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1014990/alice?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009435, "name": "Alicia Masters", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/4c003d40ac7ae", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009435", "comics": { "available": 9, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009435/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17460", "name": "Fantastic Four 1 2 3 4 (2001)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/16082", "name": "Fantastic Four: 1234 (2001) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/16083", "name": "Fantastic Four: 1234 (2001) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/16084", "name": "Fantastic Four: 1234 (2001) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38977", "name": "Fear Itself: FF (2011) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/19501", "name": "Marvel Two-in-One (1974) #32" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/19506", "name": "Marvel Two-in-One (1974) #37" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18751", "name": "The Thing (1983) #8" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18752", "name": "The Thing (1983) #9" } ], "returned": 9 }, "series": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009435/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/3292", "name": "Fantastic Four 1 2 3 4 (2001)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2579", "name": "Fantastic Four: 1234 (2001 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14102", "name": "Fear Itself: FF (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3715", "name": "Marvel Two-in-One (1974 - 1983)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3667", "name": "The Thing (1983 - 1986)" } ], "returned": 5 }, "stories": { "available": 8, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009435/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32850", "name": "\"2: Staring at the Fish Tank\"", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32855", "name": "\"3: Darkness and the Mole Man\"", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32860", "name": "\"4: Prime Mover\"", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/40123", "name": "Cover #40123", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/40125", "name": "Cover #40125", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/41360", "name": "Only The Invisible Girl Can Save Us Now!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/41370", "name": "Game Point!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/85537", "name": "Interior #85537", "type": "interiorStory" } ], "returned": 8 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009435/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2732/alicia_masters?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Masters%2C_Alicia?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009435/alicia_masters?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010370, "name": "Alpha Flight", "description": "", "modified": "2013-10-24T13:09:22-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/1/60/52695277ee088", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010370", "comics": { "available": 169, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010370/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12637", "name": "Alpha Flight (1983) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/393", "name": "Alpha Flight (2004) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39819", "name": "Alpha Flight (2011) #1 (Eaglesham Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12679", "name": "Alpha Flight (1983) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38569", "name": "Alpha Flight (2011) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/456", "name": "Alpha Flight (2004) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39818", "name": "Alpha Flight (2011) #2 (Eaglesham Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12690", "name": "Alpha Flight (1983) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/616", "name": "Alpha Flight (2004) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39820", "name": "Alpha Flight (2011) #3 (Eaglesham Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12701", "name": "Alpha Flight (1983) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38567", "name": "Alpha Flight (2011) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/677", "name": "Alpha Flight (2004) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12712", "name": "Alpha Flight (1983) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/613", "name": "Alpha Flight (2004) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38568", "name": "Alpha Flight (2011) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/572", "name": "Alpha Flight (2004) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12723", "name": "Alpha Flight (1983) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/790", "name": "Alpha Flight (2004) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12734", "name": "Alpha Flight (1983) #7" } ], "returned": 20 }, "series": { "available": 22, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010370/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2116", "name": "Alpha Flight (1983 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13907", "name": "Alpha Flight (2011 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/719", "name": "Alpha Flight (2004 - 2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1983", "name": "Alpha Flight Classic Vol. 1 (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1234", "name": "Alpha Flight Vol. 1: You Gotta Be Kiddin' Me (2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1335", "name": "Alpha Flight Vol. 2: Waxing Poetic (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/744", "name": "Astonishing X-Men (2004 - 2013)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1995", "name": "Cable (1993 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/11854", "name": "Chaos War (2010 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13468", "name": "Chaos War One-Shots (2010 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2005", "name": "Deadpool (1997 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14399", "name": "Essential X-Men Vol. 2 (All-New Edition) (2011 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2123", "name": "Fantastic Four (1996 - 1997)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2121", "name": "Fantastic Four (1961 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1812", "name": "Heroes Reborn: Fantastic Four (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2021", "name": "Incredible Hulk (1962 - 1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3719", "name": "Marvel Fanfare (1982 - 1992)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2095", "name": "What If? (1977 - 1984)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2262", "name": "Wolverine (1988 - 2003)" } ], "returned": 20 }, "stories": { "available": 316, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010370/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2922", "name": "1 of 4 - Days of Future Present Past Participle", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2924", "name": "Interior #2924", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2926", "name": "Interior #2926", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2928", "name": "Interior #2928", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2930", "name": "Interior #2930", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2932", "name": "Interior #2932", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2934", "name": "Interior #2934", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2936", "name": "\"WAXING POETIC\" PART 1 (OF 2) Is the All-New, All-Different Alpha Flight really disbanding after only seven issues? Not if the r", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2938", "name": "\"WAXING POETIC\" PART 2 (OF 2) Montreal faces its gravest hour as it falls under attack by…wax statues of the entire Marvel Unive", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2940", "name": "2 of 4 - Days of Future Present Past Participle", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2942", "name": "3 of 4 - Days of Future Present Past Participle", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2943", "name": "4 of 4 - Days of Future Present Past Participle", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2944", "name": "4 of 4 - Days of Future Present Past Participle", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/13113", "name": "With Malice Toward All!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18775", "name": "Hook, Line, and Sinker", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/20797", "name": "What if Alpha Flight talked like T.V. Canadians?", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21096", "name": "Alpha Flight (1983) #1", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21097", "name": "Tundra!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21098", "name": "Cover #21098", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21099", "name": "Blood Battle", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010370/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/116", "name": "Acts of Vengeance!" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/296", "name": "Chaos War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/302", "name": "Fear Itself" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/29", "name": "Infinity War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/271", "name": "Secret Wars II" } ], "returned": 5 }, "urls": [ { "type": "detail", "url": "http://marvel.com/comics/characters/1010370/alpha_flight?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Alpha_Flight?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010370/alpha_flight?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011324, "name": "Alpha Flight (Ultimate)", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011324", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011324/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011324/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011324/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011324/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/126/alpha_flight?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Alpha%20Flight%20(Ultimate)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011324/alpha_flight_ultimate?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011164, "name": "Alvin Maker", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011164", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011164/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011164/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011164/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011164/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2880/alvin_maker?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011164/alvin_maker?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011227, "name": "Amadeus Cho", "description": "", "modified": "2013-08-07T13:50:56-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/3/80/520288b9cb581", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011227", "comics": { "available": 26, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011227/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38496", "name": "Fear Itself: The Home Front (2010) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38493", "name": "Fear Itself: The Home Front (2010) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/30722", "name": "Hercules: Fall of an Avenger (2010) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20636", "name": "Incredible Hercules (2008) #114" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20827", "name": "Incredible Hercules (2008) #115" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20828", "name": "Incredible Hercules (2008) #115 (VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23930", "name": "Incredible Hercules (2008) #128" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/30015", "name": "Incredible Hulks (2009) #607 (MCGUINNESS VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36044", "name": "Incredible Hulks (2009) #630" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23106", "name": "Mighty Avengers (2007) #21" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23603", "name": "Mighty Avengers (2007) #22" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23762", "name": "Mighty Avengers (2007) #23" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23964", "name": "Mighty Avengers (2007) #24" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24163", "name": "Mighty Avengers (2007) #25" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/25970", "name": "Mighty Avengers (2007) #26" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/25971", "name": "Mighty Avengers (2007) #27" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/25972", "name": "Mighty Avengers (2007) #28" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/25973", "name": "Mighty Avengers (2007) #29" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/25974", "name": "Mighty Avengers (2007) #30" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/25975", "name": "Mighty Avengers (2007) #31" } ], "returned": 20 }, "series": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011227/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/13881", "name": "Fear Itself: The Home Front (2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9350", "name": "Hercules: Fall of an Avenger (2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3762", "name": "Incredible Hercules (2008 - 2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/8842", "name": "Incredible Hulks (2009 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1866", "name": "Mighty Avengers (2007 - 2010)" } ], "returned": 5 }, "stories": { "available": 27, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011227/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/44256", "name": "Herc 3 of 4", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/44605", "name": "Herc 4 of 4", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/44606", "name": "Herc 4 of 4", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/44607", "name": "Herc 4 of 4", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/51237", "name": "Interior #51237", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/52267", "name": "2 of 6", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/52726", "name": "3 of 6", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53077", "name": "2 of 2 Dark Reign", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53148", "name": "1 of 1", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53543", "name": "1 of 2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/57228", "name": "Interior #57228", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/57230", "name": "Interior #57230", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/57232", "name": "Interior #57232", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/57234", "name": "Interior #57234", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/57236", "name": "Interior #57236", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/57238", "name": "Interior #57238", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/57240", "name": "Interior #57240", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/57242", "name": "Interior #57242", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/63744", "name": "Interior #63744", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/64992", "name": "Interior #64992", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011227/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/318", "name": "Dark Reign" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/302", "name": "Fear Itself" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/273", "name": "Siege" } ], "returned": 3 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2804/amadeus_cho?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Amadeus_Cho?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011227/amadeus_cho?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009567, "name": "Amanda Sefton", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009567", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009567/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009567/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009567/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009567/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2755/amanda_sefton?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009567/amanda_sefton?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011382, "name": "Amazoness", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011382", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011382/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011382/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011382/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011382/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/130/amazoness?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011382/amazoness?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011361, "name": "American Eagle (Jason Strongbow)", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/f/80/4ce5a6d8b8f2a", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011361", "comics": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011361/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/10105", "name": "Marvel Comics Presents (1988) #27" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/10042", "name": "Marvel Comics Presents (1988) #128" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/10045", "name": "Marvel Comics Presents (1988) #130" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/10063", "name": "Marvel Comics Presents (1988) #147" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/10064", "name": "Marvel Comics Presents (1988) #148" } ], "returned": 5 }, "series": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011361/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2039", "name": "Marvel Comics Presents (1988 - 1995)" } ], "returned": 1 }, "stories": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011361/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22862", "name": "The Hunter and the Hunted", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22880", "name": "Screams", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22990", "name": "Saints and Sinner", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22996", "name": "500 Guns", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/23237", "name": "Just Another Shade of Hate", "type": "" } ], "returned": 5 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011361/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/132/american_eagle?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/American_Eagle_(Jason_Strongbow)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011361/american_eagle_jason_strongbow?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009151, "name": "Amiko", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009151", "comics": { "available": 11, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009151/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13722", "name": "Uncanny X-Men (1963) #181" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14206", "name": "Wolverine (1988) #82" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14045", "name": "Wolverine (1988) #107" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14046", "name": "Wolverine (1988) #108" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14047", "name": "Wolverine (1988) #109" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14093", "name": "Wolverine (1988) #150" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14094", "name": "Wolverine (1988) #151" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14095", "name": "Wolverine (1988) #152" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14096", "name": "Wolverine (1988) #153" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14118", "name": "Wolverine (1988) #173" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14119", "name": "Wolverine (1988) #174" } ], "returned": 11 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009151/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2262", "name": "Wolverine (1988 - 2003)" } ], "returned": 2 }, "stories": { "available": 11, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009151/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27872", "name": "Tokyo Story", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28580", "name": "Once Upon a Time in Little Tokyo", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28582", "name": "East is East", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28584", "name": "[Untitled]", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28677", "name": "Blood Debt Part 1", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28680", "name": "Blood Debt Part 2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28682", "name": "Blood Debt Part 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28684", "name": "Blood Debt Part 4", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28729", "name": "The Logan Files Part 1", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28732", "name": "The Logan Files Part 2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28931", "name": "Omnia Mutantur", "type": "interiorStory" } ], "returned": 11 }, "events": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009151/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/270", "name": "Secret Wars" } ], "returned": 1 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/134/amiko?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Amiko?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009151/amiko?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010672, "name": "Amora", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010672", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010672/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010672/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010672/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010672/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/136/amora?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010672/amora?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010673, "name": "Amphibian (Earth-712)", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010673", "comics": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010673/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/3908", "name": "Squadron Supreme (2006) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4038", "name": "Squadron Supreme (2006) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5425", "name": "Squadron Supreme Vol. 1: The Pre-War Years Premiere (Hardcover)" } ], "returned": 3 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010673/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/944", "name": "Squadron Supreme (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1791", "name": "Squadron Supreme Vol. 1: The Pre-War Years Premiere (2006)" } ], "returned": 2 }, "stories": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010673/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5249", "name": "1 of 6 - The Pre-War Years", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5251", "name": "2 of 6 - The Pre-War Years", "type": "cover" } ], "returned": 2 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010673/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/137/amphibian?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Amphibian_(Earth-712)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010673/amphibian_earth-712?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010905, "name": "Amun", "description": "Amun is a ruthless teenage assassin, employed by the Sisterhood of the Wasp to serve under the mage Vincent after Araña interrupted the ritual to initiate the Wasp's new chosen one.", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010905", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010905/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010905/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010905/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010905/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/140/amun?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Amun?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010905/amun?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009152, "name": "Ancient One", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/b0/4ce59ea2103ac", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009152", "comics": { "available": 21, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009152/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20234", "name": "Doctor Strange, Sorcerer Supreme (1988) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20245", "name": "Doctor Strange, Sorcerer Supreme (1988) #8" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20172", "name": "Doctor Strange, Sorcerer Supreme (1988) #13" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20182", "name": "Doctor Strange, Sorcerer Supreme (1988) #22" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20183", "name": "Doctor Strange, Sorcerer Supreme (1988) #23" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20194", "name": "Doctor Strange, Sorcerer Supreme (1988) #33" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20195", "name": "Doctor Strange, Sorcerer Supreme (1988) #34" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20207", "name": "Doctor Strange, Sorcerer Supreme (1988) #45" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20209", "name": "Doctor Strange, Sorcerer Supreme (1988) #47" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20217", "name": "Doctor Strange, Sorcerer Supreme (1988) #54" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20218", "name": "Doctor Strange, Sorcerer Supreme (1988) #55" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20250", "name": "Doctor Strange, Sorcerer Supreme (1988) #84" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20251", "name": "Doctor Strange, Sorcerer Supreme (1988) #85" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20253", "name": "Doctor Strange, Sorcerer Supreme (1988) #87" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20254", "name": "Doctor Strange, Sorcerer Supreme (1988) #88" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2319", "name": "Marvel Masterworks: Doctor Strange Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2820", "name": "Marvel Masterworks: Doctor Strange Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/11070", "name": "Strange Tales (1951) #148" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/11079", "name": "Strange Tales (1951) #156" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/11091", "name": "Strange Tales (1951) #167" } ], "returned": 20 }, "series": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009152/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/3741", "name": "Doctor Strange, Sorcerer Supreme (1988 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1468", "name": "Marvel Masterworks: Doctor Strange Vol. (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2076", "name": "Strange Tales (1951 - 1968)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3648", "name": "What If? (1989 - 1998)" } ], "returned": 4 }, "stories": { "available": 20, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009152/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/10258", "name": "Cover #10258", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/10263", "name": "If Kaluu Should Triumph...", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/10292", "name": "Umar Walks the Earth!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/10333", "name": "This Dream---This Doom!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/39010", "name": "What if Wolverine had Become Lord of the Vampires?", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43211", "name": "TBOTV:The Curse of the Darkhold Part V, The Torch is Passed", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43237", "name": "TBOTV:Legends and Lore of the Dark Dimension, Part 2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43240", "name": "TBOTV:Legends and Lore of the Dark Dimension, Part 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43266", "name": "The Alexandrain Quatrain", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43269", "name": "Is There a Doctor Not In The House?", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43293", "name": "Death's Greatest Hits", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43297", "name": "Strange Bedfellows II", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43314", "name": "From Here...To There...To Eternity", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43317", "name": "World Enough, And Time...", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43353", "name": "TBOTV: The Mordo Chronicles, Part II", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43377", "name": "TBOTV: The Mordo Chronicles Part III", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43394", "name": "Journey to the East [The Homecoming, Part One]", "type": "" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43396", "name": "The Disciple's Tale [The Homecoming, Part Two]", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43400", "name": "Resurrection [The Homecoming, Part Four]", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43402", "name": "After Life, Part One", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009152/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/116", "name": "Acts of Vengeance!" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/253", "name": "Infinity Gauntlet" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/29", "name": "Infinity War" } ], "returned": 3 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/145/ancient_one?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Ancient_One?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009152/ancient_one?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1016824, "name": "Ancient One (Ultimate)", "description": "", "modified": "2012-07-10T19:15:49-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1016824", "comics": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1016824/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15771", "name": "Ultimate Marvel Team-Up (2001) #12" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5132", "name": "Ultimate Marvel Team-Up Ultimate Collection (Trade Paperback)" } ], "returned": 2 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1016824/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2311", "name": "Ultimate Marvel Team-Up (2001 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1823", "name": "Ultimate Marvel Team-Up Ultimate Collection (2006)" } ], "returned": 2 }, "stories": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1016824/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32118", "name": "[untitled]", "type": "interiorStory" } ], "returned": 1 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1016824/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/145/ancient_one?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1016824/ancient_one_ultimate?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011396, "name": "Angel (Thomas Halloway)", "description": "", "modified": "2014-03-05T13:14:48-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/d/03/531769834b15f", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011396", "comics": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011396/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20636", "name": "Incredible Hercules (2008) #114" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/16736", "name": "Marvel Mystery Comics (1939) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/28927", "name": "The Marvels Project (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/26595", "name": "The Marvels Project (2009) #1" } ], "returned": 4 }, "series": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011396/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/3762", "name": "Incredible Hercules (2008 - 2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2981", "name": "Marvel Mystery Comics (1939 - 1949)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/10470", "name": "The Marvels Project (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/8395", "name": "The Marvels Project (2009 - 2010)" } ], "returned": 4 }, "stories": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011396/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/34565", "name": "Cover #34565", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/44256", "name": "Herc 3 of 4", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/58499", "name": "Cover #58499", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/63049", "name": "The Marvels Project: Birth Of The Super Heroes TPB", "type": "cover" } ], "returned": 4 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011396/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/1011396/angel_thomas_halloway/featured?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Angel_(Thomas_Halloway)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011396/angel_thomas_halloway?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011338, "name": "Angel (Ultimate)", "description": "", "modified": "2014-03-05T13:15:49-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/4/50/531769ae4399f", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011338", "comics": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011338/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15715", "name": "Ultimate X-Men (2000) #24" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15716", "name": "Ultimate X-Men (2000) #25" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/16226", "name": "Ultimate X-Men Ultimate Collection Book 2 (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17464", "name": "Ultimate X-Men Vol. 4: Hellfire & Brimstone (Trade Paperback)" } ], "returned": 4 }, "series": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011338/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/474", "name": "Ultimate X-Men (2000 - 2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2719", "name": "Ultimate X-Men Ultimate Collection Book 2 (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3296", "name": "Ultimate X-Men Vol. 4: Hellfire & Brimstone (2003 - Present)" } ], "returned": 3 }, "stories": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011338/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31888", "name": "[UNCANNY X-MEN #416 Preview]", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31899", "name": "[UNCANNY X-MEN #416 Preview]", "type": "interiorStory" } ], "returned": 2 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011338/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/1/angel?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Angel_(Ultimate)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011338/angel_ultimate?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009153, "name": "Angel (Warren Worthington III)", "description": "", "modified": "2012-05-30T14:06:57-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009153", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009153/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009153/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009153/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009153/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/1/angel?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Angel_(Warren_Worthington_III)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009153/angel_warren_worthington_iii?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1017574, "name": "Angela (Aldrif Odinsdottir)", "description": "", "modified": "2014-11-17T17:45:37-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/7/00/545a82f59dd73", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1017574", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017574/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017574/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017574/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017574/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/3455/angela?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1017574/angela_aldrif_odinsdottir?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010674, "name": "Anita Blake", "description": "", "modified": "2004-04-14T00:00:00-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/2/a0/4c0038fa14452", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010674", "comics": { "available": 20, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010674/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5745", "name": "Anita Blake, Vampire Hunter: Guilty Pleasures (2006) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/16548", "name": "Anita Blake, Vampire Hunter: Guilty Pleasures (2006) #8" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20681", "name": "Anita Blake, Vampire Hunter: Guilty Pleasures (2006) #8 (Booth Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24448", "name": "Anita Blake, Vampire Hunter: Guilty Pleasures - The Complete Collection (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/16034", "name": "Anita Blake, Vampire Hunter: Guilty Pleasures Vol. 1 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23012", "name": "Anita Blake, Vampire Hunter: Guilty Pleasures Vol. 2 (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/29711", "name": "Anita Blake: Circus of the Damned - The Scoundrel (2011) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/29712", "name": "Anita Blake: Circus of the Damned - The Scoundrel (2011) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/30801", "name": "Anita Blake: Circus of the Damned Book 1 (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/29568", "name": "Anita Blake: Circus of the Damned The Ingenue (2010) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/29569", "name": "Anita Blake: Circus of the Damned The Ingenue (2010) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/29570", "name": "Anita Blake: Circus of the Damned The Ingenue (2010) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/29571", "name": "Anita Blake: Circus of the Damned The Ingenue (2010) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/29572", "name": "Anita Blake: Circus of the Damned The Ingenue (2010) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24019", "name": "Anita Blake: The Laughing Corpse - Necromancer (2009) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24020", "name": "Anita Blake: The Laughing Corpse - Necromancer (2009) #1 (VARIANT (1 FOR 10))" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24224", "name": "Anita Blake: The Laughing Corpse - Necromancer (2009) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24460", "name": "Anita Blake: The Laughing Corpse - Necromancer (2009) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/16190", "name": "Laurell K. Hamilton's Anita Blake - Vampire Hunter: The First Death (2007) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20749", "name": "Laurell K. Hamilton's Anita Blake, Vampire Hunter: The First Death DM Only (Hardcover)" } ], "returned": 20 }, "series": { "available": 10, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010674/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1152", "name": "Anita Blake, Vampire Hunter: Guilty Pleasures (2006 - 2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/7552", "name": "Anita Blake, Vampire Hunter: Guilty Pleasures - The Complete Collection (2009 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2568", "name": "Anita Blake, Vampire Hunter: Guilty Pleasures Vol. 1 (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6427", "name": "Anita Blake, Vampire Hunter: Guilty Pleasures Vol. 2 (2008 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9855", "name": "Anita Blake: Circus of the Damned - The Scoundrel (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/10005", "name": "Anita Blake: Circus of the Damned Book 1 (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9854", "name": "Anita Blake: Circus of the Damned The Ingenue (2010 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/7197", "name": "Anita Blake: The Laughing Corpse - Necromancer (2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2539", "name": "Laurell K. Hamilton's Anita Blake - Vampire Hunter: The First Death (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3892", "name": "Laurell K. Hamilton's Anita Blake, Vampire Hunter: The First Death DM Only (2008)" } ], "returned": 10 }, "stories": { "available": 20, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010674/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/6285", "name": "Cover #6285", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/33070", "name": "2XLS - The First Death 2 of 2", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/33374", "name": "12XLS 8 of 12", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/44350", "name": "12XLS 8 of 12", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53270", "name": "5XLS 1 of 5", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53271", "name": "5XLS 1 of 5", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53678", "name": "5XLS 2 of 5", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53679", "name": "5XLS 2 of 5", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/54239", "name": "Cover #54239", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/54240", "name": "Interior #54240", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/64283", "name": "Interior From Anita Blake: Circus of the Damned The Ingenue #1", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/64285", "name": "Anita Blake: Circus of the Damned - The Ingenue #2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/64287", "name": "Interior #64287", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/64289", "name": "Anita Blake: Circus of the Damned The Ingenue (2010) #4", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/64290", "name": "Anita Blake: Circus of the Damned-The Ingenue #5", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/64291", "name": "Anita Blake: Circus of the Damned-The Ingenue #5", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/64566", "name": "Anita Blake: Circus of the Damned Book 3 (2011) #1", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/64567", "name": "Anita Blake: Circus of the Damned Book 3 (2011) #1", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/70420", "name": "Anita Blake: Circus of the Damned Book 1 (2011) #1", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/95452", "name": "Anita Blake: Circus of the Damned - The Scoundrel (2011) #2", "type": "cover" } ], "returned": 20 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010674/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/3428/anita_blake?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Blake,_Anita_(Anita_Blake_Universe)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010674/anita_blake?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009346, "name": "Anne Marie Hoag", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009346", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009346/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009346/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009346/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009346/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2714/anne_marie_hoag?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009346/anne_marie_hoag?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009154, "name": "Annihilus", "description": "", "modified": "2013-11-20T17:06:36-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/5/f0/528d31f20a2f6", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009154", "comics": { "available": 33, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009154/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2055", "name": "Essential Fantastic Four Vol. 4 (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13316", "name": "Fantastic Four (1996) #13" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15537", "name": "Fantastic Four (1998) #19" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15561", "name": "Fantastic Four (1998) #40" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15563", "name": "Fantastic Four (1998) #42" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15564", "name": "Fantastic Four (1998) #43" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15565", "name": "Fantastic Four (1998) #44" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13068", "name": "Fantastic Four (1961) #256" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13104", "name": "Fantastic Four (1961) #289" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13106", "name": "Fantastic Four (1961) #290" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13181", "name": "Fantastic Four (1961) #358" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13212", "name": "Fantastic Four (1961) #386" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13229", "name": "Fantastic Four (1961) #400" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8710", "name": "Fantastic Four Annual (1963) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1497", "name": "Fantastic Four Visionaries: John Byrne Vol. 3 (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/16332", "name": "Iron Man (1996) #13" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/19793", "name": "Marvel Fanfare (1982) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/987", "name": "Marvel Mangaverse Vol. I (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14831", "name": "Marvel Mangaverse: Fantastic Four (2002) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1776", "name": "Marvel Masterworks: The Fantastic Four Vol. 8 (Hardcover)" } ], "returned": 20 }, "series": { "available": 18, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009154/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1263", "name": "Essential Fantastic Four Vol. 4 (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/421", "name": "Fantastic Four (1998 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2123", "name": "Fantastic Four (1996 - 1997)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2121", "name": "Fantastic Four (1961 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2012", "name": "Fantastic Four Annual (1963 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1424", "name": "Fantastic Four Visionaries: John Byrne Vol. 3 (2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13577", "name": "Iron Man (1996 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3719", "name": "Marvel Fanfare (1982 - 1992)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/49", "name": "Marvel Mangaverse Vol. I (2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2275", "name": "Marvel Mangaverse: Fantastic Four (2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1437", "name": "Marvel Masterworks: The Fantastic Four Vol. 8 (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2059", "name": "Paradise X (2002 - 2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2431", "name": "Paradise X Vol. 1 (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2702", "name": "Paradise X Vol. 2 (New Printing) (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2093", "name": "Webspinners: Tales of Spider-Man (1999 - 2000)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3648", "name": "What If? (1989 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2262", "name": "Wolverine (1988 - 2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/5761", "name": "X-Men Vs. Apocalypse Vol. 2: Ages of Apocalypse (2008)" } ], "returned": 18 }, "stories": { "available": 33, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009154/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/12778", "name": "Cover #12778", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/12853", "name": "Rip Wide the Sky!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/12856", "name": "Cover #12856", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/12857", "name": "Risk", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/13029", "name": "Annihilus", "type": "pinup" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/13223", "name": "And Then Came Despair", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/13332", "name": "Even the Watchers Can Die!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15362", "name": "Cover #15362", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/25765", "name": "Cover #25765", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/25766", "name": "With Everything To Lose [Part 3 of 3]", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/25840", "name": "Life in Wartime", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26016", "name": "Paradise X Issue 0", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26020", "name": "Paradise X Issue 10", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26026", "name": "Paradise X Issue 2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26028", "name": "Paradise X Issue 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26033", "name": "Cover #26033", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26034", "name": "Paradise X Issue 6", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26036", "name": "Paradise X Issue 7", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26040", "name": "Paradise X Issue 9", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28547", "name": "Cover #28547", "type": "cover" } ], "returned": 20 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009154/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/154/annihilus?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Annihilus?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009154/annihilus?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011301, "name": "Anole", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/9/20/4c002e635ddd9", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011301", "comics": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011301/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24173", "name": "Runaways (2008) #10" } ], "returned": 1 }, "series": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011301/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/5338", "name": "Runaways (2008 - 2009)" } ], "returned": 1 }, "stories": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011301/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/53571", "name": "Interior #53571", "type": "interiorStory" } ], "returned": 1 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011301/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/155/anole?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Anole?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011301/anole?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010802, "name": "Ant-Man (Eric O'Grady)", "description": "", "modified": "2014-03-05T13:20:04-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/9/c0/53176aa9df48d", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010802", "comics": { "available": 32, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010802/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36764", "name": "Ant-Man & the Wasp (2010) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36763", "name": "Ant-Man & the Wasp (2010) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37655", "name": "Ant-Man & Wasp: Small World (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17397", "name": "Avengers: The Initiative (2007) #8" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17638", "name": "Avengers: The Initiative (2007) #9" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/21366", "name": "Avengers: The Initiative (2007) #14" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24571", "name": "Avengers: The Initiative (2007) #14 (SPOTLIGHT VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/21975", "name": "Avengers: The Initiative (2007) #17" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/22299", "name": "Avengers: The Initiative (2007) #18" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/22300", "name": "Avengers: The Initiative (2007) #18 (ZOMBIE VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/22506", "name": "Avengers: The Initiative (2007) #19" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/22912", "name": "Avengers: The Initiative (2007) #20" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39955", "name": "Fear Itself: The Fearless (2011) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/34543", "name": "I Am an Avenger (2010) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5199", "name": "Irredeemable Ant-Man (2006) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5628", "name": "Irredeemable Ant-Man (2006) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5938", "name": "Irredeemable Ant-Man (2006) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/6076", "name": "Irredeemable Ant-Man (2006) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15950", "name": "Irredeemable Ant-Man (2006) #10" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15894", "name": "Irredeemable Ant-Man Vol. 1: Low-Life (2007)" } ], "returned": 20 }, "series": { "available": 13, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010802/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/13082", "name": "Ant-Man & the Wasp (2010 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13540", "name": "Ant-Man & Wasp: Small World (2010 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1945", "name": "Avengers: The Initiative (2007 - 2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14804", "name": "Fear Itself: The Fearless (2011 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/11872", "name": "I Am an Avenger (2010 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/977", "name": "Irredeemable Ant-Man (2006 - 2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2423", "name": "Irredeemable Ant-Man Vol. 1: Low-Life (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/5202", "name": "Marvel Adventures Super Heroes (2008 - 2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13602", "name": "Onslaught Unleashed (2010 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/18681", "name": "Original Sin (2014 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9799", "name": "Secret Avengers (2010 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/18527", "name": "Thunderbolts (2006 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14016", "name": "X-MEN: GOD LOVES, MAN KILLS (2011 - Present)" } ], "returned": 13 }, "stories": { "available": 32, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010802/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5496", "name": "1 of 6 -", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5500", "name": "3 of 6 -", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/7767", "name": "5 of 6 - Story A; Franklin Richards back-ups", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/7769", "name": "6 of 6 - Story A", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/8239", "name": "6 of 6 - Story A", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32573", "name": "Irredeemable Ant-Man (2006) #10", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/36469", "name": "Avengers: The Initiative (2007) #8", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/36907", "name": "Avengers: The Initiative (2007) #9", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/47185", "name": "Avengers: The Initiative (2007) #14 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/48361", "name": "Avengers: The Initiative (2007) #17", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/48362", "name": "Avengers: The Initiative (2007) #17 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/49104", "name": "Avengers: The Initiative (2007) #18 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/49106", "name": "Avengers: The Initiative (2007) #18, Zombie Variant - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/49889", "name": "Avengers: The Initiative (2007) #19 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/50870", "name": "Avengers: The Initiative (2007) #20 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/50955", "name": "24XLS 6 of 24", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/50956", "name": "24XLS 6 of 24", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/54371", "name": "Avengers: The Initiative (2007) #14, Spotlight Variant - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/63371", "name": "Secret Avengers #10", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/64810", "name": "Cover #64810", "type": "cover" } ], "returned": 20 }, "events": { "available": 7, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010802/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/318", "name": "Dark Reign" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/302", "name": "Fear Itself" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/319", "name": "Original Sin" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/269", "name": "Secret Invasion" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/309", "name": "Shattered Heroes" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/273", "name": "Siege" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/277", "name": "World War Hulk" } ], "returned": 7 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/1010802/ant-man_eric_ogrady/featured?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Ant-Man_(Eric_O%27Grady)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010802/ant-man_eric_ogrady?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010801, "name": "Ant-Man (Scott Lang)", "description": "", "modified": "2015-09-25T17:14:28-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/e/20/52696868356a0", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010801", "comics": { "available": 6, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010801/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/55329", "name": "The Astonishing Ant-Man (2015) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/55910", "name": "The Astonishing Ant-Man (2015) #1 (Brooks Hip-&#8203;Hop Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/57206", "name": "The Astonishing Ant-Man (2015) #1 (Cosplay Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/57205", "name": "The Astonishing Ant-Man (2015) #1 (Young Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7088", "name": "Avengers (1963) #221" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4802", "name": "Women of Marvel (Trade Paperback)" } ], "returned": 6 }, "series": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010801/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1991", "name": "Avengers (1963 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/20437", "name": "The Astonishing Ant-Man (2015 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1777", "name": "Women of Marvel (2006)" } ], "returned": 3 }, "stories": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010801/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/14715", "name": "Cover #14715", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/121702", "name": "story from Ant-Man (2015) #1", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/122805", "name": "cover from Ant-Man (2015) #1 (BROOKS HIP-HOP VARIANT)", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/125227", "name": "cover from Ant-Man (2015) #1 (YOUNG VARIANT)", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/125229", "name": "cover from Ant-Man (2015) #1 (COSPLAY VARIANT)", "type": "cover" } ], "returned": 5 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010801/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/comics/characters/1010801/ant-man_scott_lang?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Ant-Man_(Scott_Lang)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010801/ant-man_scott_lang?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011208, "name": "Anthem", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011208", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011208/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011208/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011208/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011208/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/158/anthem?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Anthem?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011208/anthem?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009156, "name": "Apocalypse", "description": "", "modified": "2013-10-18T12:48:43-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/f/e0/526166076a1d0", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009156", "comics": { "available": 71, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009156/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7459", "name": "Cable (1993) #8" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24171", "name": "Cable (2008) #14" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24172", "name": "Cable (2008) #14 (OLIVETTI MW, 50/50 COVER)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24631", "name": "Cable (2008) #15" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24632", "name": "Cable (2008) #15 (OLIVETTI (MW, 50/50 COVER))" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7410", "name": "Cable (1993) #35" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7454", "name": "Cable (1993) #75" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39445", "name": "Essential X-Factor Vol. 2 (All-New Edition) (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9267", "name": "Incredible Hulk (1962) #456" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/26022", "name": "Mystic Comics 70th Anniversary Special (2009) #1 (MARTIN VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/26024", "name": "New Avengers Annual (2009) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1489", "name": "Official Handbook of the Marvel Universe (2004) #8" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1590", "name": "Official Handbook of the Marvel Universe (2004) #9 (THE WOMEN OF MARVEL)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1689", "name": "Official Handbook of the Marvel Universe (2004) #10 (MARVEL KNIGHTS)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1749", "name": "Official Handbook of the Marvel Universe (2004) #11 (X-MEN - AGE OF APOCALYPSE)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1886", "name": "Official Handbook of the Marvel Universe (2004) #12 (SPIDER-MAN)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1994", "name": "Official Handbook of the Marvel Universe (2004) #13 (TEAMS)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/10453", "name": "Onslaught: Marvel Universe (1996) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/32586", "name": "Uncanny X-Force (2010) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13836", "name": "Uncanny X-Men (1963) #295" } ], "returned": 20 }, "series": { "available": 37, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009156/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1995", "name": "Cable (1993 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/4002", "name": "Cable (2008 - 2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14400", "name": "Essential X-Factor Vol. 2 (All-New Edition) (2011 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2021", "name": "Incredible Hulk (1962 - 1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/8138", "name": "Mystic Comics 70th Anniversary Special (2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/8140", "name": "New Avengers Annual (2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/787", "name": "Official Handbook of the Marvel Universe (2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2057", "name": "Onslaught: Marvel Universe (1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9976", "name": "Uncanny X-Force (2010 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1075", "name": "What If? X-Men Age of Apocalypse (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2425", "name": "What If?: Event Horizon (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2262", "name": "Wolverine (1988 - 2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/84", "name": "Wolverine/Deadpool: Weapon X (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2098", "name": "X-Factor (1986 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6689", "name": "X-Factor Annual (1986 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/5068", "name": "X-Factor Visionaries: Peter David Vol. 4 (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3633", "name": "X-Force (1991 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2265", "name": "X-Men (1991 - 2001)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3640", "name": "X-Men Chronicles (1995)" } ], "returned": 20 }, "stories": { "available": 68, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009156/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/477", "name": "Cover #477", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4153", "name": "Cover #4153", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4223", "name": "Cover #4223", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4430", "name": "Cover #4430", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4513", "name": "Cover #4513", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4612", "name": "Cover #4612", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4614", "name": "Cover #4614", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5919", "name": "Cover #5919", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19075", "name": "...Meet War!", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22203", "name": "Whose Death Is It, Anyway?", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22207", "name": "Die, Mutants, Die!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22210", "name": "The Horsemen of Apocalypse", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22221", "name": "You Say You Want Some Evolution?", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22222", "name": "Fall of the Mutants", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22224", "name": "Fall of the Mutants", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22229", "name": "Gifts!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22273", "name": "Guardian", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22282", "name": "Meanwhile, On Earth...", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22284", "name": "Home!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22324", "name": "Bitter Sacrifice!", "type": "cover" } ], "returned": 20 }, "events": { "available": 7, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009156/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/116", "name": "Acts of Vengeance!" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/227", "name": "Age of Apocalypse" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/246", "name": "Evolutionary War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/248", "name": "Fall of the Mutants" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/298", "name": "Messiah War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/154", "name": "Onslaught" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/273", "name": "Siege" } ], "returned": 7 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/166/apocalypse?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Apocalypse_(En_Sabah_Nur)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009156/apocalypse?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011253, "name": "Apocalypse (Ultimate)", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011253", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011253/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011253/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011253/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011253/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/166/apocalypse?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Apocalypse%20(Ultimate)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011253/apocalypse_ultimate?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010866, "name": "Aqueduct", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/5/50/4c0035b3630cd", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010866", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010866/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010866/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010866/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010866/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/169/aqueduct?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Aqueduct?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010866/aqueduct?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010773, "name": "Arachne", "description": "", "modified": "2013-10-24T13:07:59-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/70/5269526591794", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010773", "comics": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010773/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37899", "name": "Amazing Spider-Man (1999) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/30310", "name": "Amazing Spider-Man (1999) #635" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/29773", "name": "Herc (2010) #8" } ], "returned": 3 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010773/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/454", "name": "Amazing Spider-Man (1999 - 2013)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9898", "name": "Herc (2010 - 2011)" } ], "returned": 2 }, "stories": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010773/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/64693", "name": "Herc (2010) #8 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/69447", "name": "Amazing Spider-Man (1999) #635 - Int", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/94843", "name": "Amazing Spider-Man (1999) #5", "type": "cover" } ], "returned": 3 }, "events": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010773/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/305", "name": "Spider-Island" } ], "returned": 1 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/173/arachne?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Arachne_(Julia_Carpenter)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010773/arachne?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1017438, "name": "Araña", "description": "", "modified": "2013-12-17T15:58:26-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1017438", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017438/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017438/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017438/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1017438/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/176/araa?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1017438/araa?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009158, "name": "Arcade", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/2/a0/4c0042091ab69", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009158", "comics": { "available": 18, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009158/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17712", "name": "Agent X (2002) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20586", "name": "Classic X-Men (1986) #30" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8591", "name": "Excalibur (1988) #125" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1587", "name": "Marvel Masterworks: The Uncanny X-Men Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17693", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17692", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12439", "name": "Uncanny X-Men (1963) #122" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12440", "name": "Uncanny X-Men (1963) #123" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13686", "name": "Uncanny X-Men (1963) #145" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13687", "name": "Uncanny X-Men (1963) #146" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13688", "name": "Uncanny X-Men (1963) #147" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13844", "name": "Uncanny X-Men (1963) #303" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4100", "name": "Uncanny X-Men Omnibus Vol. 1 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17993", "name": "X-Force (1991) #29" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14281", "name": "X-Men (1991) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/3995", "name": "X-Men: Mutant Genesis (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12371", "name": "X-Men: Prime (1995) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5369", "name": "X-Men: The Complete Age of Apocalypse Epic Book 4 (Trade Paperback)" } ], "returned": 18 }, "series": { "available": 13, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009158/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/459", "name": "Agent X (2002 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3751", "name": "Classic X-Men (1986 - 1990)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2011", "name": "Excalibur (1988 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1440", "name": "Marvel Masterworks: The Uncanny X-Men Vol. (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3460", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3459", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1723", "name": "Uncanny X-Men Omnibus Vol. 1 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3633", "name": "X-Force (1991 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2265", "name": "X-Men (1991 - 2001)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1774", "name": "X-Men: Mutant Genesis (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2102", "name": "X-Men: Prime (1995)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1685", "name": "X-Men: The Complete Age of Apocalypse Epic Book 4 (2006)" } ], "returned": 13 }, "stories": { "available": 14, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009158/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15429", "name": "Cry For The Children!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15431", "name": "Arcade's Murder World", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22463", "name": "Tying the Knot", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24495", "name": "Racing the Night", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27794", "name": "Kidnapped!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27795", "name": "X-Men vs. Murderworld (Guess Who Wins?)", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27796", "name": "Murderworld!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27798", "name": "Rogue Storm!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28117", "name": "Motions", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/29116", "name": "A Villains Gallery", "type": "pinup" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37532", "name": "Dead Man's Switch Part Five", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38264", "name": "Arcade--Shatterstar--Murderworld", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43937", "name": "Play With Me", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/43939", "name": "Back Cover", "type": "backcovers" } ], "returned": 14 }, "events": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009158/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/227", "name": "Age of Apocalypse" } ], "returned": 1 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/178/arcade?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Arcade?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009158/arcade?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010686, "name": "Arcana", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010686", "comics": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010686/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/3908", "name": "Squadron Supreme (2006) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5425", "name": "Squadron Supreme Vol. 1: The Pre-War Years Premiere (Hardcover)" } ], "returned": 2 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010686/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/944", "name": "Squadron Supreme (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1791", "name": "Squadron Supreme Vol. 1: The Pre-War Years Premiere (2006)" } ], "returned": 2 }, "stories": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010686/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5249", "name": "1 of 6 - The Pre-War Years", "type": "cover" } ], "returned": 1 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010686/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/179/arcana?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010686/arcana?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009159, "name": "Archangel", "description": "", "modified": "2013-10-18T12:48:24-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/8/03/526165ed93180", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009159", "comics": { "available": 531, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009159/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17701", "name": "Age of Apocalypse: The Chosen (1995) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12555", "name": "All-Winners Comics (1941) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12651", "name": "Alpha Flight (1983) #111" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/40803", "name": "Astonishing X-Men (2004) #51" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17509", "name": "Avengers (1998) #27" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17546", "name": "Avengers (1998) #60" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4461", "name": "Avengers Assemble Vol. 3 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/6950", "name": "Avengers Icons: Vision (2002) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1098", "name": "Avengers Vol. 1: World Trust (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17854", "name": "Bishop (1994) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23971", "name": "Cable (2008) #13" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23972", "name": "Cable (2008) #13 (OLIVETTI (MW, 50/50 COVER))" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24171", "name": "Cable (2008) #14" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24172", "name": "Cable (2008) #14 (OLIVETTI MW, 50/50 COVER)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24631", "name": "Cable (2008) #15" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7389", "name": "Cable (1993) #16" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/942", "name": "Call, the Vol. 1: The Brotherhood & the Wagon (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/943", "name": "Call, the Vol. 2: The Precinct (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12845", "name": "Captain America (2002) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1194", "name": "Captain America Vol. I: The New Deal (Trade Paperback)" } ], "returned": 20 }, "series": { "available": 137, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009159/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/3614", "name": "Age of Apocalypse: The Chosen (1995)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2114", "name": "All-Winners Comics (1941 - 1947)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2116", "name": "Alpha Flight (1983 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/744", "name": "Astonishing X-Men (2004 - 2013)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/354", "name": "Avengers (1998 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1737", "name": "Avengers Assemble Vol. 3 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1990", "name": "Avengers Icons: Vision (2002 - 2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/158", "name": "Avengers Vol. 1: World Trust (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3626", "name": "Bishop (1994 - 1995)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/4002", "name": "Cable (2008 - 2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1995", "name": "Cable (1993 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/7", "name": "Call, the Vol. 1: The Brotherhood & the Wagon (2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/8", "name": "Call, the Vol. 2: The Precinct (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/485", "name": "Captain America (2002 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/251", "name": "Captain America Vol. I: The New Deal (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/690", "name": "Captain Marvel (2000 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/175", "name": "Captain Marvel Vol. 1: Nothing to Lose (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/105", "name": "Captain Marvel Vol. I (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2001", "name": "Champions (1975 - 1978)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1720", "name": "Champions Classic Vol. 1 (2006)" } ], "returned": 20 }, "stories": { "available": 576, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009159/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3261", "name": "2 of 2 - Save the Life of My Child", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4058", "name": "Cover #4058", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/6222", "name": "Cover #6222", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/8685", "name": "Dead Days 1 of 1", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/8823", "name": "[The Six Big Men]", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9053", "name": "Cover #9053", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9059", "name": "The Case of the Mad Gargoyle", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9719", "name": "The House of Horror", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9724", "name": "Killer's Last Stand", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9729", "name": "The Case of the Beggar Prince", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9735", "name": "Charity Bazaar Murders", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9741", "name": "The Devil's Imposter", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9747", "name": "Tell-Tale Cigarette", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9753", "name": "The Parrot Murder Secret", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9758", "name": "Mystery of Horror House", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9763", "name": "Adventure of the Generous Fence", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9770", "name": "Shadow of the Noose", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9776", "name": "The Two-Faced Corpse", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9781", "name": "Slaves of the Python", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/9787", "name": "Give the Devil His Due", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 17, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009159/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/116", "name": "Acts of Vengeance!" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/227", "name": "Age of Apocalypse" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/233", "name": "Atlantis Attacks" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/240", "name": "Days of Future Present" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/246", "name": "Evolutionary War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/248", "name": "Fall of the Mutants" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/249", "name": "Fatal Attractions" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/252", "name": "Inferno" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/29", "name": "Infinity War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/32", "name": "Kings of Pain" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/299", "name": "Messiah CompleX" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/298", "name": "Messiah War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/263", "name": "Mutant Massacre" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/154", "name": "Onslaught" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/276", "name": "War of Kings" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/277", "name": "World War Hulk" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/280", "name": "X-Tinction Agenda" } ], "returned": 17 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/1/angel?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Angel_(Warren_Worthington_III)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009159/archangel?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009160, "name": "Arclight", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/5/f0/4c0042067fd8b", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009160", "comics": { "available": 13, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009160/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/26024", "name": "New Avengers Annual (2009) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13751", "name": "Uncanny X-Men (1963) #210" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13752", "name": "Uncanny X-Men (1963) #211" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13756", "name": "Uncanny X-Men (1963) #215" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13760", "name": "Uncanny X-Men (1963) #219" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13762", "name": "Uncanny X-Men (1963) #221" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13763", "name": "Uncanny X-Men (1963) #222" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13781", "name": "Uncanny X-Men (1963) #240" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13891", "name": "Uncanny X-Men (1963) #350" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12175", "name": "X-Factor (1986) #10" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12186", "name": "X-Factor (1986) #11" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1032", "name": "X-Men: Mutant Massacre (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1292", "name": "X-Men: Old Soldiers (Trade Paperback)" } ], "returned": 13 }, "series": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009160/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/8140", "name": "New Avengers Annual (2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2098", "name": "X-Factor (1986 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/92", "name": "X-Men: Mutant Massacre (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/343", "name": "X-Men: Old Soldiers (2004)" } ], "returned": 5 }, "stories": { "available": 12, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009160/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22086", "name": "Fallen Angel!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22110", "name": "Redemption!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26181", "name": "The Blood of Apocalypse Part Two: The Hunger", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27930", "name": "The Morning After", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27932", "name": "Massacre", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27940", "name": "Old Soldiers", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27948", "name": "Where Duty Lies", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27952", "name": "Death By Drowning", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27954", "name": "Heartbreak", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27989", "name": "Inferno", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27990", "name": "Inferno, Part the First: Strike the Match", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28228", "name": "Trial & Errors", "type": "interiorStory" } ], "returned": 12 }, "events": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009160/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/252", "name": "Inferno" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/263", "name": "Mutant Massacre" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/273", "name": "Siege" } ], "returned": 3 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/182/arclight?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Arclight?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009160/arclight?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010784, "name": "Ares", "description": "", "modified": "2014-04-29T14:50:59-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/c/10/535ff3daea603", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010784", "comics": { "available": 41, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010784/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24348", "name": "Adam: Legend of the Blue Marvel (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/22461", "name": "Adam: Legend of the Blue Marvel (2008) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37071", "name": "Amazing Spider-Man (1999) #647 (MCNIVEN VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/3423", "name": "Ares (2006) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/3540", "name": "Ares (2006) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/3947", "name": "Ares (2006) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4074", "name": "Ares (2006) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4186", "name": "Ares (2006) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5205", "name": "Ares: God of War (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17532", "name": "Avengers (1998) #48" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7352", "name": "Avengers (1963) #98" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7353", "name": "Avengers (1963) #99" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7156", "name": "Avengers (1963) #283" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7157", "name": "Avengers (1963) #284" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7158", "name": "Avengers (1963) #285" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/21394", "name": "Avengers/Invaders (2008) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/22935", "name": "Avengers/Invaders (2008) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1038", "name": "Avengers: The Kang Dynasty (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37066", "name": "Chaos War: Ares (2010) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20636", "name": "Incredible Hercules (2008) #114" } ], "returned": 20 }, "series": { "available": 17, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010784/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/7524", "name": "Adam: Legend of the Blue Marvel (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6079", "name": "Adam: Legend of the Blue Marvel (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/454", "name": "Amazing Spider-Man (1999 - 2013)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/983", "name": "Ares (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1648", "name": "Ares: God of War (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1991", "name": "Avengers (1963 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/354", "name": "Avengers (1998 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/4864", "name": "Avengers/Invaders (2008 - 2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/98", "name": "Avengers: The Kang Dynasty (2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13259", "name": "Chaos War: Ares (2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3762", "name": "Incredible Hercules (2008 - 2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1866", "name": "Mighty Avengers (2007 - 2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/5381", "name": "Mighty Avengers Vol. 1: The Ultron Initiative (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/4619", "name": "Secret Invasion: The Infiltration (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6796", "name": "Secret Warriors (2008 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2989", "name": "Sub-Mariner (1968 - 1974)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/10469", "name": "The Marvel Art of Mike Deodato (2011)" } ], "returned": 17 }, "stories": { "available": 43, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010784/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5532", "name": "1 of 5 xLS", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5533", "name": "1 of 5 xLS", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5535", "name": "2 of 5 xLS", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5537", "name": "3 of 5 xLS", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5539", "name": "4 of 5 xLS", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/5541", "name": "5 of 5 xLS", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/7882", "name": "Mighty Avengers (2007) #1", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/8337", "name": "1 of 6 - Ultron", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/8340", "name": "2 of 6 - Ultron", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/8682", "name": "3 of 6 - Ultron; THE INITIATIVE BANNER", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/14852", "name": "Whom the Gods Would Destroy", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/14854", "name": "Battleground: Olympus", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/14856", "name": "Twilight of the Gods", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15267", "name": "Let Slip the Dogs of War", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15269", "name": "They First Make Mad", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32377", "name": "4 of 6 - Ultron; THE INITIATIVE BANNER", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32378", "name": "4 of 6 - Ultron; THE INITIATIVE BANNER", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32605", "name": "5 of 6 - Ultron; THE INITIATIVE BANNER", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/33311", "name": "6 of 6 - Ultron; THE INITIATIVE BANNER", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/33312", "name": "6 of 6 - Ultron; THE INITIATIVE BANNER", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010784/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/296", "name": "Chaos War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/318", "name": "Dark Reign" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/255", "name": "Initiative" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/269", "name": "Secret Invasion" } ], "returned": 4 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/183/ares?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Ares?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010784/ares?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011275, "name": "Argent", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011275", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011275/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011275/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011275/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011275/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/184/argent?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Argent?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011275/argent?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011012, "name": "Armadillo", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/2/40/4c0032754da02", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011012", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011012/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011012/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011012/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011012/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/189/armadillo?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Armadillo?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011012/armadillo?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011298, "name": "Armor (Hisako Ichiki)", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/9/20/4c002e6cbf990", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011298", "comics": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011298/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/21511", "name": "Astonishing X-Men (2004) #25" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38320", "name": "Astonishing X-Men (2004) #37" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38318", "name": "Astonishing X-Men (2004) #38" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/41548", "name": "Wolverine & the X-Men: Alpha & Omega (2011) #3" } ], "returned": 4 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011298/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/744", "name": "Astonishing X-Men (2004 - 2013)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/15486", "name": "Wolverine & the X-Men: Alpha & Omega (2011 - 2012)" } ], "returned": 2 }, "stories": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011298/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/47427", "name": "1 of 6 Ghost Box", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/84191", "name": "Cover #84191", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/89900", "name": "Astonishing X-Men (2004) #38", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/93985", "name": "Cover #93985", "type": "cover" } ], "returned": 4 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011298/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/191/armor?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Armor_(Hisako_Ichiki)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011298/armor_hisako_ichiki?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010827, "name": "Armory", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010827", "comics": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010827/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17293", "name": "Avengers: The Initiative Annual (2007) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/21085", "name": "Secret Invasion: The Infiltration (Trade Paperback)" } ], "returned": 2 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010827/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/3087", "name": "Avengers: The Initiative Annual (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/4619", "name": "Secret Invasion: The Infiltration (2008)" } ], "returned": 2 }, "stories": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010827/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/36242", "name": "1 of 1", "type": "cover" } ], "returned": 1 }, "events": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010827/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/269", "name": "Secret Invasion" } ], "returned": 1 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/193/armory?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010827/armory?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009740, "name": "Arnim Zola", "description": "The frail, dwarfish Arnim Zola was born in 1930s Switzerland where he became the world's leading biochemist and genetic engineer.", "modified": "2012-03-20T12:33:28-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/8/b0/4c00393a4cb7c", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009740", "comics": { "available": 6, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009740/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5402", "name": "Captain America (2004) #24" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7589", "name": "Captain America (1968) #208" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7590", "name": "Captain America (1968) #209" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5372", "name": "Captain America and the Falcon: The Swine (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13537", "name": "Civil War: Captain America (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23500", "name": "X-51 (1999) #12" } ], "returned": 6 }, "series": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009740/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1996", "name": "Captain America (1968 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/832", "name": "Captain America (2004 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1707", "name": "Captain America and the Falcon: The Swine (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2256", "name": "Civil War: Captain America (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6688", "name": "X-51 (1999 - 2000)" } ], "returned": 5 }, "stories": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009740/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4276", "name": "3 of 3 - Civil War", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/7702", "name": "2 of 6 - Death of the Dream", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17672", "name": "The River of Death!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17674", "name": "Arnim Zola--The Bio-Fanatic!!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/52136", "name": "Space Odyssey", "type": "interiorStory" } ], "returned": 5 }, "events": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009740/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/238", "name": "Civil War" } ], "returned": 1 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2790/arnim_zola?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Zola,_Arnim?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009740/arnim_zola?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010748, "name": "Arsenic", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/8/c0/4c00359a2be7b", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010748", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010748/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010748/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010748/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010748/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/197/arsenic?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Arsenic_(and_Old_Lace)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010748/arsenic?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009161, "name": "Artiee", "description": "", "modified": "2011-10-27T09:59:16-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009161", "comics": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009161/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/35509", "name": "Amazing Spider-Man (1999) #673" } ], "returned": 1 }, "series": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009161/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/454", "name": "Amazing Spider-Man (1999 - 2013)" } ], "returned": 1 }, "stories": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009161/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/95451", "name": "Amazing Spider-Man (1999) #673", "type": "cover" } ], "returned": 1 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009161/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/198/artiee?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009161/artiee?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010718, "name": "Asgardian", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010718", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010718/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010718/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010718/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010718/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/201/asgardian?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Lorelei_%28Asgardian%29?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010718/asgardian?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009162, "name": "Askew-Tronics", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009162", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009162/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009162/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009162/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009162/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/204/askew-tronics?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009162/askew-tronics?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010835, "name": "Asylum", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010835", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010835/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010835/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010835/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010835/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/211/asylum?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Asylum_(Henrique_Gallante)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010835/asylum?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010336, "name": "Atlas (Team)", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010336", "comics": { "available": 12, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010336/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17493", "name": "Avengers (1998) #12" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17515", "name": "Avengers (1998) #32" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17516", "name": "Avengers (1998) #33" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17517", "name": "Avengers (1998) #34" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1795", "name": "Avengers Assemble Vol. 2 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4461", "name": "Avengers Assemble Vol. 3 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9700", "name": "Journey Into Mystery (1952) #124" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2542", "name": "Marvel Masterworks: The Mighty Thor Vol. 4 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1738", "name": "New Thunderbolts (2004) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2467", "name": "New Thunderbolts (2004) #12" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1952", "name": "New Thunderbolts Vol. 1: One Step Forward (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/3030", "name": "New Thunderbolts Vol. 2: Modern Marvels (Trade Paperback)" } ], "returned": 12 }, "series": { "available": 8, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010336/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/354", "name": "Avengers (1998 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1496", "name": "Avengers Assemble Vol. 2 (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1737", "name": "Avengers Assemble Vol. 3 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2032", "name": "Journey Into Mystery (1952 - 1966)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1588", "name": "Marvel Masterworks: The Mighty Thor Vol. 4 (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/788", "name": "New Thunderbolts (2004 - 2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1331", "name": "New Thunderbolts Vol. 1: One Step Forward (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1514", "name": "New Thunderbolts Vol. 2: Modern Marvels (2005)" } ], "returned": 8 }, "stories": { "available": 8, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010336/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3878", "name": "6 of 6 - One Step Forward", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3890", "name": "6 of 6 - Reflections", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/11035", "name": "The Grandeur and the Glory", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37343", "name": "Cover #37343", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37344", "name": "Old Entanglements", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37392", "name": "Behind the Masque!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37394", "name": "Tainted Love", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37396", "name": "The Nefaria Protocols", "type": "interiorStory" } ], "returned": 8 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010336/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/214/atlas?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Atlas_(Team)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010336/atlas_team?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009163, "name": "Aurora", "description": "", "modified": "2011-05-10T15:56:51-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/f/10/4c004203f1072", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009163", "comics": { "available": 53, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009163/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17701", "name": "Age of Apocalypse: The Chosen (1995) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38570", "name": "Alpha Flight (2011) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12637", "name": "Alpha Flight (1983) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39819", "name": "Alpha Flight (2011) #1 (Eaglesham Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38569", "name": "Alpha Flight (2011) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12679", "name": "Alpha Flight (1983) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38565", "name": "Alpha Flight (2011) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12690", "name": "Alpha Flight (1983) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12701", "name": "Alpha Flight (1983) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12734", "name": "Alpha Flight (1983) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12745", "name": "Alpha Flight (1983) #8" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12638", "name": "Alpha Flight (1983) #10" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12649", "name": "Alpha Flight (1983) #11" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12660", "name": "Alpha Flight (1983) #12" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12671", "name": "Alpha Flight (1983) #13" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12673", "name": "Alpha Flight (1983) #14" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12674", "name": "Alpha Flight (1983) #15" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12675", "name": "Alpha Flight (1983) #16" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12676", "name": "Alpha Flight (1983) #17" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12693", "name": "Alpha Flight (1983) #32" } ], "returned": 20 }, "series": { "available": 14, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009163/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/3614", "name": "Age of Apocalypse: The Chosen (1995)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2116", "name": "Alpha Flight (1983 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13907", "name": "Alpha Flight (2011 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1983", "name": "Alpha Flight Classic Vol. 1 (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13260", "name": "Chaos War: Alpha Flight (2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1440", "name": "Marvel Masterworks: The Uncanny X-Men Vol. (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1723", "name": "Uncanny X-Men Omnibus Vol. 1 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/163", "name": "Weapon X Vol. 1 (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/138", "name": "Weapon X Vol. I (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3653", "name": "Weapon X: The Draft - Wild Child (2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2262", "name": "Wolverine (1988 - 2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2098", "name": "X-Factor (1986 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1583", "name": "X-Men: The Complete Age of Apocalypse Epic Book 2 (2005)" } ], "returned": 14 }, "stories": { "available": 59, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009163/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15427", "name": "Shoot-Out at the Stampede!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21096", "name": "Alpha Flight (1983) #1", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21097", "name": "Tundra!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21099", "name": "Blood Battle", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21124", "name": "Alpha Flight #12", "type": "ad" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21126", "name": "Bare Bones", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21128", "name": "Bare Bones Part II", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21132", "name": "Speaking of Experience", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21145", "name": "And One Shall Surely Die !", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21146", "name": "And One Shall Surely Die", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21165", "name": "Faith!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21168", "name": "The Perfect World", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21169", "name": "No Future Part 2", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21170", "name": "Ordeal!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21172", "name": "Nightmare", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21174", "name": "The Hollow Man", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21176", "name": "Biology Class", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21178", "name": "Blind Date", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21180", "name": "And Foresaking All Others", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/21181", "name": "Guardian is Dead. Who Will Lead Alpha Flight?", "type": "ad" } ], "returned": 20 }, "events": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009163/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/227", "name": "Age of Apocalypse" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/296", "name": "Chaos War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/302", "name": "Fear Itself" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/29", "name": "Infinity War" } ], "returned": 4 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/221/aurora?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Aurora?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009163/aurora?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009164, "name": "Avalanche", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/f/10/4c0042010d383", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009164", "comics": { "available": 30, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009164/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/6929", "name": "Avengers Annual (1967) #15" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7467", "name": "Cable (1993) #87" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12460", "name": "Uncanny X-Men (1963) #141" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13683", "name": "Uncanny X-Men (1963) #142" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13718", "name": "Uncanny X-Men (1963) #177" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13719", "name": "Uncanny X-Men (1963) #178" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13740", "name": "Uncanny X-Men (1963) #199" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13741", "name": "Uncanny X-Men (1963) #200" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13747", "name": "Uncanny X-Men (1963) #206" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13766", "name": "Uncanny X-Men (1963) #225" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13767", "name": "Uncanny X-Men (1963) #226" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13796", "name": "Uncanny X-Men (1963) #255" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13942", "name": "Uncanny X-Men (1963) #401" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13943", "name": "Uncanny X-Men (1963) #402" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13944", "name": "Uncanny X-Men (1963) #403" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13945", "name": "Uncanny X-Men (1963) #404" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13946", "name": "Uncanny X-Men (1963) #405" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13947", "name": "Uncanny X-Men (1963) #406" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18350", "name": "What If? (1989) #47" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12301", "name": "X-Factor (1986) #8" } ], "returned": 20 }, "series": { "available": 9, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009164/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1988", "name": "Avengers Annual (1967 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1995", "name": "Cable (1993 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3648", "name": "What If? (1989 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2098", "name": "X-Factor (1986 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6689", "name": "X-Factor Annual (1986 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2100", "name": "X-Men Annual (1970 - 1991)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1327", "name": "X-Men: Days of Future Past (2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1318", "name": "X-Men: Dream's End (2004)" } ], "returned": 9 }, "stories": { "available": 37, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009164/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15472", "name": "Days of Future Past", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17387", "name": "Betrayal", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19866", "name": "The Razor's Edge Part 2: The Killing Stroke", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22086", "name": "Fallen Angel!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22092", "name": "Ambushed!", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22106", "name": "Promised Vengeance", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22108", "name": "The Waking", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22352", "name": "Lost and Found!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22376", "name": "Spots!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24370", "name": "Dream's End Part II: Life Decisions", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26136", "name": "Heroes and Villains Part One", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26137", "name": "Cover #26137", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26138", "name": "Heroes and Villains Part Two: Treachery", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26140", "name": "Heroes and Villains Part Three: Foreshadowing", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/26142", "name": "Heroes and Villains Part Four: Full Circle", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27788", "name": "Mind Out of Time!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27864", "name": "Sanction", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27865", "name": "Cover #27865", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27866", "name": "Hell Hath No Fury", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27908", "name": "The Spiral Path", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009164/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/246", "name": "Evolutionary War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/248", "name": "Fall of the Mutants" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/32", "name": "Kings of Pain" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/263", "name": "Mutant Massacre" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/270", "name": "Secret Wars" } ], "returned": 5 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/222/avalanche?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Avalanche?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009164/avalanche?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009165, "name": "Avengers", "description": "Earth's Mightiest Heroes joined forces to take on threats that were too big for any one hero to tackle. With a roster that has included Captain America, Iron Man, Ant-Man, Hulk, Thor, Wasp and dozens more over the years, the Avengers have come to be regarded as Earth's No. 1 team.", "modified": "2014-05-27T20:28:26-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/9/20/5102c774ebae7", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009165", "comics": { "available": 962, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009165/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/42539", "name": "Age of Apocalypse (2011) #2 (Avengers Art Appreciation Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38523", "name": "Age of X: Universe (2011) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37278", "name": "Alias (2003) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37255", "name": "Alias Omnibus (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12766", "name": "Alpha Flight (1983) #99" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12639", "name": "Alpha Flight (1983) #100" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12640", "name": "Alpha Flight (1983) #101" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37894", "name": "Amazing Spider-Man (1999) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37902", "name": "Amazing Spider-Man (1999) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1868", "name": "Amazing Spider-Man (1999) #519" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24407", "name": "Amazing Spider-Man (1999) #600" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/29303", "name": "Amazing Spider-Man (1999) #600 (2ND PRINTING VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/34135", "name": "Amazing Spider-Man (1999) #648" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38844", "name": "Amazing Spider-Man (1999) #648 (2ND PRINTING VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37045", "name": "Amazing Spider-Man (1999) #648 (CASELLI VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/30323", "name": "Amazing Spider-Man (1999) #648 (CAMPBELL VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36937", "name": "Amazing Spider-Man (1999) #648 (BLANK COVER VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37073", "name": "Amazing Spider-Man (1999) #648 (WRAPAROUND VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39291", "name": "Amazing Spider-Man (1999) #654.1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/35501", "name": "Amazing Spider-Man (1999) #663" } ], "returned": 20 }, "series": { "available": 191, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009165/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/15331", "name": "Age of Apocalypse (2011 - 2013)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13896", "name": "Age of X: Universe (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/672", "name": "Alias (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13383", "name": "Alias Omnibus (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2116", "name": "Alpha Flight (1983 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/454", "name": "Amazing Spider-Man (1999 - 2013)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2984", "name": "Amazing Spider-Man Annual (1964 - 2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1489", "name": "Amazing Spider-Man Vol. 10: New Avengers (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/744", "name": "Astonishing X-Men (2004 - 2013)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/10030", "name": "Atlantis Attacks (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/10031", "name": "Atlantis Attacks (DM Only) (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3621", "name": "Avengers (1996 - 1997)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/354", "name": "Avengers (1998 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9085", "name": "Avengers (2010 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1991", "name": "Avengers (1963 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9859", "name": "Avengers & the Infinity Gauntlet (2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/10035", "name": "Avengers & the Infinity Gauntlet (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9086", "name": "Avengers Academy (2010 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1988", "name": "Avengers Annual (1967 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1340", "name": "Avengers Assemble (2004)" } ], "returned": 20 }, "stories": { "available": 1373, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009165/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/490", "name": "Interior #490", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/542", "name": "Interior #542", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/572", "name": "Interior #572", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/574", "name": "Interior #574", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/575", "name": "Interior #575", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/577", "name": "Interior #577", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/579", "name": "Interior #579", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/580", "name": "Interior #580", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/892", "name": "Cover #892", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1025", "name": "Interior #1025", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1027", "name": "Interior #1027", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1029", "name": "Interior #1029", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1031", "name": "Interior #1031", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1039", "name": "Interior #1039", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1041", "name": "Avengers (1998) #502", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1043", "name": "Interior #1043", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1055", "name": "Interior #1055", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1164", "name": "1 of 5 - New Avengers", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1650", "name": "Interior #1650", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1948", "name": "Interior #1948", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 21, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009165/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/116", "name": "Acts of Vengeance!" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/303", "name": "Age of X" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/233", "name": "Atlantis Attacks" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/234", "name": "Avengers Disassembled" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/310", "name": "Avengers VS X-Men" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/296", "name": "Chaos War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/239", "name": "Crossing" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/318", "name": "Dark Reign" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/246", "name": "Evolutionary War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/302", "name": "Fear Itself" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/252", "name": "Inferno" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/29", "name": "Infinity War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/255", "name": "Initiative" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/37", "name": "Maximum Security" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/154", "name": "Onslaught" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/269", "name": "Secret Invasion" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/270", "name": "Secret Wars" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/271", "name": "Secret Wars II" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/309", "name": "Shattered Heroes" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/273", "name": "Siege" } ], "returned": 20 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/68/avengers?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Avengers?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009165/avengers?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1015239, "name": "Avengers (Ultimate)", "description": "", "modified": "2012-07-10T19:18:28-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1015239", "comics": { "available": 23, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1015239/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/30597", "name": "Ultimate Comics Avengers 3 (2010) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/31378", "name": "Ultimate Comics Avengers 3 (2010) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/35582", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39343", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #1 (2nd Printing Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36129", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38503", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #2 (HITCH VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/40246", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #2 (2nd Printing Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36349", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38500", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #3 (CHO VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/40245", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #3 (2nd Printing Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36127", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38502", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #4 (HITCH VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36350", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36125", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38501", "name": "Ultimate Comics Avengers Vs New Ultimates (2010) #6 (Hitch Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39468", "name": "Ultimate Comics Avengers Vs. New Ultimates (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/30214", "name": "Ultimate Comics Doom (2010) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/30215", "name": "Ultimate Comics Doom (2010) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/28946", "name": "ULTIMATE COMICS NEW ULTIMATES: THOR REBORN PREMIERE HC (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15718", "name": "Ultimate X-Men (2000) #27" } ], "returned": 20 }, "series": { "available": 9, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1015239/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/9867", "name": "Ultimate Comics Avengers 3 (2010 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/12615", "name": "Ultimate Comics Avengers Vs New Ultimates (2010 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14423", "name": "Ultimate Comics Avengers Vs. New Ultimates (2011 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9958", "name": "Ultimate Comics Doom (2010 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/10532", "name": "ULTIMATE COMICS NEW ULTIMATES: THOR REBORN PREMIERE HC (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/474", "name": "Ultimate X-Men (2000 - 2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/210", "name": "Ultimate X-Men Vol. 6: Return of the King (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/243", "name": "Ultimate X-Men Vol. VI: Return of the King (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14617", "name": "Ultimates MGC (2011)" } ], "returned": 9 }, "stories": { "available": 16, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1015239/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32194", "name": "Free Preview of AVENGERS 65", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/69254", "name": "Cover From Ultimate Comics Doom (2010) #1", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/69256", "name": "Cover #69256", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/70020", "name": "Cover #70020", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/71440", "name": "Cover #71440", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/79944", "name": "Interior #79944", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/79945", "name": "Cover #79945", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/79952", "name": "Interior #79952", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/79956", "name": "ULTIMATE COMICS AVENGERS VS. NEW ULTIMATES 2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/80713", "name": "Ultimate Comics Avengers 4 (2010) #3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/80714", "name": "Ultimate Comics Avengers Vs. New Ultimates #5", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/84544", "name": "Ultimate Comics Avengers Vs. New Ultimates (2010) #3, CHO VARIANT", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/89558", "name": "Interior #89558", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/89997", "name": "Ultimates MGC #1", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/90106", "name": "ULTIMATE COMICS AVENGERS VS. NEW ULTIMATES 2 HITCH VARIANT", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/91153", "name": "ULTIMATE COMICS AVENGERS VS. NEW ULTIMATES #6 Interior", "type": "" } ], "returned": 16 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1015239/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/68/avengers?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1015239/avengers_ultimate?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011766, "name": "Azazel (Mutant)", "description": "A mutant from biblical times, Azazel is the ruler of the Neyaphem and claims that the Earth and everything on it belongs to him.", "modified": "2011-06-09T11:04:52-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011766", "comics": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011766/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13969", "name": "Uncanny X-Men (1963) #428" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/41821", "name": "X-MEN FIRST CLASS: THE HIGH HAND (2011) #1" } ], "returned": 2 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011766/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/15598", "name": "X-MEN FIRST CLASS: THE HIGH HAND (2011)" } ], "returned": 2 }, "stories": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011766/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28405", "name": "How Did I Get Here?", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/94626", "name": "X-MEN FIRST CLASS: THE HIGH HAND (2011) #1", "type": "interiorStory" } ], "returned": 2 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011766/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/227/azazel?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Azazel_(mutant)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011766/azazel_mutant?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009168, "name": "Banshee", "description": "", "modified": "2013-11-01T16:27:08-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/03/52740e4619f54", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009168", "comics": { "available": 166, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009168/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12676", "name": "Alpha Flight (1983) #17" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12754", "name": "Alpha Flight (1983) #88" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37881", "name": "Chaos War: X-Men (2010) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20566", "name": "Classic X-Men (1986) #12" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20567", "name": "Classic X-Men (1986) #13" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20570", "name": "Classic X-Men (1986) #16" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20572", "name": "Classic X-Men (1986) #18" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20580", "name": "Classic X-Men (1986) #25" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20590", "name": "Classic X-Men (1986) #34" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20592", "name": "Classic X-Men (1986) #36" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8556", "name": "Earth X (1999) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4241", "name": "Earth X (New (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8580", "name": "Excalibur (1988) #115" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1587", "name": "Marvel Masterworks: The Uncanny X-Men Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17692", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17693", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39530", "name": "Marvel Masterworks: The X-Men Vol. 3 DM Variant TPB (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39531", "name": "Marvel Masterworks: The X-Men Vol. 3 TPB (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1377", "name": "Marvel Masterworks: The X-Men Vol. 4 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1192", "name": "Marvel Masterworks: The X-Men Vol. III - 2nd Edition (1st) (Trade Paperback)" } ], "returned": 20 }, "series": { "available": 44, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009168/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2116", "name": "Alpha Flight (1983 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13588", "name": "Chaos War: X-Men (2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3751", "name": "Classic X-Men (1986 - 1990)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/378", "name": "Earth X (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1806", "name": "Earth X (New (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2011", "name": "Excalibur (1988 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1440", "name": "Marvel Masterworks: The Uncanny X-Men Vol. (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3459", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3460", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14485", "name": "Marvel Masterworks: The X-Men Vol. 3 DM Variant TPB (2011 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14486", "name": "Marvel Masterworks: The X-Men Vol. 3 TPB (2011 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1364", "name": "Marvel Masterworks: The X-Men Vol. 4 (2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/249", "name": "Marvel Masterworks: The X-Men Vol. III - 2nd Edition (1st) (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1689", "name": "Marvel Masterworks: The X-Men Vol.6 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3716", "name": "Marvel Team-Up (1972 - 1985)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1595", "name": "Marvel Visionaries: Chris Claremont (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1430", "name": "Marvel Weddings (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2055", "name": "New Mutants (1983 - 1991)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1763", "name": "New Mutants Classic Vol. 1 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2059", "name": "Paradise X (2002 - 2003)" } ], "returned": 20 }, "stories": { "available": 179, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009168/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15379", "name": "Betrayed By Professor X !", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15380", "name": "Greater Love Hath No X-Man...", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15382", "name": "Like a Phoenix, From the Ashes!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15384", "name": "Who Will Stop the Juggernaut?", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15385", "name": "Death Siege!", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15386", "name": "The Fall of the Tower", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15388", "name": "The Gentleman's Name is Magneto", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15390", "name": "Phoenix Unleashed!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15392", "name": "Dark Shroud of the Past !", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15393", "name": "Beginning the Incredible Saga of -- the Starjammers !", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15394", "name": "Where No X-Man Has Gone Before!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15395", "name": "Cover #15395", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15396", "name": "Armageddon Now !", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15397", "name": "Wanted: Wolverine Dead or Alive!", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15398", "name": "Home are the Heroes!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15401", "name": "Cover #15401", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15402", "name": "The \"X\"-Sanction!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15403", "name": "Cover #15403", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15404", "name": "Mindgames!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15406", "name": "Magneto Triumphant!", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 8, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009168/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/116", "name": "Acts of Vengeance!" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/227", "name": "Age of Apocalypse" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/296", "name": "Chaos War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/240", "name": "Days of Future Present" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/249", "name": "Fatal Attractions" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/299", "name": "Messiah CompleX" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/154", "name": "Onslaught" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/280", "name": "X-Tinction Agenda" } ], "returned": 8 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/232/banshee?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Banshee?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009168/banshee?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009596, "name": "Banshee (Theresa Rourke)", "description": "The daughter of former X-Men member Sean Cassidy, a.k.a. Banshee, and Maeve Rourke, Theresa Rourke was raised by her first cousin once removed, mutant terrorist Thomas Cassidy, a.k.a. Black Tom.", "modified": "2011-03-23T17:37:27-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/c0/4ce5a1a50e56b", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009596", "comics": { "available": 137, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009596/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7426", "name": "Cable (1993) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7448", "name": "Cable (1993) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7459", "name": "Cable (1993) #8" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7387", "name": "Cable (1993) #14" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7388", "name": "Cable (1993) #15" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7452", "name": "Cable (1993) #73" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20731", "name": "Clandestine Classic Premiere (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8473", "name": "Deadpool (1997) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8484", "name": "Deadpool (1997) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8495", "name": "Deadpool (1997) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8506", "name": "Deadpool (1997) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8465", "name": "Deadpool (1997) #12" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8466", "name": "Deadpool (1997) #13" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8476", "name": "Deadpool (1997) #22" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8513", "name": "Deadpool (1997) #56" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/24957", "name": "Deadpool Vol. 1: Secret Invasion (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/10123", "name": "Marvel Comics Presents (1988) #43" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/3171", "name": "Marvel Comics Presents Wolverine Vol. 2 (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17692", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17693", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (Hardcover)" } ], "returned": 20 }, "series": { "available": 31, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009596/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1995", "name": "Cable (1993 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3874", "name": "Clandestine Classic Premiere (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2005", "name": "Deadpool (1997 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/7713", "name": "Deadpool Vol. 1: Secret Invasion (2009 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2039", "name": "Marvel Comics Presents (1988 - 1995)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1591", "name": "Marvel Comics Presents Wolverine Vol. 2 (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3459", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3460", "name": "Marvel Masterworks: The Uncanny X-Men Vol. 6 (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2281", "name": "New X-Men (2001 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1807", "name": "New X-Men (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/56", "name": "New X-Men Vol. III: New Worlds (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2059", "name": "Paradise X (2002 - 2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2702", "name": "Paradise X Vol. 2 (New Printing) (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3648", "name": "What If? (1989 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2098", "name": "X-Factor (1986 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1035", "name": "X-Factor (2005 - 2013)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6689", "name": "X-Factor Annual (1986 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/5068", "name": "X-Factor Visionaries: Peter David Vol. 4 (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1882", "name": "X-Factor: The Longest Night (2007)" } ], "returned": 20 }, "stories": { "available": 160, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009596/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4905", "name": "1 of 6", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4912", "name": "1 of 1", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19864", "name": "Kings of Pain Part 3", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19865", "name": "Kings of Pain Part 3: Queens of Sacrifice", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22101", "name": "Phalanx Covenant: Life Signs Part 1", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22327", "name": "Clash Reunion", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22362", "name": "Tough Love", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/23343", "name": "Hello Little Girl... Is Your Father Home?", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24194", "name": "Fear & Loathing Part 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24196", "name": "Shadows", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24277", "name": "Sinsearly Yours Sincerely Mine...", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24322", "name": "Fathers and Sons Act 2: Illuminated Knights", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24331", "name": "Is This the Last Goodbye?", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24354", "name": "Fathers and Sons Part 3: Dayspring", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24495", "name": "Racing the Night", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24531", "name": "Deadpool (1997) #12", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24534", "name": "Deadpool (1997) #13", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24554", "name": "Deadpool (1997) #2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24562", "name": "Deadpool (1997) #22", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24580", "name": "Deadpool (1997) #3", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 5, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009596/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/227", "name": "Age of Apocalypse" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/249", "name": "Fatal Attractions" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/32", "name": "Kings of Pain" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/154", "name": "Onslaught" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/269", "name": "Secret Invasion" } ], "returned": 5 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/232/banshee?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Siryn?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009596/banshee_theresa_rourke?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009169, "name": "Baron Strucker", "description": "", "modified": "2012-03-20T12:30:55-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/8/80/4c0041fb5a90d", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009169", "comics": { "available": 26, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009169/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12848", "name": "Captain America (2002) #9" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7655", "name": "Captain America (1968) #274" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7775", "name": "Captain America (1968) #394" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1138", "name": "Captain America Vol. 2: The Extremists (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8557", "name": "Earth X (1999) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4241", "name": "Earth X (New (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2820", "name": "Marvel Masterworks: Doctor Strange Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2319", "name": "Marvel Masterworks: Doctor Strange Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15516", "name": "Marvel Super-Heroes (1992) #14" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2371", "name": "Marvel Visionaries: Chris Claremont (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/27723", "name": "Nick Fury, Agent of Shield (1989) #21" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/27724", "name": "Nick Fury, Agent of Shield (1989) #22" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/27727", "name": "Nick Fury, Agent of Shield (1989) #25" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/22201", "name": "Punisher War Journal (1988) #45" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/22202", "name": "Punisher War Journal (1988) #46" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/26288", "name": "Secret Warriors (2008) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/26289", "name": "Secret Warriors (2008) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/30174", "name": "Secret Warriors (2008) #13" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/31597", "name": "Secret Warriors (2008) #13 (DEADPOOL VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/30180", "name": "Secret Warriors (2008) #20" } ], "returned": 20 }, "series": { "available": 14, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009169/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/485", "name": "Captain America (2002 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1996", "name": "Captain America (1968 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/197", "name": "Captain America Vol. 2: The Extremists (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/378", "name": "Earth X (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1806", "name": "Earth X (New (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1468", "name": "Marvel Masterworks: Doctor Strange Vol. (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2301", "name": "Marvel Super-Heroes (1992 - 1993)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1595", "name": "Marvel Visionaries: Chris Claremont (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/8852", "name": "Nick Fury, Agent of Shield (1989 - 1992)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/5860", "name": "Punisher War Journal (1988 - 1995)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6796", "name": "Secret Warriors (2008 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2076", "name": "Strange Tales (1951 - 1968)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2088", "name": "Untold Tales of Spider-Man (1995 - 1997)" } ], "returned": 14 }, "stories": { "available": 22, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009169/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/10293", "name": "Cover #10293", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17809", "name": "Cover #17809", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/18092", "name": "The Crimson Crusade", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24427", "name": "Cover #24427", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24429", "name": "Hydra and Go-Seek", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24932", "name": "Earth X Chapter Seven", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/25548", "name": "[untitled]", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27830", "name": "Cover #27830", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27831", "name": "Gold Rush!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28046", "name": "Madripoor Nights", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31595", "name": "", "type": "pinup" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/49690", "name": "The Vegas Idea", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/49692", "name": "Hot Chrome and Cold Blood", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/57879", "name": "Secret Warriors (2008) #6", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/57881", "name": "Secret Warriors (2008) #7", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/60773", "name": "Der Totenkopf", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/60775", "name": "Pledge of Allegiance", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/60781", "name": "Commencement Ceremonies", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/69175", "name": "Secret Warriors (2008) #13", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/69187", "name": "Secret Warriors (2008) #20", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009169/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/318", "name": "Dark Reign" } ], "returned": 1 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/3240/baron_strucker?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Baron_Strucker?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009169/baron_strucker?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009170, "name": "Baron Zemo (Heinrich Zemo)", "description": "", "modified": "2012-03-20T12:37:26-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/9/60/4c0041f84c9fe", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009170", "comics": { "available": 20, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009170/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7310", "name": "Avengers (1963) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7321", "name": "Avengers (1963) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/6953", "name": "Avengers (1963) #10" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/6940", "name": "Avengers Annual (1967) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1668", "name": "Captain America (2004) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1870", "name": "Captain America (2004) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12848", "name": "Captain America (2002) #9" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2420", "name": "Captain America (2004) #10" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1138", "name": "Captain America Vol. 2: The Extremists (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/3916", "name": "Captain America: Winter Soldier Vol. 1 (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5195", "name": "Captain America: Winter Soldier Vol. 2 (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8557", "name": "Earth X (1999) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4241", "name": "Earth X (New (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/3512", "name": "House of M: World of M (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/87", "name": "Marvel Masterworks: The Avengers Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2001", "name": "Marvel Masterworks: The Invincible Iron Man Vol. (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/11345", "name": "Tales of Suspense (1959) #98" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/11346", "name": "Tales of Suspense (1959) #99" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38098", "name": "Thunderbolts (2006) #164" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/39349", "name": "Ultimate Comics Thor (Hardcover)" } ], "returned": 20 }, "series": { "available": 15, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009170/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1991", "name": "Avengers (1963 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1988", "name": "Avengers Annual (1967 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/485", "name": "Captain America (2002 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/832", "name": "Captain America (2004 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/197", "name": "Captain America Vol. 2: The Extremists (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1612", "name": "Captain America: Winter Soldier Vol. 1 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1613", "name": "Captain America: Winter Soldier Vol. 2 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/378", "name": "Earth X (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1806", "name": "Earth X (New (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1614", "name": "House of M: World of M (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1390", "name": "Marvel Masterworks: The Avengers Vol. (2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1494", "name": "Marvel Masterworks: The Invincible Iron Man Vol. (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2079", "name": "Tales of Suspense (1959 - 1968)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/18527", "name": "Thunderbolts (2006 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/14304", "name": "Ultimate Comics Thor (2011 - Present)" } ], "returned": 15 }, "stories": { "available": 15, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009170/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4234", "name": "4 of 8 - Out of Time", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4237", "name": "Cover: Captain America (2004) #6 of 6 - Out of Time", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4238", "name": "6 of 6 - Out of Time", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/4246", "name": "House of M tie-in", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/11992", "name": "The Claws of the Panther", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/11996", "name": "The Man Who Lived Twice!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/14442", "name": "The Avengers Break Up!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15182", "name": "Masters of Evil!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15203", "name": "Avengers (1963) #7 cover", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/15204", "name": "Their Darkest Hour!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17441", "name": "Masters of Evil", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24932", "name": "Earth X Chapter Seven", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/25548", "name": "[untitled]", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/89319", "name": "ULTIMATE COMICS THOR PREMIERE HC", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/90400", "name": "Thunderbolts (2006) #164 cover", "type": "cover" } ], "returned": 15 }, "events": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009170/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/251", "name": "House of M" } ], "returned": 1 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/238/baron_zemo?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Baron_Zemo_(Heinrich_Zemo)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009170/baron_zemo_heinrich_zemo?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010906, "name": "Baron Zemo (Helmut Zemo)", "description": "", "modified": "2011-02-24T13:21:20-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/5/a0/4c0035890fb0a", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010906", "comics": { "available": 8, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010906/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7739", "name": "Captain America (1968) #358" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7740", "name": "Captain America (1968) #359" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7741", "name": "Captain America (1968) #360" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7742", "name": "Captain America (1968) #361" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7743", "name": "Captain America (1968) #362" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/33346", "name": "Captain America (2004) #606 (HEROIC AGE VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/35416", "name": "Captain America (2004) #609 (WOMEN OF MARVEL VARIANT)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38153", "name": "Hawkeye: Blind Spot (2011) #2" } ], "returned": 8 }, "series": { "available": 3, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010906/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1996", "name": "Captain America (1968 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/832", "name": "Captain America (2004 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13731", "name": "Hawkeye: Blind Spot (2011)" } ], "returned": 3 }, "stories": { "available": 8, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010906/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17986", "name": "Captain America (1968) #358", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17989", "name": "Captain America (1968) #359", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17992", "name": "Captain America (1968) #360", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17995", "name": "Captain America (1968) #361", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17998", "name": "Captain America (1968) #362", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/85243", "name": "Hawkeye: Blind Spot #2 ", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/94772", "name": "Captain America (2004) #606, HEROIC AGE VARIANT", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/94774", "name": "Captain America (2004) #609, WOMEN OF MARVEL VARIANT", "type": "cover" } ], "returned": 8 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010906/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/238/baron_zemo?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Baron_Zemo_(Helmut_Zemo)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010906/baron_zemo_helmut_zemo?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011137, "name": "Baroness S'Bak", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011137", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011137/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011137/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011137/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011137/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2876/baroness_sbak?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Baroness_S%27Bak?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011137/baroness_sbak?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1011354, "name": "Barracuda", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1011354", "comics": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011354/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/41071", "name": "Punisher Max Vol. 6: Barracuda (Reprint) (Trade Paperback)" } ], "returned": 1 }, "series": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011354/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/15267", "name": "Punisher Max Vol. 6: Barracuda (Reprint) (2011 - Present)" } ], "returned": 1 }, "stories": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011354/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/93002", "name": "Interior #93002", "type": "interiorStory" } ], "returned": 1 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1011354/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/241/barracuda?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Barracuda_(mercenary)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1011354/barracuda?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009550, "name": "Bart Rozum", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009550", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009550/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009550/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009550/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009550/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2752/bart_rozum?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009550/bart_rozum?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009171, "name": "Bastion", "description": "", "modified": "2013-10-24T13:07:45-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/d/80/52695253215f4", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009171", "comics": { "available": 25, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009171/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7422", "name": "Cable (1993) #46" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7423", "name": "Cable (1993) #47" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8584", "name": "Excalibur (1988) #119" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13682", "name": "Uncanny X-Men (1963)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13875", "name": "Uncanny X-Men (1963) #334" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13878", "name": "Uncanny X-Men (1963) #337" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13880", "name": "Uncanny X-Men (1963) #339" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13884", "name": "Uncanny X-Men (1963) #343" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13887", "name": "Uncanny X-Men (1963) #346" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13923", "name": "Uncanny X-Men (1963) #382" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23500", "name": "X-51 (1999) #12" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12205", "name": "X-Factor (1986) #127" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18037", "name": "X-Force (1991) #69" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14280", "name": "X-Men (1991)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14355", "name": "X-Men (1991) #64" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14358", "name": "X-Men (1991) #67" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14360", "name": "X-Men (1991) #69" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18112", "name": "X-Men Unlimited (1993) #11" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18117", "name": "X-Men Unlimited (1993) #16" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/30274", "name": "X-Men: Second Coming (2010) #1" } ], "returned": 20 }, "series": { "available": 14, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009171/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/1995", "name": "Cable (1993 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2011", "name": "Excalibur (1988 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6688", "name": "X-51 (1999 - 2000)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2098", "name": "X-Factor (1986 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3633", "name": "X-Force (1991 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2265", "name": "X-Men (1991 - 2001)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3637", "name": "X-Men Unlimited (1993 - 1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13833", "name": "X-Men: Second Coming (2011 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9359", "name": "X-Men: Second Coming (2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9808", "name": "X-Men: Second Coming - Revelations: Blind Science (2010)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13832", "name": "X-Men: Second Coming Revelations (2011 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6430", "name": "X-Men: The Complete Onslaught Epic Book 4 (2008 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3284", "name": "X-Men: The Complete Onslaught Epic Vol. 1 TPB (2007)" } ], "returned": 14 }, "stories": { "available": 24, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009171/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22150", "name": "Darker Destiny", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/22448", "name": "Preludes & Nightmares!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24268", "name": "Target: Bastion", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24270", "name": "Cover #24270", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/27786", "name": "Operation Zero Tolerance Interview", "type": "text article" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28182", "name": "Dark Horizon", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28192", "name": "Know Thy Enemy", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28197", "name": "Fight And Flight", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28209", "name": "Where No X-Man Has Gone Before!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28216", "name": "The Story Of The Year!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28311", "name": "Lost Souls", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/29112", "name": "I Had a Dream", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/29113", "name": "Operation Zero Tolerance Interview", "type": "text article" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/29265", "name": "Games of Deceit & Death Part 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/29271", "name": "On the Verge of Extinction !", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/29275", "name": "Operation Zero Tolerance: The Conclusion", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38359", "name": "Roadside Attractions", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38490", "name": "Adrift", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38522", "name": "Primal", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/52136", "name": "Space Odyssey", "type": "interiorStory" } ], "returned": 20 }, "events": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009171/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/154", "name": "Onslaught" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/279", "name": "X-Men: Second Coming" } ], "returned": 2 }, "urls": [ { "type": "detail", "url": "http://marvel.com/comics/characters/1009171/bastion?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Bastion?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009171/bastion?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009172, "name": "Batroc the Leaper", "description": "", "modified": "2011-03-03T11:45:12-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/c/80/4ce59eb840da5", "extension": "gif" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009172", "comics": { "available": 10, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009172/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/36945", "name": "Batroc (2010) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12800", "name": "Captain America (1998) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7739", "name": "Captain America (1968) #358" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7740", "name": "Captain America (1968) #359" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7741", "name": "Captain America (1968) #360" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7742", "name": "Captain America (1968) #361" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7743", "name": "Captain America (1968) #362" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/37570", "name": "Captain America: Allies & Enemies (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/8474", "name": "Deadpool (1997) #20" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38273", "name": "Hawkeye: Blind Spot TPB (Trade Paperback)" } ], "returned": 10 }, "series": { "available": 6, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009172/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/13194", "name": "Batroc (2010 - 2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1997", "name": "Captain America (1998 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1996", "name": "Captain America (1968 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13504", "name": "Captain America: Allies & Enemies (2010 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2005", "name": "Deadpool (1997 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13787", "name": "Hawkeye: Blind Spot TPB (2011 - Present)" } ], "returned": 6 }, "stories": { "available": 10, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009172/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17986", "name": "Captain America (1968) #358", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17989", "name": "Captain America (1968) #359", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17992", "name": "Captain America (1968) #360", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17995", "name": "Captain America (1968) #361", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/17998", "name": "Captain America (1968) #362", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24556", "name": "Deadpool (1997) #20", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/67177", "name": "Captain America (1998) #4", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/81931", "name": "Batroc (2010) #1", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/83065", "name": "Cover #83065", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/91269", "name": "Hawkeye: Blind Spot TPB", "type": "interiorStory" } ], "returned": 10 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009172/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/246/batroc_the_leaper?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Batroc_(Georges_Batroc)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009172/batroc_the_leaper?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009173, "name": "Battering Ram", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/f/60/4c002e0305708", "extension": "gif" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009173", "comics": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009173/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17961", "name": "X-Force (1991) #116" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1028", "name": "X-Force: Famous, Mutant & Mortal (Hardcover)" } ], "returned": 2 }, "series": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009173/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/3633", "name": "X-Force (1991 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/88", "name": "X-Force: Famous, Mutant & Mortal (2003)" } ], "returned": 2 }, "stories": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009173/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38198", "name": "Cover #38198", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/38199", "name": "Exit Wounds", "type": "interiorStory" } ], "returned": 2 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009173/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2685/battering_ram?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Battering_Ram?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009173/battering_ram?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009174, "name": "Beak", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/5/90/4c0040b8329ad", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009174", "comics": { "available": 12, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009174/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5451", "name": "New X-Men (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14936", "name": "New X-Men (2001) #117" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14938", "name": "New X-Men (2001) #119" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14944", "name": "New X-Men (2001) #125" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14945", "name": "New X-Men (2001) #126" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14950", "name": "New X-Men (2001) #131" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14954", "name": "New X-Men (2001) #135" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14955", "name": "New X-Men (2001) #136" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14956", "name": "New X-Men (2001) #137" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14957", "name": "New X-Men (2001) #138" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/2592", "name": "New X-Men Vol. 2: Imperial (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/994", "name": "New X-Men Vol. III: New Worlds (Trade Paperback)" } ], "returned": 12 }, "series": { "available": 4, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009174/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2281", "name": "New X-Men (2001 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1807", "name": "New X-Men (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1166", "name": "New X-Men Vol. 2: Imperial (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/56", "name": "New X-Men Vol. III: New Worlds (1999)" } ], "returned": 4 }, "stories": { "available": 11, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009174/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30425", "name": "The Prime of Miss Emma Frost", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30427", "name": "Riot at Xavier's", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30429", "name": "when X is not X", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30431", "name": "teaching children about fractals", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30444", "name": "Some Angels Falling", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30453", "name": "Cover #30453", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30454", "name": "All Hell", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30456", "name": "Cover #30456", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30457", "name": "Losers", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30474", "name": "Germ Free Generation: two of three", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30478", "name": "Danger Rooms", "type": "interiorStory" } ], "returned": 11 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009174/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/249/beak?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Beak?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009174/beak?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009175, "name": "Beast", "description": "", "modified": "2014-01-13T14:48:32-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/2/80/511a79a0451a3", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009175", "comics": { "available": 568, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009175/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/43495", "name": "A+X (2012) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/44580", "name": "All-New X-Men (2012) #3 (Mcguinness Variant)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/12651", "name": "Alpha Flight (1983) #111" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23247", "name": "Amazing Adventures (1970) #11" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23248", "name": "Amazing Adventures (1970) #12" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23249", "name": "Amazing Adventures (1970) #13" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23250", "name": "Amazing Adventures (1970) #14" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23251", "name": "Amazing Adventures (1970) #15" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23252", "name": "Amazing Adventures (1970) #16" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/23253", "name": "Amazing Adventures (1970) #17" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/48021", "name": "Amazing X-Men (2013) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/660", "name": "Astonishing X-Men (2004) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/723", "name": "Astonishing X-Men (2004) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/531", "name": "Astonishing X-Men (2004) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1808", "name": "Astonishing X-Men (2004) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/843", "name": "Astonishing X-Men (2004) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/927", "name": "Astonishing X-Men (2004) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/38", "name": "Astonishing X-Men (2004) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1436", "name": "Astonishing X-Men (2004) #8" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/1626", "name": "Astonishing X-Men (2004) #9" } ], "returned": 20 }, "series": { "available": 162, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009175/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/16450", "name": "A+X (2012 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/16449", "name": "All-New X-Men (2012 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2116", "name": "Alpha Flight (1983 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/6666", "name": "Amazing Adventures (1970 - 1976)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/18142", "name": "Amazing X-Men (2013 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/744", "name": "Astonishing X-Men (2004 - 2013)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/7576", "name": "Astonishing X-Men by Joss Whedon & John Cassaday (2009 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1464", "name": "Astonishing X-Men Vol. 1 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1298", "name": "Astonishing X-Men Vol. 1: Gifted (2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1422", "name": "Astonishing X-Men Vol. 2: Dangerous (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1485", "name": "Astonishing X-Men Vol. 3: Torn (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/5055", "name": "Astonishing X-Men Vol. 4: Unstoppable (2008)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/9085", "name": "Avengers (2010 - 2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/354", "name": "Avengers (1998 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1991", "name": "Avengers (1963 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1988", "name": "Avengers Annual (1967 - 1994)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13320", "name": "Avengers Annual (2012)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1340", "name": "Avengers Assemble (2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1496", "name": "Avengers Assemble Vol. 2 (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1737", "name": "Avengers Assemble Vol. 3 (2006)" } ], "returned": 20 }, "stories": { "available": 619, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009175/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/628", "name": "1 of 1 - Holiday Issue", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2190", "name": "6 of 6 - Enemy of the State", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2835", "name": "1 of 1 - Kitty/Colossus", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/2836", "name": "1 of 1 - Kitty/Colossus", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3305", "name": "Cover for Astonishing X-Men (2004) #7", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3306", "name": "1 of 6 - Dangerous", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3308", "name": "Interior #3308", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3309", "name": "Cover for Astonishing X-Men (2004) #1, #3309", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3310", "name": "Interior #3310", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3318", "name": "Interior #3318", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3322", "name": "“GIFTED” 5 (OF 6) As demand for the", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3324", "name": "“GIFTED” PART 6 (OF 6) Outnumbered and outgunned, the X-Men are finally brought together as a team by their newest addition – bu", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3326", "name": "2 of 6 - Dangerous", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3328", "name": "3 of 6 - Dangerous", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3330", "name": "4 of 6 - Dangerous", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3331", "name": "Cover for Astonishing X-Men (2004) #4, #3331", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3332", "name": "Interior #3332", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3336", "name": "6 of 6 - Dangerous", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3337", "name": "Interior #3337", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/3338", "name": "1 of 6", "type": "cover" } ], "returned": 20 }, "events": { "available": 21, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009175/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/116", "name": "Acts of Vengeance!" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/227", "name": "Age of Apocalypse" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/233", "name": "Atlantis Attacks" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/310", "name": "Avengers VS X-Men" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/296", "name": "Chaos War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/238", "name": "Civil War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/240", "name": "Days of Future Present" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/245", "name": "Enemy of the State" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/246", "name": "Evolutionary War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/248", "name": "Fall of the Mutants" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/249", "name": "Fatal Attractions" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/302", "name": "Fear Itself" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/252", "name": "Inferno" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/29", "name": "Infinity War" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/32", "name": "Kings of Pain" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/37", "name": "Maximum Security" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/299", "name": "Messiah CompleX" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/263", "name": "Mutant Massacre" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/154", "name": "Onslaught" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/273", "name": "Siege" } ], "returned": 20 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/3/beast?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Beast_(Henry_McCoy)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009175/beast?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010909, "name": "Beast (Earth-311)", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/5/a0/4c0035813dc4c", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010909", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010909/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010909/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010909/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010909/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/3/beast?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Beast_(Earth-311)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010909/beast_earth-311?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1010908, "name": "Beast (Ultimate)", "description": "", "modified": "2014-03-05T13:19:55-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/5/d0/53176a9be110c", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1010908", "comics": { "available": 43, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010908/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15770", "name": "Ultimate Marvel Team-Up (2001) #11" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5132", "name": "Ultimate Marvel Team-Up Ultimate Collection (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4045", "name": "Ultimate Spider-Man (2000) #93" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4746", "name": "Ultimate Spider-Man Vol. 16: Deadpool (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18475", "name": "Ultimate War (2003) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18477", "name": "Ultimate War (2003) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15699", "name": "Ultimate X-Men (2000) #1" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15710", "name": "Ultimate X-Men (2000) #2" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15721", "name": "Ultimate X-Men (2000) #3" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15732", "name": "Ultimate X-Men (2000) #4" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15743", "name": "Ultimate X-Men (2000) #5" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15754", "name": "Ultimate X-Men (2000) #6" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15765", "name": "Ultimate X-Men (2000) #7" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15767", "name": "Ultimate X-Men (2000) #8" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15768", "name": "Ultimate X-Men (2000) #9" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15700", "name": "Ultimate X-Men (2000) #10" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15701", "name": "Ultimate X-Men (2000) #11" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15702", "name": "Ultimate X-Men (2000) #12" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15705", "name": "Ultimate X-Men (2000) #15" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15706", "name": "Ultimate X-Men (2000) #16" } ], "returned": 20 }, "series": { "available": 17, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010908/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2311", "name": "Ultimate Marvel Team-Up (2001 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1823", "name": "Ultimate Marvel Team-Up Ultimate Collection (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/466", "name": "Ultimate Spider-Man (2000 - 2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1618", "name": "Ultimate Spider-Man Vol. 16: Deadpool (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3659", "name": "Ultimate War (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/474", "name": "Ultimate X-Men (2000 - 2009)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/13887", "name": "Ultimate X-Men MGC (2011)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1758", "name": "Ultimate X-Men Ultimate Collection Book 1 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2719", "name": "Ultimate X-Men Ultimate Collection Book 2 (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1168", "name": "Ultimate X-Men Vol. 3: World Tour (2005)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3296", "name": "Ultimate X-Men Vol. 4: Hellfire & Brimstone (2003 - Present)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/216", "name": "Ultimate X-Men Vol. 5: Ultimate War (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/210", "name": "Ultimate X-Men Vol. 6: Return of the King (2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/80", "name": "Ultimate X-Men Vol. I: The Tomorrow People (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/81", "name": "Ultimate X-Men Vol. II: Return to Weapon X (1999)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/82", "name": "Ultimate X-Men Vol. III: World Tour (2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/243", "name": "Ultimate X-Men Vol. VI: Return of the King (2003)" } ], "returned": 17 }, "stories": { "available": 53, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010908/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/1380", "name": "3 of 7 - Deadpool", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31881", "name": "Previously In Ultimate X-Men:", "type": "recap" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31886", "name": "Previously In Ultimate X-Men:", "type": "recap" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31897", "name": "Previously In Ultimate X-Men:", "type": "recap" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31902", "name": "Previously In Ultimate X-Men:", "type": "recap" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31903", "name": "Hellfire and Brimstone Part 3", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32039", "name": "Previously In Ultimate X-Men:", "type": "recap" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32044", "name": "Previously In Ultimate X-Men:", "type": "recap" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32045", "name": "Hellfire and Brimstone Part 1", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32054", "name": "Previously In Ultimate X-Men:", "type": "recap" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32055", "name": "Resignation", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32058", "name": "The Enemy Within", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32059", "name": "Previously ...", "type": "recap" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32060", "name": "The Tomorrow People Part 2", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32071", "name": "Previously In Ultimate X-Men:", "type": "recap" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32072", "name": "World Tour Part 4", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32082", "name": "Previously In Ultimate X-Men:", "type": "recap" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32091", "name": "[untitled]", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32092", "name": "World Tour Part Two", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/32101", "name": "Previously ...", "type": "recap" } ], "returned": 20 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1010908/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/3/beast?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Beast_(Ultimate)?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1010908/beast_ultimate?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009176, "name": "Becatron", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009176", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009176/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009176/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009176/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009176/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/251/becatron?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009176/becatron?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009177, "name": "Bedlam", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009177", "comics": { "available": 8, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009177/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17506", "name": "Avengers (1998) #24" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/17507", "name": "Avengers (1998) #25" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/4461", "name": "Avengers Assemble Vol. 3 (Hardcover)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7452", "name": "Cable (1993) #73" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/7457", "name": "Cable (1993) #78" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/10519", "name": "Peter Parker: Spider-Man (1999) #11" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/18639", "name": "Thor (1998) #17" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/20913", "name": "X-Men Vs. Apocalypse Vol. 1: The Twelve (Trade Paperback)" } ], "returned": 8 }, "series": { "available": 6, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009177/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/354", "name": "Avengers (1998 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1737", "name": "Avengers Assemble Vol. 3 (2006)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1995", "name": "Cable (1993 - 2002)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2060", "name": "Peter Parker: Spider-Man (1999 - 2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/581", "name": "Thor (1998 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/4020", "name": "X-Men Vs. Apocalypse Vol. 1: The Twelve (2008)" } ], "returned": 6 }, "stories": { "available": 8, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009177/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24332", "name": "Pestilence!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/24349", "name": "I Still Believe I Cannot Be Saved", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/25563", "name": "Cover #25563", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/25564", "name": "An Exemplary Day", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37370", "name": "Harsh Judgments", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37371", "name": "Cover #37371", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/37372", "name": "The Ninth Day", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/39937", "name": "The Eighth Day Part 1", "type": "interiorStory" } ], "returned": 8 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009177/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/252/bedlam?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009177/bedlam?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009178, "name": "Beef", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/f/60/4c002e0305708", "extension": "gif" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009178", "comics": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009178/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13822", "name": "Uncanny X-Men (1963) #281" } ], "returned": 1 }, "series": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009178/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2258", "name": "Uncanny X-Men (1963 - 2011)" } ], "returned": 1 }, "stories": { "available": 1, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009178/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28072", "name": "Fresh Upstart", "type": "interiorStory" } ], "returned": 1 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009178/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/253/beef?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "wiki", "url": "http://marvel.com/universe/Beef?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009178/beef?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009179, "name": "Beetle (Abner Jenkins)", "description": "", "modified": "1969-12-31T19:00:00-0500", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009179", "comics": { "available": 13, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009179/comics", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13151", "name": "Fantastic Four (1961) #330" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13155", "name": "Fantastic Four (1961) #334" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/13535", "name": "Fantastic Four Visionaries: Walter Simonson Vol. 1 (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/19930", "name": "Iron Man (1998) #55" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9471", "name": "Iron Man (1968) #229" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/9533", "name": "Iron Man (1968) #285" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/5872", "name": "Iron Man: Armor Wars (Trade Paperback)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/19571", "name": "Marvel Two-in-One (1974) #96" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14609", "name": "Peter Parker, the Spectacular Spider-Man (1976) #16" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14760", "name": "Peter Parker, the Spectacular Spider-Man (1976) #59" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14614", "name": "Peter Parker, the Spectacular Spider-Man (1976) #164" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/15339", "name": "Thunderbolts (1997) #35" }, { "resourceURI": "http://gateway.marvel.com/v1/public/comics/14025", "name": "Webspinners: Tales of Spider-Man (1999) #17" } ], "returned": 13 }, "series": { "available": 9, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009179/series", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/series/2121", "name": "Fantastic Four (1961 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2254", "name": "Fantastic Four Visionaries: Walter Simonson Vol. 1 (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2572", "name": "Iron Man (1998 - 2004)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2029", "name": "Iron Man (1968 - 1996)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/1846", "name": "Iron Man: Armor Wars (2007)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/3715", "name": "Marvel Two-in-One (1974 - 1983)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2271", "name": "Peter Parker, the Spectacular Spider-Man (1976 - 1998)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2296", "name": "Thunderbolts (1997 - 2003)" }, { "resourceURI": "http://gateway.marvel.com/v1/public/series/2093", "name": "Webspinners: Tales of Spider-Man (1999 - 2000)" } ], "returned": 9 }, "stories": { "available": 15, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009179/stories", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/stories/12952", "name": "Good Dreams!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/12961", "name": "Shadows of Alarm..!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19423", "name": "Stark Wars Chapter 5: Red Snow", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19544", "name": "Carnage at Stark Enterprises!", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/19545", "name": "Ashes to Ashes", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/25745", "name": "Cover #25745", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/28527", "name": "Cover #28527", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/29662", "name": "Cover #29662", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/29673", "name": "Cover #29673", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/29674", "name": "Bugged", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/30097", "name": "Cover #30097", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31076", "name": "Cover #31076", "type": "cover" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/31079", "name": "Rap Sheet", "type": "letters" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/41504", "name": "Visiting Hours!", "type": "interiorStory" }, { "resourceURI": "http://gateway.marvel.com/v1/public/stories/42729", "name": "Iron Man Gallery", "type": "pinup" } ], "returned": 15 }, "events": { "available": 2, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009179/events", "items": [ { "resourceURI": "http://gateway.marvel.com/v1/public/events/116", "name": "Acts of Vengeance!" }, { "resourceURI": "http://gateway.marvel.com/v1/public/events/231", "name": "Armor Wars" } ], "returned": 2 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/254/beetle?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009179/beetle_abner_jenkins?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] }, { "id": 1009329, "name": "Ben Grimm", "description": "", "modified": "2011-03-18T12:27:31-0400", "thumbnail": { "path": "http://i.annihil.us/u/prod/marvel/i/mg/b/40/image_not_available", "extension": "jpg" }, "resourceURI": "http://gateway.marvel.com/v1/public/characters/1009329", "comics": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009329/comics", "items": [], "returned": 0 }, "series": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009329/series", "items": [], "returned": 0 }, "stories": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009329/stories", "items": [], "returned": 0 }, "events": { "available": 0, "collectionURI": "http://gateway.marvel.com/v1/public/characters/1009329/events", "items": [], "returned": 0 }, "urls": [ { "type": "detail", "url": "http://marvel.com/characters/2763/ben_grimm?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" }, { "type": "comiclink", "url": "http://marvel.com/comics/characters/1009329/ben_grimm?utm_campaign=apiRef&utm_source=047d34076dca78bfb1fd6ba191996354" } ] } ] } };
mit
jackfrancis/acs-engine
test/e2e/dcos/dcos_test.go
3016
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. package dcos import ( "fmt" "log" "os" "path/filepath" "time" "github.com/Azure/acs-engine/pkg/api/common" "github.com/Azure/acs-engine/test/e2e/config" "github.com/Azure/acs-engine/test/e2e/engine" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var ( cfg config.Config eng engine.Engine err error cluster *Cluster ) var _ = BeforeSuite(func() { cwd, _ := os.Getwd() rootPath := filepath.Join(cwd, "../../..") // The current working dir of these tests is down a few levels from the root of the project. We should traverse up that path so we can find the _output dir c, err := config.ParseConfig() c.CurrentWorkingDir = rootPath Expect(err).NotTo(HaveOccurred()) cfg = *c // We have to do this because golang anon functions and scoping and stuff engCfg, err := engine.ParseConfig(c.CurrentWorkingDir, c.ClusterDefinition, c.Name) Expect(err).NotTo(HaveOccurred()) cs, err := engine.ParseInput(engCfg.ClusterDefinitionTemplate) Expect(err).NotTo(HaveOccurred()) eng = engine.Engine{ Config: engCfg, ClusterDefinition: cs, } cluster, err = NewCluster(&cfg, &eng) Expect(err).NotTo(HaveOccurred()) }) var _ = Describe("Azure Container Cluster using the DCOS Orchestrator", func() { Context("regardless of agent pool type", func() { It("should have have the appropriate node count", func() { count, err := cluster.NodeCount() Expect(err).NotTo(HaveOccurred()) Expect(count).To(Equal(eng.NodeCount())) }) It("should be running the expected version", func() { version, err := cluster.Version() Expect(err).NotTo(HaveOccurred()) expectedVersion := common.RationalizeReleaseAndVersion( eng.ClusterDefinition.Properties.OrchestratorProfile.OrchestratorType, eng.ClusterDefinition.Properties.OrchestratorProfile.OrchestratorRelease, eng.ClusterDefinition.Properties.OrchestratorProfile.OrchestratorVersion, false, false) Expect(version).To(Equal(expectedVersion)) }) It("should be able to install marathon", func() { err = cluster.InstallMarathonLB() if err != nil { log.Printf("Error while installing Marathon LB: %s\n", err.Error()) } Expect(err).NotTo(HaveOccurred()) marathonPath := filepath.Join(cfg.CurrentWorkingDir, "/test/e2e/dcos/marathon.json") port, err := cluster.InstallMarathonApp(marathonPath, 5*time.Second, cfg.Timeout) if err != nil { log.Printf("Error while installing Marathon app: %s\n", err.Error()) } Expect(err).NotTo(HaveOccurred()) // Need to have a wait for ready check here cmd := fmt.Sprintf("curl -sI http://marathon-lb.marathon.mesos:%v/", port) out, err := cluster.Connection.ExecuteWithRetries(cmd, 5*time.Second, cfg.Timeout) if err != nil { log.Printf("Was not able to run %s, err: %s\n", cmd, err.Error()) } Expect(err).NotTo(HaveOccurred()) Expect(out).To(MatchRegexp("^HTTP/1.1 200 OK")) }) }) })
mit
bbengfort/hadoop-fundamentals
wordcount/StreamingWordCount/reducer.py
853
#!/usr/bin/env python """ A Reducer in Python that is memory efficient by using iterators. """ import sys from itertools import groupby from operator import itemgetter class Reducer(object): def __init__(self, infile=sys.stdin, separator="\t"): self.infile = infile self.sep = separator def emit(self, key, value): sys.stdout.write("%s%s%s\n" % (key, self.sep, value)) def reduce(self): for current, group in groupby(self, itemgetter(0)): try: total = sum(int(count) for current, count in group) self.emit(current, total) except ValueError: pass def __iter__(self): for line in self.infile: yield line.rstrip().split(self.sep, 1) if __name__ == "__main__": reducer = Reducer() reducer.reduce()
mit
eastbanctechru/e2e4
src/async-subscriber.ts
3974
// tslint:disable:max-classes-per-file /** * Internal contract to implement abstracted subscription proxy which hides any details of underlying subscription */ export interface SubscriptionProxy { /** * Subscribes to passed object * @param target object to subscribe * @param completeAction action to call on underlying subscription successful completion * @param errorAction action to call on underlying subscription error */ attach(target: any, completeAction: any, errorAction: any): any; /** * Detaches from underlying subscription */ detach(subscription: any): void; } /** * Implementation of {@link SubscriptionProxy} to work with any objects with `subscribe/unsubscribe` contracts. This contract is suitable for Observable, for example. */ export class PushBasedSubscriptionProxy implements SubscriptionProxy { /** * @inheritdoc */ public attach(target: any, completeAction: any, errorAction?: (error: any) => any): any { return target.subscribe({ error: errorAction, next: completeAction }); } /** * @inheritdoc */ public detach(subscription: any): void { subscription.unsubscribe(); } /** * Returns `true` if this proxy type can subscribe to passed object. `false` otherwise. */ public static isAcceptable(target: any): boolean { return !!target.subscribe; } } /** * Implementation of {@link SubscriptionProxy} which works with Promise and adds ability to unsubscribe from it. */ export class PromiseSubscriptionProxy implements SubscriptionProxy { private isAlive: boolean = true; /** * @inheritdoc */ public attach(target: Promise<any>, completeAction: (value: any) => any, errorAction?: (error: any) => any): any { return target.then( (value: any) => { if (this.isAlive) { completeAction(value); } }, (error: any) => { if (this.isAlive) { errorAction(error); } } ); } /** * @inheritdoc */ public detach(subscription: any): void { this.isAlive = false; } /** * Returns `true` if this proxy type can subscribe to passed object. `false` otherwise. */ public static isAcceptable(target: any): boolean { return target instanceof Promise; } } /** * Service to manage async subscriptions which acts as mediator to {@link SubscriptionProxy} contract implementations. */ export class AsyncSubscriber { private proxy: SubscriptionProxy = null; private lastTarget: any = null; private subscription: any = null; /** * @see {@link SubscriptionProxy.attach} */ public attach(target: any, completeAction: (value: any) => any, errorAction?: (error: any) => any): void { if (this.lastTarget !== null) { this.destroy(); } this.lastTarget = target; this.proxy = this.getProxy(target); this.subscription = this.proxy.attach(target, completeAction, errorAction); } /** * Detaches from underlying subscription and destroys all internal objects. */ public destroy(): void { if (this.proxy) { this.proxy.detach(this.subscription); } this.proxy = null; this.lastTarget = null; this.subscription = null; } /** * @see {@link SubscriptionProxy.detach} */ public detach(): void { this.proxy.detach(this.subscription); } private getProxy(target: any): SubscriptionProxy { if (PromiseSubscriptionProxy.isAcceptable(target)) { return new PromiseSubscriptionProxy(); } if (PushBasedSubscriptionProxy.isAcceptable(target)) { return new PushBasedSubscriptionProxy(); } throw new Error("Can't subscribe to passed object"); } }
mit
christinahedges/PyKE
pyke/kepio.py
26033
""" This module contains utility functions for i/o operations. """ from . import kepmsg, kepkey import numpy as np import os import glob import tempfile import shutil from astropy.io import fits as pyfits __all__ = ['delete', 'overwrite', 'openascii', 'closeascii', 'splitfits', 'readfitstab', 'readfitscol', 'readtimecol', 'readsapcol', 'readsaperrcol', 'readpdccol', 'readpdcerrcol', 'readcbvcol', 'readsapqualcol', 'readlctable', 'tabappend', 'readimage', 'writeimage', 'writefits', 'tmpfile', 'symlink', 'fileexists', 'move', 'copy', 'parselist', 'createdir', 'createtree', 'timeranges', 'cadence', 'timekeys', 'filterNaN', 'readTPF', 'readMaskDefinition', 'readPRFimage'] def delete(filename, logfile, verbose): try: os.remove(filename) except: message = 'ERROR -- KEPIO.OBLITERATE: could not delete ' + filename kepmsg.err(logfile, message, verbose) def overwrite(filename, logfile, verbose): if (os.path.isfile(filename)): try: delete(filename, logfile, verbose) except: message = 'ERROR -- KEPIO.CLOBBER: could not overwrite ' + filename kepmsg.err(logfile, message, verbose) def openascii(filename, mode, logfile, verbose): try: content = open(filename, mode) except: message = ('ERROR -- KEPIO.OPENASCII: cannot open ASCII file ' + filename) kepmsg.err(logfile, message, verbose) return content def closeascii(file_,logfile,verbose): try: file_.close() except: message = ('ERROR - KEPIO.CLOSEASCII: cannot close ASCII file ' + str(file_)) kepmsg.err(logfile, message, verbose) def splitfits(fitsfile, logfile, verbose): fitsfile = fitsfile.strip() if '+' in fitsfile: component = fitsfile.split('+') filename = str(component[0]) hdu = int(component[1]) elif '[' in fitsfile: fitsfile = fitsfile.strip(']') component = fitsfile.split('[') filename = str(component[0]) hdu = int(component[1]) else: errmsg = ('ERROR -- KEPIO.SPLITFITS: cannot determine HDU number ' 'from name' + fitsfile) kepmsg.err(logfile, errmsg, verbose) return filename, hdu def readfitstab(filename, hdu, logfile, verbose): try: table = hdu.data except: message = ('ERROR -- KEPIO.READFITSTAB: could not extract table ' 'from ' + filename) kepmsg.err(logfile, message, verbose) return table def readfitscol(filename, table, column, logfile, verbose): try: data = table.field(column) except: message = ('ERROR -- KEPIO.READFITSCOL: could not extract ' + column + 'data from ' + filename) kepmsg.err(logfile, message, verbose) return data def readtimecol(filename, table, logfile, verbose): try: data = table.field('TIME') except: try: data = table.field('barytime') if data[0] < 2.4e6 and data[0] > 1.0e4: data += 2.4e6 except: message = ('ERROR -- KEPIO.READTIMECOL: could not extract ' + 'time data from ' + filename) kepmsg.err(logfile, message, verbose) return data def readsapcol(filename,table,logfile,verbose): try: data = table.field('SAP_FLUX') except: try: data = table.field('ap_raw_flux') except: message = ('ERROR -- KEPIO.READSAPCOL: could not extract SAP flux' 'time series data from ' + filename) kepmsg.err(logfile, message, verbose) return data def readsaperrcol(filename, table, logfile, verbose): """read FITS SAP error column""" try: data = table.field('SAP_FLUX_ERR') except: try: data = table.field('ap_raw_err') except: message = ('ERROR -- KEPIO.READSAPERRCOL: could not extract SAP ' 'flux error time series data from ' + filename) kepmsg.err(logfile, message, verbose) return data def readpdccol(filename, table, logfile, verbose): """read FITS PDC column""" try: data = table.field('PDCSAP_FLUX') except: try: data = table.field('ap_corr_flux') except: message = ('ERROR -- KEPIO.READPDCCOL: could not extract PDCSAP ' 'flux time series data from ' + filename) kepmsg.err(logfile, message, verbose) return data def readpdcerrcol(filename, table, logfile, verbose): """read FITS PDC error column""" try: data = table.field('PDCSAP_FLUX_ERR') except: try: data = table.field('ap_corr_err') except: message = ('ERROR -- KEPIO.READPDCERRCOL: could not extract PDC ' 'flux error time series data from ' + filename) kepmsg.err(logfile, message, verbose) return data def readcbvcol(filename, table, logfile, verbose): """read FITS CBV column""" try: data = table.field('CBVSAP_FLUX') except: message = ('ERROR -- KEPIO.READCBVCOL: could not extract CBVSAP flux ' 'time series data from ' + filename) kepmsg.err(logfile, message, verbose) return data def readsapqualcol(filename, table, logfile, verbose): """read quality column""" try: data = table.field('SAP_QUALITY') except: message = ('ERROR -- KEPIO.READSAPQUALCOL: could not extract SAP ' 'quality time series data from ' + filename) kepmsg.err(logfile, message, verbose) return data def readlctable(infile,instr,logfile,verbose): """read all columns within Kepler FITS light curve table""" table = instr.data barytime = readfitscol(infile, table, 'barytime', logfile, verbose) timcorr = readfitscol(infile, table, 'timcorr', logfile, verbose) cadence_number = readfitscol(infile, table, 'cadence_number', logfile, verbose) ap_cent_row = readfitscol(infile, table, 'ap_cent_row', logfile, verbose) ap_cent_r_err = readfitscol(infile, table, 'ap_cent_r_err', logfile, verbose) ap_cent_col = readfitscol(infile, table, 'ap_cent_col', logfile, verbose) ap_cent_c_err = readfitscol(infile, table, 'ap_cent_c_err', logfile, verbose) ap_raw_flux = readfitscol(infile, table, 'ap_raw_flux', logfile, verbose) ap_raw_err = readfitscol(infile, table, 'ap_raw_err', logfile, verbose) ap_corr_flux = readfitscol(infile, table, 'ap_corr_flux', logfile, verbose) ap_corr_err = readfitscol(infile, table, 'ap_corr_err', logfile, verbose) ap_ins_flux = readfitscol(infile, table, 'ap_ins_flux', logfile, verbose) ap_ins_err = readfitscol(infile, table, 'ap_ins_err', logfile, verbose) dia_raw_flux = readfitscol(infile, table, 'dia_raw_flux', logfile, verbose) dia_raw_err = readfitscol(infile, table, 'dia_raw_err', logfile, verbose) dia_corr_flux = readfitscol(infile, table, 'dia_corr_flux', logfile, verbose) dia_corr_err = readfitscol(infile, table, 'dia_corr_err', logfile, verbose) dia_ins_flux = readfitscol(infile, table, 'dia_ins_flux', logfile, verbose) dia_ins_err = readfitscol(infile, table, 'dia_ins_err', logfile, verbose) return [barytime, timcorr, cadence_number, ap_cent_row, ap_cent_r_err, ap_cent_col, ap_cent_c_err, ap_raw_flux, ap_raw_err, ap_corr_flux, ap_corr_err, ap_ins_flux, ap_ins_err, dia_raw_flux, dia_raw_err, dia_corr_flux, dia_corr_err, dia_ins_flux, dia_ins_err] def tabappend(hdu1, hdu2, logfile, verbose): """append two table HDUs""" nrows1 = hdu1.data.shape[0] nrows2 = hdu2.data.shape[0] nrows = nrows1 + nrows2 out = pyfits.BinTableHDU.from_columns(hdu1.columns, nrows=nrows) for name in hdu1.columns.names: try: out.data.field(name)[nrows1:] = hdu2.data.field(name) except: errmsg = ('WARNING -- KEPIO.TABAPPEND: could not append ' 'column ' + str(name)) kepmsg.warn(logfile, errmsg, verbose) return out def readimage(image, hdu, logfile,verbose): """ read image from HDU structure""" try: imagedata = image[hdu].data except: errmsg = ('ERROR -- KEPIO.READIMAGE: cannot read image data from HDU ' + str(hdu)) kepmsg.err(logfile, errmsg, verbose) return imagedata def writeimage(image, hdu, imagedata, logfile, verbose): """write image to HDU structure""" try: image[hdu].data = imagedata except: errmsg = ('ERROR -- KEPIO.WRITEIMAGE: Cannot write image data to HDU ' + str(hdu)) kepmsg.err(logfile, errmsg, verbose) return image def writefits(hdu, filename, overwrite, logfile, verbose): """write new FITS file""" if os.path.isfile(filename) and overwrite: delete(filename, logfile, verbose) try: hdu.writeto(filename) except: errmsg = ('ERROR -- KEPIO.WRITEFITS: Cannot create FITS file ' + filename) kepmsg.err(logfile, errmsg, verbose) def tmpfile(path, suffix, logfile, verbose): """create a temporary file name""" try: tempfile.tempdir = path tmpfile = tempfile.mktemp() + suffix except: message = ('ERROR -- KEPIO.TMPFILE: Cannot create temporary file name') kepmsg.err(logfile,message,verbose) return tmpfile def symlink(infile,linkfile,overwrite,logfile,verbose): """create symbolic link""" if os.path.exists(linkfile) and not overwrite: errmsg = ('ERROR: KEPIO.SYMLINK -- file ' + linkfile + ' exists, use ' 'overwrite') kepmsg.err(logfile, errmsg, verbose) if overwrite: try: os.remove(linkfile) except: pass try: os.symlink(infile,linkfile) except: errmsg = ('ERROR: KEPIO.SYMLINK -- could not create symbolic link ' 'from ' + infile + ' to ' + linkfile) kepmsg.err(logfile, message, verbose) def fileexists(file_): """check that a file exists""" if not os.path.isfile(file_): return False return True def move(file1, file2, logfile, verbose): """move file""" try: shutil.move(file1, file2) message = 'KEPIO.MOVE -- moved ' + file1 + ' to ' + file2 kepmsg.log(logfile, message, verbose) except: errmsg = ('ERROR -- KEPIO.MOVE: Could not move ' + file1 + ' to ' + file2) kepmsg.err(logfile, errmsg, verbose) def copy(file1, file2, logfile, verbose): """copy file""" try: shutil.copy2(file1, file2) message = 'KEPIO.COPY -- copied ' + file1 + ' to ' + file2 kepmsg.log(logfile, message, verbose) except: errmsg = ('ERROR -- KEPIO.COPY: could not copy ' + file1 + ' to ' + file2) kepmsg.err(logfile, errmsg, verbose) def parselist(inlist, logfile, verbose): """reate a list from a file, string or wildcard""" inlist.strip() if len(inlist) == 0 or inlist.count(' ') > 0: errmsg = 'ERROR -- KEPIO.PARSELIST: list not specified' kepmsg.err(logfile, errmsg, verbose) if inlist[0] == '@': infile = inlist.lstrip('@') if not os.path.isfile(infile): errmsg = ('ERROR -- KEPIO.PARSELIST: input list ' + infile + 'doest not exist') kepmsg.err(logfile,message,verbose) outlist = [] if inlist[0] == '@': line = ' ' infile = open(inlist.lstrip('@')) while line: line = infile.readline() if len(line.strip()) > 0: outlist.append(line.rstrip('\r\n')) elif inlist[0] != '@' and inlist.count('*') == 0: if inlist.count(',') == 0: outlist.append(inlist) else: list_ = inlist.split(',') for listitem in list_: outlist.append(listitem) elif inlist[0] != '@' and inlist.count('*') > 0: outlist = glob.glob(inlist) if len(outlist) == 0: errmsg = 'ERROR -- KEPIO.PARSELIST: raw input image list is empty' kepmsg.err(logfile, errmsg, verbose) return outlist def createdir(path, logfile, verbose): """create a directory""" path = path.strip() if path[-1] != '/': path += '/' if not os.path.exists(path): try: os.mkdir(path) message = 'KEPIO.CREATEDIR -- Created directory ' + path kepmsg.log(logfile, message, verbose) except: errmsg = ('ERROR -- KEPIO.CREATEDIR: Could not create directory ' + path) kepmsg.err(logfile, message, verbose) else: message = 'KEPIO.CREATEDIR -- ' + path + ' directory exists' kepmsg.log(logfile, message, verbose) def createtree(path,logfile,verbose): """create a directory tree""" path = path.strip() if path[-1] != '/': path += '/' if not os.path.exists(path): try: os.makedirs(path) message = 'KEPIO.CREATETREE -- Created directory tree ' + path kepmsg.log(logfile,message,verbose) except: errmsg = ('ERROR -- KEPIO.CREATETREE: Could not create directory ' 'tree ' + path) kepmsg.err(logfile, errmsg, verbose) else: message = 'KEPIO.CREATETREE -- ' + path + ' directory exists' kepmsg.log(logfile, message, verbose) def timeranges(ranges, logfile, verbose): """read time ranges from ascii file""" tstart = [] tstop = [] try: ranges = ranges.strip().split(';') for i in range(len(ranges)): tstart.append(float(ranges[i].strip().split(',')[0])) tstop.append(float(ranges[i].strip().split(',')[1])) if tstart[-1] == 0.0 and tstop[-1] == 0.0: tstop[-1] = 1.0e8 except: tstart = [] tstop = [] if len(tstart) == 0 or len(tstop) == 0 or len(tstart) != len(tstop): errmsg = ('ERROR -- KEPIO.TIMERANGES: cannot understand time ' 'ranges provided') kepmsg.err(logfile, errmsg, verbose) return tstart, tstop def cadence(instr, infile, logfile, verbose): """manual calculation of median cadence within a time series""" try: intime = instr[1].data.field('barytime') except: intime = readfitscol(infile, instr[1].data, 'time', logfile, verbose) dt = [] for i in range(1, len(intime)): if np.isfinite(intime[i]) and np.isfinite(intime[i-1]): dt.append(intime[i] - intime[i-1]) dt = np.array(dt, dtype='float32') cadnce = np.median(dt) * 86400.0 return intime[0], intime[-1], len(intime), cadnce def timekeys(instr, filename, logfile, verbose): """read time keywords""" tstart = 0.0 tstop = 0.0 cadence = 0.0 # BJDREFI try: bjdrefi = instr[1].header['BJDREFI'] except: bjdrefi = 0.0 # BJDREFF try: bjdreff = instr[1].header['BJDREFF'] except: bjdreff = 0.0 bjdref = bjdrefi + bjdreff # TSTART try: tstart = instr[1].header['TSTART'] except: try: tstart = instr[1].header['STARTBJD'] + 2.4e6 except: try: tstart = instr[0].header['LC_START'] + 2400000.5 except: try: tstart = instr[1].header['LC_START'] + 2400000.5 except: errmsg = ('ERROR -- KEPIO.TIMEKEYS: Cannot find TSTART, ' 'STARTBJD or LC_START in ' + filename) kepmsg.err(logfile, errmsg, verbose) tstart += bjdref # TSTOP try: tstop = instr[1].header['TSTOP'] except: try: tstop = instr[1].header['ENDBJD'] + 2.4e6 except: try: tstop = instr[0].header['LC_END'] + 2400000.5 except: try: tstop = instr[1].header['LC_END'] + 2400000.5 except: errmsg = ('ERROR -- KEPIO.TIMEKEYS: Cannot find TSTOP, ' 'STOPBJD or LC_STOP in ' + filename) kepmsg.err(logfile, errmsg, verbose) tstop += bjdref # OBSMODE cadence = 1.0 try: obsmode = instr[0].header['OBSMODE'] except: try: obsmode = instr[1].header['DATATYPE'] except: errmsg = ('ERROR -- KEPIO.TIMEKEYS: cannot find keyword OBSMODE ' 'or DATATYPE in ' + filename) kepmsg.err(logfile, errmsg, verbose) if 'short' in obsmode: cadence = 54.1782 elif 'long' in obsmode: cadence = 1625.35 return tstart, tstop, bjdref, cadence def filterNaN(instr, datacol, outfile, logfile, verbose): """filter input data table""" try: nanclean = instr[1].header['NANCLEAN'] except: naxis2 = 0 for i in range(len(instr[1].columns.names)): if 'time' in instr[1].columns.names[i].lower(): timecol = instr[1].columns.names[i] try: instr[1].data.field(datacol) except: msg = ("ERROR -- KEPIO.FILTERNAN: cannot find column {}" "in the infile".format(datacol)) kepmsg.err(logfile, msg, verbose) try: for i in range(len(instr[1].data.field(0))): if (str(instr[1].data.field(timecol)[i]) != '-inf' and str(instr[1].data.field(datacol)[i]) != '-inf'): instr[1].data[naxis2] = instr[1].data[i] naxis2 += 1 instr[1].data = instr[1].data[:naxis2] comment = 'NaN cadences removed from data' kepkey.new('NANCLEAN', True, comment, instr[1], outfile, logfile, verbose) except: errmsg = ('ERROR -- KEPIO.FILTERNAN: Failed to filter NaNs from ' + outfile) kepmsg.err(logfile, errmsg, verbose) return instr def readTPF(infile, colname, logfile, verbose): """ Read a Target Pixel File (TPF). Parameters ---------- infile : str target pixel file name. colname : str name of the column to be read. logfile : str verbose : bool """ try: tpf = pyfits.open(infile, mode='readonly', memmap=True) except: errmsg = ('ERROR -- KEPIO.OPENFITS: cannot open ' + infile + ' as a FITS file') kepmsg.err(logfile, errmsg, verbose) try: naxis2 = tpf['TARGETTABLES'].header['NAXIS2'] except: errmsg = ('ERROR -- KEPIO.READTPF: No NAXIS2 keyword in ' + infile + '[TARGETTABLES]') kepmsg.err(logfile, errmsg, verbose) try: kepid = tpf[0].header['KEPLERID'] kepid = str(kepid) except: errmsg = ('ERROR -- KEPIO.READTPF: No KEPLERID keyword in ' + infile + '[0]') kepmsg.err(logfile, errmsg, verbose) try: channel = tpf[0].header['CHANNEL'] channel = str(channel) except: errmsg = ('ERROR -- KEPIO.READTPF: No CHANNEL keyword in ' + infile + '[0]') kepmsg.err(logfile, errmsg, verbose) try: skygroup = tpf[0].header['SKYGROUP'] skygroup = str(skygroup) except: skygroup = '0' try: module = tpf[0].header['MODULE'] module = str(module) except: errmsg = ('ERROR -- KEPIO.READTPF: No MODULE keyword in ' + infile + '[0]') kepmsg.err(logfile, errmsg, verbose) try: output = tpf[0].header['OUTPUT'] output = str(output) except: errmsg = ('ERROR -- KEPIO.READTPF: No OUTPUT keyword in ' + infile + '[0]') kepmsg.err(logfile, errmsg, verbose) try: quarter = tpf[0].header['QUARTER'] quarter = str(quarter) except: try: quarter = tpf[0].header['CAMPAIGN'] quarter = str(quarter) except: errmsg = ('ERROR -- KEPIO.READTPF: No QUARTER or CAMPAIGN ' + 'keyword in ' + infile + '[0]') kepmsg.err(logfile, errmsg, verbose) try: season = tpf[0].header['SEASON'] season = str(season) except: season = '0' try: ra = tpf[0].header['RA_OBJ'] ra = str(ra) except: errmsg = ('ERROR -- KEPIO.READTPF: No RA_OBJ keyword in ' + infile + '[0]') kepmsg.err(logfile, errmsg, verbose) try: dec = tpf[0].header['DEC_OBJ'] dec = str(dec) except: errmsg = ('ERROR -- KEPIO.READTPF: No DEC_OBJ keyword in ' + infile + '[0]') kepmsg.err(logfile, errmsg, verbose) try: kepmag = tpf[0].header['KEPMAG'] kepmag = str(float(kepmag)) except: kepmag = '' try: tdim5 = tpf['TARGETTABLES'].header['TDIM5'] xdim = int(tdim5.strip().strip('(').strip(')').split(',')[0]) ydim = int(tdim5.strip().strip('(').strip(')').split(',')[1]) except: errmsg = ('ERROR -- KEPIO.READTPF: Cannot read TDIM5 keyword in ' + infile + '[TARGETTABLES]') kepmsg.err(logfile, errmsg, verbose) try: crv5p1 = tpf['TARGETTABLES'].header['1CRV5P'] column = crv5p1 except: errmsg = ('ERROR -- KEPIO.READTPF: Cannot read 1CRV5P keyword in ' + infile + '[TARGETTABLES]') kepmsg.err(logfile, errmsg, verbose) try: crv5p2 = tpf['TARGETTABLES'].header['2CRV5P'] row = crv5p2 except: errmsg = ('ERROR -- KEPIO.READTPF: Cannot read 2CRV5P keyword in ' + infile + '[TARGETTABLES]') kepmsg.err(logfile, errmsg, verbose) # read and close TPF data pixel image try: pixels = tpf['TARGETTABLES'].data.field(colname)[:] except: errmsg = ("\nERROR -- KEPIO.READTPF: Cannot read {0} " "column in {1} '[TARGETTABLES]'".format(colname, infile)) kepmsg.err(logfile, errmsg, verbose) tpf.close() # for STSCI_PYTHON v2.12 - convert 3D data array to 2D if len(np.shape(pixels)) == 3: isize = np.shape(pixels)[0] jsize = np.shape(pixels)[1] ksize = np.shape(pixels)[2] pixels = np.reshape(pixels, (isize, jsize * ksize)) return (kepid, channel, skygroup, module, output, quarter, season, ra, dec, column, row, kepmag, xdim, ydim, pixels) def readMaskDefinition(infile, logfile, verbose): """read target pixel mask data""" # open input file inf = pyfits.open(infile, 'readonly') # read bitmap image try: img = inf['APERTURE'].data except: txt = ('WARNING -- KEPIO.READMASKDEFINITION: Cannot read mask ' 'defintion in ' + infile + '[APERTURE]') kepwarn.err(txt, logfile) try: naxis1 = inf['APERTURE'].header['NAXIS1'] except: txt = ('WARNING -- KEPIO.READMASKDEFINITION: Cannot read NAXIS1 ' 'keyword in ' + infile + '[APERTURE]') kepwarn.err(txt, logfile) try: naxis2 = inf['APERTURE'].header['NAXIS2'] except: txt = ('WARNING -- KEPIO.READMASKDEFINITION: Cannot read NAXIS2 ' 'keyword in ' + infile + '[APERTURE]') kepwarn.err(txt, logfile) # read WCS keywords crpix1p, crpix2p, crval1p, crval2p, cdelt1p, cdelt2p = kepkey.getWCSp( infile, inf['APERTURE'], logfile, verbose) pixelcoord1 = np.zeros((naxis1, naxis2)) pixelcoord2 = np.zeros((naxis1, naxis2)) for j in range(naxis2): for i in range(naxis1): pixelcoord1[i, j] = kepkey.wcs(i, crpix1p, crval1p, cdelt1p) pixelcoord2[i, j] = kepkey.wcs(j, crpix2p, crval2p, cdelt2p) # close input file inf.close() return img, pixelcoord1, pixelcoord2 def readPRFimage(infile, hdu, logfile, verbose): """read pixel response file""" prf = pyfits.open(infile, 'readonly') # read bitmap image try: img = prf[hdu].data except: txt = ('ERROR -- KEPIO.READPRFIMAGE: Cannot read PRF image in ' + infile + '[' + str(hdu) + ']') kepmsg.err(logfile, txt, verbose) try: naxis1 = prf[hdu].header['NAXIS1'] except: txt = ('ERROR -- KEPIO.READPRFIMAGE: Cannot read NAXIS1 keyword in ' + infile + '[' + str(hdu) + ']') kepmsg.err(logfile, txt, verbose) try: naxis2 = prf[hdu].header['NAXIS2'] except: txt = ('ERROR -- KEPIO.READPRFIMAGE: Cannot read NAXIS2 keyword in ' + infile + '[' + str(hdu) + ']') kepmsg.err(logfile, txt, verbose) # read WCS keywords crpix1p, crpix2p, crval1p, crval2p, cdelt1p, cdelt2p = kepkey.getWCSp( infile, prf[hdu], logfile, verbose ) prf.close() return img, crpix1p, crpix2p, crval1p, crval2p, cdelt1p, cdelt2p
mit
l2edzl3oy/vtnwebapp
app/cache/prod/twig/88/88/3b13198f5513cdcdefcafd88ef46a94adb28a819c0df53ddd8d66a52e2f3.php
723
<?php /* TwigBundle:Exception:error.rdf.twig */ class __TwigTemplate_88883b13198f5513cdcdefcafd88ef46a94adb28a819c0df53ddd8d66a52e2f3 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); $this->parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 1 $this->env->loadTemplate("TwigBundle:Exception:error.xml.twig")->display($context); } public function getTemplateName() { return "TwigBundle:Exception:error.rdf.twig"; } public function getDebugInfo() { return array ( 19 => 1,); } }
mit
CslaGenFork/CslaGenFork
trunk/Samples/DeepLoad/DAL-DR/SelfLoadSoftDelete.Business/ERLevel/G05_SubContinent_Child.cs
2138
namespace SelfLoadSoftDelete.Business.ERLevel { public partial class G05_SubContinent_Child { #region OnDeserialized actions /*/// <summary> /// This method is called on a newly deserialized object /// after deserialization is complete. /// </summary> /// <param name="context">Serialization context object.</param> protected override void OnDeserialized(System.Runtime.Serialization.StreamingContext context) { base.OnDeserialized(context); // add your custom OnDeserialized actions here. }*/ #endregion #region Implementation of DataPortal Hooks //partial void OnCreate(DataPortalHookArgs args) //{ // throw new NotImplementedException(); //} //partial void OnDeletePre(DataPortalHookArgs args) //{ // throw new NotImplementedException(); //} //partial void OnDeletePost(DataPortalHookArgs args) //{ // throw new NotImplementedException(); //} //partial void OnFetchPre(DataPortalHookArgs args) //{ // throw new NotImplementedException(); //} //partial void OnFetchPost(DataPortalHookArgs args) //{ // throw new NotImplementedException(); //} //partial void OnFetchRead(DataPortalHookArgs args) //{ // throw new NotImplementedException(); //} //partial void OnUpdatePre(DataPortalHookArgs args) //{ // throw new NotImplementedException(); //} //partial void OnUpdatePost(DataPortalHookArgs args) //{ // throw new NotImplementedException(); //} //partial void OnInsertPre(DataPortalHookArgs args) //{ // throw new NotImplementedException(); //} //partial void OnInsertPost(DataPortalHookArgs args) //{ // throw new NotImplementedException(); //} #endregion } }
mit
leeola/kite
handlers.go
3905
package kite import ( "fmt" "net/http" "net/url" "os/exec" "runtime" "sync" "time" "github.com/gorilla/websocket" "github.com/koding/kite/sockjsclient" "github.com/koding/kite/systeminfo" "golang.org/x/crypto/ssh/terminal" ) func (k *Kite) addDefaultHandlers() { // Default RPC methods k.HandleFunc("kite.systemInfo", handleSystemInfo) k.HandleFunc("kite.heartbeat", k.handleHeartbeat) k.HandleFunc("kite.ping", handlePing).DisableAuthentication() k.HandleFunc("kite.tunnel", handleTunnel) k.HandleFunc("kite.log", k.handleLog) k.HandleFunc("kite.print", handlePrint) k.HandleFunc("kite.prompt", handlePrompt) k.HandleFunc("kite.getPass", handleGetPass) if runtime.GOOS == "darwin" { k.HandleFunc("kite.notify", handleNotifyDarwin) } } // handleSystemInfo returns info about the system (CPU, memory, disk...). func handleSystemInfo(r *Request) (interface{}, error) { return systeminfo.New() } // handleHeartbeat pings the callback with the given interval seconds. func (k *Kite) handleHeartbeat(r *Request) (interface{}, error) { args := r.Args.MustSliceOfLength(2) seconds := args[0].MustFloat64() ping := args[1].MustFunction() heartbeat := time.NewTicker(time.Duration(seconds) * time.Second) done := make(chan bool, 0) // stop the ticker and close the done chan so we can break the loop var once sync.Once r.Client.OnDisconnect(func() { once.Do(func() { close(done) }) }) // we need to break out because stopping the ticker is not enough. If we // stop the ticker ping.Call() will block until there is data from the // other end of the connection. So use an explicit exit. loop: for { select { case <-done: break loop case <-heartbeat.C: if err := ping.Call(); err != nil { k.Log.Error(err.Error()) } } } // remove the onDisconnect again so it doesn't call close twice r.Client.onDisconnectHandlers = nil heartbeat.Stop() return nil, nil } // handleLog prints a log message to stderr. func (k *Kite) handleLog(r *Request) (interface{}, error) { msg := r.Args.One().MustString() k.Log.Info(fmt.Sprintf("%s: %s", r.Client.Name, msg)) return nil, nil } //handlePing returns a simple "pong" string func handlePing(r *Request) (interface{}, error) { return "pong", nil } // handlePrint prints a message to stdout. func handlePrint(r *Request) (interface{}, error) { return fmt.Print(r.Args.One().MustString()) } // handlePrompt asks user a single line input. func handlePrompt(r *Request) (interface{}, error) { fmt.Print(r.Args.One().MustString()) var s string _, err := fmt.Scanln(&s) return s, err } // handleGetPass reads a line of input from a terminal without local echo. func handleGetPass(r *Request) (interface{}, error) { fmt.Print(r.Args.One().MustString()) data, err := terminal.ReadPassword(0) // stdin fmt.Println() if err != nil { return nil, err } return string(data), nil } // handleNotifyDarwin displays a desktop notification on OS X. func handleNotifyDarwin(r *Request) (interface{}, error) { args := r.Args.MustSliceOfLength(3) cmd := exec.Command("osascript", "-e", fmt.Sprintf("display notification \"%s\" with title \"%s\" subtitle \"%s\"", args[1].MustString(), args[2].MustString(), args[0].MustString())) return nil, cmd.Start() } // handleTunnel opens two websockets, one to proxy kite and one to itself, // then it copies the message between them. func handleTunnel(r *Request) (interface{}, error) { var args struct { URL string } r.Args.One().MustUnmarshal(&args) parsed, err := url.Parse(args.URL) if err != nil { return nil, err } requestHeader := http.Header{} requestHeader.Add("Origin", "http://"+parsed.Host) remoteConn, _, err := websocket.DefaultDialer.Dial(parsed.String(), requestHeader) if err != nil { return nil, err } session := sockjsclient.NewWebsocketSession(remoteConn) go r.LocalKite.sockjsHandler(session) return nil, nil }
mit
twilio/twilio-php
src/Twilio/Rest/Preview/Sync/ServiceContext.php
5392
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Preview\Sync; use Twilio\Exceptions\TwilioException; use Twilio\InstanceContext; use Twilio\ListResource; use Twilio\Options; use Twilio\Rest\Preview\Sync\Service\DocumentList; use Twilio\Rest\Preview\Sync\Service\SyncListList; use Twilio\Rest\Preview\Sync\Service\SyncMapList; use Twilio\Serialize; use Twilio\Values; use Twilio\Version; /** * PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com. * * @property DocumentList $documents * @property SyncListList $syncLists * @property SyncMapList $syncMaps * @method \Twilio\Rest\Preview\Sync\Service\DocumentContext documents(string $sid) * @method \Twilio\Rest\Preview\Sync\Service\SyncListContext syncLists(string $sid) * @method \Twilio\Rest\Preview\Sync\Service\SyncMapContext syncMaps(string $sid) */ class ServiceContext extends InstanceContext { protected $_documents; protected $_syncLists; protected $_syncMaps; /** * Initialize the ServiceContext * * @param Version $version Version that contains the resource * @param string $sid The sid */ public function __construct(Version $version, $sid) { parent::__construct($version); // Path Solution $this->solution = ['sid' => $sid, ]; $this->uri = '/Services/' . \rawurlencode($sid) . ''; } /** * Fetch the ServiceInstance * * @return ServiceInstance Fetched ServiceInstance * @throws TwilioException When an HTTP error occurs. */ public function fetch(): ServiceInstance { $payload = $this->version->fetch('GET', $this->uri); return new ServiceInstance($this->version, $payload, $this->solution['sid']); } /** * Delete the ServiceInstance * * @return bool True if delete succeeds, false otherwise * @throws TwilioException When an HTTP error occurs. */ public function delete(): bool { return $this->version->delete('DELETE', $this->uri); } /** * Update the ServiceInstance * * @param array|Options $options Optional Arguments * @return ServiceInstance Updated ServiceInstance * @throws TwilioException When an HTTP error occurs. */ public function update(array $options = []): ServiceInstance { $options = new Values($options); $data = Values::of([ 'WebhookUrl' => $options['webhookUrl'], 'FriendlyName' => $options['friendlyName'], 'ReachabilityWebhooksEnabled' => Serialize::booleanToString($options['reachabilityWebhooksEnabled']), 'AclEnabled' => Serialize::booleanToString($options['aclEnabled']), ]); $payload = $this->version->update('POST', $this->uri, [], $data); return new ServiceInstance($this->version, $payload, $this->solution['sid']); } /** * Access the documents */ protected function getDocuments(): DocumentList { if (!$this->_documents) { $this->_documents = new DocumentList($this->version, $this->solution['sid']); } return $this->_documents; } /** * Access the syncLists */ protected function getSyncLists(): SyncListList { if (!$this->_syncLists) { $this->_syncLists = new SyncListList($this->version, $this->solution['sid']); } return $this->_syncLists; } /** * Access the syncMaps */ protected function getSyncMaps(): SyncMapList { if (!$this->_syncMaps) { $this->_syncMaps = new SyncMapList($this->version, $this->solution['sid']); } return $this->_syncMaps; } /** * Magic getter to lazy load subresources * * @param string $name Subresource to return * @return ListResource The requested subresource * @throws TwilioException For unknown subresources */ public function __get(string $name): ListResource { if (\property_exists($this, '_' . $name)) { $method = 'get' . \ucfirst($name); return $this->$method(); } throw new TwilioException('Unknown subresource ' . $name); } /** * Magic caller to get resource contexts * * @param string $name Resource to return * @param array $arguments Context parameters * @return InstanceContext The requested resource context * @throws TwilioException For unknown resource */ public function __call(string $name, array $arguments): InstanceContext { $property = $this->$name; if (\method_exists($property, 'getContext')) { return \call_user_func_array(array($property, 'getContext'), $arguments); } throw new TwilioException('Resource does not have a context'); } /** * Provide a friendly representation * * @return string Machine friendly representation */ public function __toString(): string { $context = []; foreach ($this->solution as $key => $value) { $context[] = "$key=$value"; } return '[Twilio.Preview.Sync.ServiceContext ' . \implode(' ', $context) . ']'; } }
mit
Eiskis/baseline-php
docs/backend/utilities/jade/src/Jade/Parser.php
7607
<?php namespace Jade; class Parser { protected $lexer; public $basepath; //current file basepath, used for include type public function __construct(Lexer $lexer) { $this->lexer = $lexer; } public function parse($input) { $source = ( is_file($input) ) ? file_get_contents($input) : (string) $input; $this->basepath = ( is_file($input) ) ? dirname($input) : False ; $this->lexer->setInput($source); $node = new Node('block'); while ( $this->lexer->predictToken()->type !== 'eos' ) { //echo $this->lexer->predictToken()->type.PHP_EOL; if ( $this->lexer->predictToken()->type === 'newline' ) { $this->lexer->getAdvancedToken(); }else if ( $this->lexer->predictToken()->type === 'include' ) { $node->addChildren($this->parseExpression()); } else { $node->addChild($this->parseExpression()); } } return $node; } protected function expectTokenType($type) { if ( $this->lexer->predictToken()->type === $type ) { return $this->lexer->getAdvancedToken(); } else { throw new \Exception(sprintf('Expected %s, but got %s', $type, $this->lexer->predictToken()->type)); } } protected function acceptTokenType($type) { if ( $this->lexer->predictToken()->type === $type ) { return $this->lexer->getAdvancedToken(); } } protected function parseExpression() { switch ( $this->lexer->predictToken()->type ) { case 'include': return $this->parseInclude(); case 'tag': return $this->parseTag(); case 'doctype': return $this->parseDoctype(); case 'filter': return $this->parseFilter(); case 'comment': return $this->parseComment(); case 'text': return $this->parseText(); case 'code': return $this->parseCode(); case 'id': case 'class': $token = $this->lexer->getAdvancedToken(); $this->lexer->deferToken($this->lexer->takeToken('tag', 'div')); $this->lexer->deferToken($token); return $this->parseExpression(); } } protected function parseText($trim = false) { $token = $this->expectTokenType('text'); $value = $trim ? preg_replace('/^ +/', '', $token->value) : $token->value; return new Node('text', $value); } protected function parseCode() { $token = $this->expectTokenType('code'); $node = new Node('code', $token->value, $token->buffer); $node->codeType = $token->code_type; // Skip newlines while ( $this->lexer->predictToken()->type === 'newline' ) { $this->lexer->getAdvancedToken(); } if ( $this->lexer->predictToken()->type === 'indent' ) { $node->block = $this->parseBlock(); } return $node; } protected function parseComment() { $token = $this->expectTokenType('comment'); $node = new Node('comment', preg_replace('/^ +| +$/', '', $token->value), $token->buffer); // Skip newlines while ( $this->lexer->predictToken()->type === 'newline' ) { $this->lexer->getAdvancedToken(); } if ( $this->lexer->predictToken()->type === 'indent' ) { $node->block = $this->parseBlock(); } return $node; } protected function parseInclude() { $token = $this->expectTokenType('include'); $filename = (strripos($token->value , ".jade", -5) !== False ) ? $token->value : $token->value.".jade"; $source = realpath($this->basepath) . DIRECTORY_SEPARATOR . $filename; $l_parser = new Parser(new Lexer()); return $l_parser->parse($source)->children; } protected function parseDoctype() { $token = $this->expectTokenType('doctype'); return new Node('doctype', $token->value); } protected function parseFilter() { $block = null; $token = $this->expectTokenType('filter'); $attributes = $this->acceptTokenType('attributes'); if ( $this->lexer->predictToken(2)->type === 'text' ) { $block = $this->parseTextBlock(); } else { $block = $this->parseBlock(); } $node = new Node('filter', $token->value, null !== $attributes ? $attributes->attributes : array()); $node->block = $block; return $node; } protected function parseTextBlock() { $node = new Node('text', null); $this->expectTokenType('indent'); while ( $this->lexer->predictToken()->type === 'text' || $this->lexer->predictToken()->type === 'newline' ) { if ( $this->lexer->predictToken()->type === 'newline' ) { $this->lexer->getAdvancedToken(); } else { $node->addLine($this->lexer->getAdvancedToken()->value); } } $this->expectTokenType('outdent'); return $node; } protected function parseBlock() { $node = new Node('block'); $this->expectTokenType('indent'); while ( $this->lexer->predictToken()->type !== 'outdent' ) { if ( $this->lexer->predictToken()->type === 'newline' ) { $this->lexer->getAdvancedToken(); }else if ( $this->lexer->predictToken()->type === 'include' ) { $node->addChildren($this->parseExpression()); }else { $node->addChild($this->parseExpression()); } } $this->expectTokenType('outdent'); return $node; } protected function parseTag() { $name = $this->lexer->getAdvancedToken()->value; $node = new Node('tag', $name); // Parse id, class, attributes token while ( true ) { switch ( $this->lexer->predictToken()->type ) { case 'id': case 'class': $token = $this->lexer->getAdvancedToken(); $node->setAttribute($token->type, $token->value); continue; case 'attributes': foreach ( $this->lexer->getAdvancedToken()->attributes as $name => $value ) { $node->setAttribute($name, $value); } continue; default: break(2); } } // Parse text/code token switch ( $this->lexer->predictToken()->type ) { case 'text': $node->text = $this->parseText(true); break; case 'code': $node->code = $this->parseCode(); break; } // Skip newlines while ( $this->lexer->predictToken()->type === 'newline' ) { $this->lexer->getAdvancedToken(); } // Tag text on newline if ( $this->lexer->predictToken()->type === 'text' ) { if ($text = $node->text) { $text->addLine(''); } else { $node->text = new Node('text', ''); } } // Parse block indentation if ( $this->lexer->predictToken()->type === 'indent' ) { $node->addChild($this->parseBlock()); } return $node; } } ?>
mit
centur/orleans
test/TesterAzureUtils/AzureRemindersTableTests.cs
2184
using System.Threading.Tasks; using Orleans; using Orleans.AzureUtils; using Orleans.Runtime; using Orleans.Runtime.ReminderService; using Tester; using Tester.AzureUtils; using TestExtensions; using UnitTests.MembershipTests; using UnitTests.StorageTests; using Xunit; namespace UnitTests.RemindersTest { /// <summary> /// Tests for operation of Orleans Reminders Table using Azure /// </summary> public class AzureRemindersTableTests : ReminderTableTestsBase, IClassFixture<AzureStorageBasicTestFixture> { public AzureRemindersTableTests(ConnectionStringFixture fixture, TestEnvironmentFixture environment) : base(fixture, environment) { LogManager.AddTraceLevelOverride("AzureTableDataManager", Severity.Verbose3); LogManager.AddTraceLevelOverride("OrleansSiloInstanceManager", Severity.Verbose3); LogManager.AddTraceLevelOverride("Storage", Severity.Verbose3); } public override void Dispose() { // Reset init timeout after tests OrleansSiloInstanceManager.initTimeout = AzureTableDefaultPolicies.TableCreationTimeout; base.Dispose(); } protected override IReminderTable CreateRemindersTable() { return new AzureBasedReminderTable(); } protected override string GetConnectionString() { return TestDefaultConfiguration.DataConnectionString; } [Fact, TestCategory("Reminders"), TestCategory("Azure")] public void RemindersTable_Azure_Init() { } [Fact, TestCategory("Reminders"), TestCategory("Azure")] public async Task RemindersTable_Azure_RemindersRange() { await RemindersRange(50); } [Fact, TestCategory("Reminders"), TestCategory("Azure")] public async Task RemindersTable_Azure_RemindersParallelUpsert() { await RemindersParallelUpsert(); } [Fact, TestCategory("Reminders"), TestCategory("Azure")] public async Task RemindersTable_Azure_ReminderSimple() { await ReminderSimple(); } } }
mit
MANHIGA/www.gangauthority.com
app/cache/dev/annotations/04dee053d74e8a63f86a31cfa7ad302660724b43.cache.php
430
<?php return unserialize('a:2:{i:0;O:26:"Doctrine\\ORM\\Mapping\\Table":5:{s:4:"name";s:12:"typebatiment";s:6:"schema";N;s:7:"indexes";a:1:{i:0;O:26:"Doctrine\\ORM\\Mapping\\Index":2:{s:4:"name";s:27:"FK_TypeBatiment_idTypeSbire";s:7:"columns";a:1:{i:0;s:24:"TypeBatiment_idTypeSbire";}}}s:17:"uniqueConstraints";N;s:7:"options";a:0:{}}i:1;O:27:"Doctrine\\ORM\\Mapping\\Entity":2:{s:15:"repositoryClass";N;s:8:"readOnly";b:0;}}');
mit
ylastapis/Sylius
src/Sylius/Bundle/ResourceBundle/DependencyInjection/SyliusResourceExtension.php
4033
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Bundle\ResourceBundle\DependencyInjection; use Sylius\Bundle\ResourceBundle\DependencyInjection\Driver\DriverProvider; use Sylius\Component\Resource\Metadata\Metadata; use Symfony\Component\Config\FileLocator; use Symfony\Component\Config\Loader\LoaderInterface; use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Extension\Extension; use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; /** * @author Paweł Jędrzejewski <pawel@sylius.org> * @author Gonzalo Vilaseca <gvilaseca@reiss.co.uk> */ final class SyliusResourceExtension extends Extension { /** * {@inheritdoc} */ public function load(array $config, ContainerBuilder $container): void { $config = $this->processConfiguration($this->getConfiguration([], $container), $config); $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); $loader->load('services.xml'); $bundles = $container->getParameter('kernel.bundles'); if (array_key_exists('SyliusGridBundle', $bundles)) { $loader->load('services/integrations/grid.xml'); } if ($config['translation']['enabled']) { $loader->load('services/integrations/translation.xml'); $container->setAlias('sylius.translation_locale_provider', $config['translation']['locale_provider']); } $container->setParameter('sylius.resource.settings', $config['settings']); $container->setAlias('sylius.resource_controller.authorization_checker', $config['authorization_checker']); $this->loadPersistence($config['drivers'], $config['resources'], $loader); $this->loadResources($config['resources'], $container); } private function loadPersistence(array $drivers, array $resources, LoaderInterface $loader): void { foreach ($resources as $alias => $resource) { if (!in_array($resource['driver'], $drivers, true)) { throw new InvalidArgumentException(sprintf( 'Resource "%s" uses driver "%s", but this driver has not been enabled.', $alias, $resource['driver'] )); } } foreach ($drivers as $driver) { $loader->load(sprintf('services/integrations/%s.xml', $driver)); } } private function loadResources(array $resources, ContainerBuilder $container): void { foreach ($resources as $alias => $resourceConfig) { $metadata = Metadata::fromAliasAndConfiguration($alias, $resourceConfig); $resources = $container->hasParameter('sylius.resources') ? $container->getParameter('sylius.resources') : []; $resources = array_merge($resources, [$alias => $resourceConfig]); $container->setParameter('sylius.resources', $resources); DriverProvider::get($metadata)->load($container, $metadata); if ($metadata->hasParameter('translation')) { $alias .= '_translation'; $resourceConfig = array_merge(['driver' => $resourceConfig['driver']], $resourceConfig['translation']); $resources = $container->hasParameter('sylius.resources') ? $container->getParameter('sylius.resources') : []; $resources = array_merge($resources, [$alias => $resourceConfig]); $container->setParameter('sylius.resources', $resources); $metadata = Metadata::fromAliasAndConfiguration($alias, $resourceConfig); DriverProvider::get($metadata)->load($container, $metadata); } } } }
mit
lmazuel/azure-sdk-for-python
azure-mgmt-storage/azure/mgmt/storage/v2017_10_01/operations/skus_operations.py
4078
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- import uuid from msrest.pipeline import ClientRawResponse from msrestazure.azure_exceptions import CloudError from .. import models class SkusOperations(object): """SkusOperations operations. :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An objec model deserializer. :ivar api_version: Client Api Version. Constant value: "2017-10-01". """ models = models def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer self.api_version = "2017-10-01" self.config = config def list( self, custom_headers=None, raw=False, **operation_config): """Lists the available SKUs supported by Microsoft.Storage for given subscription. :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides<msrest:optionsforoperations>`. :return: An iterator like instance of Sku :rtype: ~azure.mgmt.storage.v2017_10_01.models.SkuPaged[~azure.mgmt.storage.v2017_10_01.models.Sku] :raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>` """ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL url = '/subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus' path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } url = self._client.format_url(url, **path_format_arguments) # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') else: url = next_link query_parameters = {} # Construct headers header_parameters = {} header_parameters['Content-Type'] = 'application/json; charset=utf-8' if self.config.generate_client_request_id: header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) if custom_headers: header_parameters.update(custom_headers) if self.config.accept_language is not None: header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp return response # Deserialize response deserialized = models.SkuPaged(internal_paging, self._deserialize.dependencies) if raw: header_dict = {} client_raw_response = models.SkuPaged(internal_paging, self._deserialize.dependencies, header_dict) return client_raw_response return deserialized
mit
guotao2000/ecmall
temp/caches/0446/7c052bc0edf1747d05512118d442b4bd.cache.php
220
<?php /** * @Created By ECMall PhpCacheServer * @Time:2015-01-18 11:51:23 */ if(filemtime(__FILE__) + 600 < time())return false; return array ( 'inbox' => '0', 'outbox' => '0', 'total' => 0, ); ?>
mit
crabcanon/angular-es6-demo
app/js/timer/timer.service.js
595
class TimerService { constructor() {} // Return the counter with format '00D 00H 00M 00S' render(time) { let days = Math.floor(time / 86400); let hours = Math.floor(time / 3600) % 24; let minutes = Math.floor(time / 60) % 60; let seconds = Math.floor(time % 60); let result = (days < 10 ? '0' + days : days) + 'D ' + (hours < 10 ? '0' + hours : hours) + 'H ' + (minutes < 10 ? '0' + minutes : minutes) + 'M ' + (seconds < 10 ? '0' + seconds : seconds) + 'S'; return result; } } TimerService.$inject = []; export default TimerService;
mit
gardebring/DocumentDBStudio
DocumentDBStudio/Providers/EmbeddedResourceProvider.cs
1175
using System.IO; using System.Reflection; namespace Microsoft.Azure.DocumentDBStudio.Providers { public static class EmbeddedResourceProvider { public static string ReadEmbeddedResource(string resourceLocation) { try { var assembly = Assembly.GetExecutingAssembly(); using (var stream = assembly.GetManifestResourceStream(resourceLocation)) if (stream != null) using (var reader = new StreamReader(stream)) { return reader.ReadToEnd(); } } catch { } return ""; } public static void CopyStreamToFile(string resourceName, string fileLocation) { using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(string.Format("Microsoft.Azure.DocumentDBStudio.Resources.{0}", resourceName))) { using (var fileStream = File.Create(fileLocation)) { stream.CopyTo(fileStream); } } } } }
mit