This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-03/schema", | |
"type": "object", | |
"properties": { | |
"total_count": { | |
"type": "integer" | |
}, | |
"items": [ | |
{ | |
"properties": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#%RAML 0.8 | |
title: Foo REST API | |
version: v1 | |
baseUri: http://api.mydomain.com/{version} | |
/places: | |
get: | |
queryParameters: | |
s: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package binders | |
import play.api.mvc._ | |
import java.net.URLEncoder | |
import play.api.data.Mapping | |
// --- Definition of a query string binder for type A using a Mapping[A] | |
object Binders { | |
implicit def mappingBinder[A](implicit mapping: Mapping[A]) = new QueryStringBindable[A] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /bookings controllers.Bookings.list(filter:binders.BookingQS ?= binders.BookingQS.empty, p:Int ?= 0, s:Int ?= -4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(__ \ "fields" \ "customfield_10233" \ "value").readNullable[String] | |
(__ \ "fields" \ "customfield_10233").readNullable( | |
(__ \ "value").readNullable[String]) ~ | |
//GOTCHA!! | |
(__ \ "fields" \ "customfield_10233").readNullable( | |
(__ \ "value").read[String]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val futures = for { | |
o <- Future.sequence(list.map(Jira.getIssue)) | |
} yield o | |
futures.map(results => { | |
val jsonIssues: List[Option[Issue]] = results.map(result => { | |
result.json.validate[Issue] match { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class UserMock { | |
/** | |
* Create instance {@Link User} | |
* | |
* @param custid | |
* @param hotelid | |
* @since 1.0 | |
*/ | |
public final static User createUser(Integer custid, | |
Integer hotelid) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function ($) { | |
"use strict"; | |
var tokenUrl = "http://localhost/token"; | |
var token = ""; | |
// Static method default options. | |
var _opts = { | |
clientId : "", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Etant donnée la structure de données T suivante : | |
(id, type, montant) où type est soit AE (A emporter) ou SP (sur place). | |
Etant données les régles métiers suivantes pour un calcul de TVA : | |
RM1 : pout toute donnée T de type AE, la TVA est de 5% | |
RM2: pour tout donéne T de type SP la TVA est de 10% | |
1 - Comment implémentez-vous l'application de ces règles métiers sur |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JBAS014312: Cannot lookup jndi name: java:jboss/datasources/MySQLDS since it doesn't belong to java:app, java:module, java:comp or java:global namespace |
OlderNewer