API Docs
API Docs
Overview
This section should contain an overview of the data provided and the API purpose.
Getting Started
The current version of the API lives at https://api.gsa.gov/v3/path .
Versions
Endpoints
API calls
Explore the API here hands-on.
You can view the definition of this API in OpenAPI Specification 2.0 format in this
file: citypairs.json
Need a little help? Read our Getting Started to learn about using the API.
Prototype City Pairs API
Prototype project to demonstrate GSA API Standards and API Documentation Template.
o Show/Hide
o List Operations
o Expand Operations
o
GET /airfares
Negotiated airfares
IMPLEMENTATION NOTES
An array of airfares
Model
Example Value
[
{
"ID": 0,
"ITEM_NUM": "string",
"AWARD_YEAR": "string",
"ORIGIN_AIRPORT_ABBREV": "string",
"DESTINATION_AIRPORT_ABBREV": "string",
"ORIGIN_CITY_NAME": "string",
"ORIGIN_STATE": "string",
"ORIGIN_COUNTRY": "string",
"DESTINATION_CITY_NAME": "string",
"DESTINATION_STATE": "string",
"DESTINATION_COUNTRY": "string",
"AIRLINE_ABBREV": "string",
"AWARDED_SERV": "string",
"PAX_COUNT": "string",
"YCA_FARE": 0,
"XCA_FARE": 0,
"BUSINESS_FARE": 0,
"ORIGIN_AIRPORT_LOCATION": "string",
"DESTINATION_AIRPORT_LOCATION": "string",
"ORIGIN_CITY_STATE_AIRPORT": "string",
"DESTINATION_CITY_STATE_AIRPORT": "2019-04-17T12:22:16.807Z",
"EFFECTIVE_DATE": "2019-04-17T12:22:16.807Z",
"EXPIRATION_DATE": "2019-04-17T12:22:16.807Z"
}
Parameter
Parameter Value Description Data Type
Type
RESPONSE MESSAGES
HTTP Status
Reason Response Model Headers
Code
default Model
Unexpected error
Example Value
"message": "string",
HTTP Status
Reason Response Model Headers
Code
"required_fields": "string",
"example": "string"
Try it out!
GET /airfares/{id}
Individual airfare by ID
IMPLEMENTATION NOTES
An array of airfares
Model
Example Value
[
{
"ID": 0,
"ITEM_NUM": "string",
"AWARD_YEAR": "string",
"ORIGIN_AIRPORT_ABBREV": "string",
"DESTINATION_AIRPORT_ABBREV": "string",
"ORIGIN_CITY_NAME": "string",
"ORIGIN_STATE": "string",
"ORIGIN_COUNTRY": "string",
"DESTINATION_CITY_NAME": "string",
"DESTINATION_STATE": "string",
"DESTINATION_COUNTRY": "string",
"AIRLINE_ABBREV": "string",
"AWARDED_SERV": "string",
"PAX_COUNT": "string",
"YCA_FARE": 0,
"XCA_FARE": 0,
"BUSINESS_FARE": 0,
"ORIGIN_AIRPORT_LOCATION": "string",
"DESTINATION_AIRPORT_LOCATION": "string",
"ORIGIN_CITY_STATE_AIRPORT": "string",
"DESTINATION_CITY_STATE_AIRPORT": "2019-04-17T12:22:16.841Z",
"EFFECTIVE_DATE": "2019-04-17T12:22:16.842Z",
"EXPIRATION_DATE": "2019-04-17T12:22:16.842Z"
}
Parameter
Parameter Value Description Data Type
Type
id path integer
Unique identifier
RESPONSE MESSAGES
HTTP Status
Reason Response Model Headers
Code
default Model
Unexpected error
Example Value
"message": "string",
"required_fields": "string",
HTTP Status
Reason Response Model Headers
Code
"example": "string"
Try it out!
Some sample
Test sample | test column two First column sadf asdfads | sfsdsadf
Code Sample
Some code here
REFERENCE
User
User attributes:
id (Number) : unique identifier.
fname (String) : First Name.
lname (String) : Last Name.
email (String) : email id of the user.
User Collection
Create a User
since
Timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ Only users updated at or after
this time are returned.
String
limit
maximum number of records expected by client.
Number
Request
Production
Raw
Try
Response
200
HEADERS
Content-Type:application/json
BODY
[
{
"id": 1,
"fname": "Pandurang",
"lname": "Patil",
"email": "pandurang@email.com"
},
{
"id": 2,
"fname": "Sangram",
"lname": "Shinde",
"email": "sangram@email.com"
}
]
Response
401
HEADERS
Content-Type:application/json
BODY
{
"error": "error.unauthorized"
}
User
A single User object with all its details
Retrieve a User
Update a User
Remove a User