add one card
This commit is contained in:
20
readme.md
20
readme.md
@@ -2,4 +2,22 @@
|
||||
|
||||
## What is this?
|
||||
|
||||
A simple API wrapper over the netrunner db. Still a WIP
|
||||
A simple API wrapper over the netrunner db.
|
||||
|
||||
|
||||
## How does this work?
|
||||
|
||||
To put it simply
|
||||
|
||||
|
||||
```
|
||||
new Repository().GetRequest<Cards>()
|
||||
|
||||
OR
|
||||
|
||||
new Repository().GetCards()
|
||||
|
||||
new Repository().GetRequest<Card>(01001)
|
||||
|
||||
|
||||
```
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace NetrunnerDb.Net
|
||||
}
|
||||
/// <summary>
|
||||
/// /api/sets/ returns data about all the sets in the database.
|
||||
/// </summary>
|
||||
/// </summary>01001
|
||||
/// <returns></returns>
|
||||
public IList<Sets> GetSets()
|
||||
{
|
||||
@@ -59,5 +59,14 @@ namespace NetrunnerDb.Net
|
||||
{
|
||||
return GetRequest<Cards>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// /api/card/{code} returns data about all the cards in the database.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IList<OneCard> GetCard()
|
||||
{
|
||||
return GetRequest<OneCard>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user