Swagger ReserPick (1.0.0)

Download OpenAPI specification:

License: Apache 2.0

ReserPick

reservations

Everything about reservations

Get reservations by some query params

Authorizations:
bearerAuth
query Parameters
childId
string
Example: childId=hogehoge

childId to filter by

since
string
Example: since=2020-01-31

since date to filter by

until
string
Example: until=2020-01-31

until date to filter by

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Register reservation dates by childId

Authorizations:
bearerAuth
Request Body schema: application/json
required

Created reservation dates

childId
required
string
required
Array of objects (CreateReservationDateBody)

Responses

Request samples

Content type
application/json
{
  • "childId": "1b451a10-afc1-40e1-b3b4-e0dc5ecd4d6c",
  • "reservations": [
    ]
}

Response samples

Content type
application/json
[
  • {
    }
]

Update reservation date by reservationId

Authorizations:
bearerAuth
path Parameters
reservationId
required
string
Example: 0cbb29a8-e10f-4794-9458-298fde2973ab

The id to filter by

Request Body schema: application/json
required

Updated reservation date

date
required
string
isUseOutward
required
boolean
outwardSince
required
string <time>
outwardUntil
required
string <time>
isUseReturn
required
boolean
returnSince
required
string <time>
returnUntil
required
string <time>
outwardSpotId
string
returnSpotId
string

Responses

Request samples

Content type
application/json
{
  • "date": "2020-01-31",
  • "isUseOutward": true,
  • "outwardSince": "07:00",
  • "outwardUntil": "08:00",
  • "isUseReturn": true,
  • "returnSince": "17:00",
  • "returnUntil": "20:00",
  • "outwardSpotId": "16a522a9-a4fb-495c-ab13-cea3dc83a725",
  • "returnSpotId": "16a522a9-a4fb-495c-ab13-cea3dc83a725"
}

Response samples

Content type
application/json
{
  • "id": "0cbb29a8-e10f-4794-9458-298fde2973ab",
  • "officeId": "saitoh-lab",
  • "child": {
    },
  • "date": "2020-01-31",
  • "isUseOutward": true,
  • "outwardSince": "07:00",
  • "outwardUntil": "08:00",
  • "isUseReturn": true,
  • "returnSince": "17:00",
  • "returnUntil": "20:00",
  • "fixedOutwardTime": "07:15",
  • "fixedReturnTime": "19:20",
  • "outwardSpot": {
    },
  • "returnSpot": {
    }
}

Delete reservation date by reservationId

Authorizations:
bearerAuth
path Parameters
reservationId
required
string
Example: 0cbb29a8-e10f-4794-9458-298fde2973ab

The id to filter by

Responses

Calculate pick up schedules by some query params

Authorizations:
bearerAuth
query Parameters
since
string
Example: since=2020-01-01

since date to filter by

until
string
Example: until=2020-01-31

until date to filter by

Responses

Get user by user name

Authorizations:
bearerAuth
path Parameters
date
required
string
Example: 2023-01-31

The date to filter by

Responses

Response samples

Content type
application/json
{
  • "outward": [
    ],
  • "return": [
    ]
}

Calculate pick up schedules by some query params

Authorizations:
bearerAuth
path Parameters
date
required
string
Example: 2020-01-31

since date to filter by

Responses

Update pick up schedules by some query params

Authorizations:
bearerAuth
path Parameters
date
required
string
Example: 2020-01-31

since date to filter by

Request Body schema: application/json
required

Updated pick up schedules

Array of objects (UpdateSchedulesCar)
Array of objects (UpdateSchedulesCar)

Responses

Request samples

Content type
application/json
{
  • "outward": [
    ],
  • "return": [
    ]
}

Response samples

Content type
application/json
{
  • "schedules": {
    }
}

Get cost by some query params

Authorizations:
bearerAuth
Request Body schema: application/json
required
addresses
required
Array of strings
spotIds
required
Array of strings

Responses

Request samples

Content type
application/json
{
  • "addresses": [
    ],
  • "spotIds": [
    ]
}

Response samples

Content type
application/json
{
  • "costs": [
    ]
}

office

Everything about office

Get office information

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "id": "0e2a1fbb-623c-41d8-81ba-177872671007",
  • "name": "つばさ学園",
  • "spot": {
    }
}

Update office information

Authorizations:
bearerAuth
Request Body schema: application/json
required

Updated office information

name
string

Responses

Request samples

Content type
application/json
{
  • "name": "つばさ学園"
}

Get invitation code for users

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "invite": {
    }
}

Get all employees

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new employee

Authorizations:
bearerAuth
Request Body schema: application/json
required

Created employee

name
required
string
email
required
string <email>

Responses

Request samples

Content type
application/json
{
  • "name": "サイトウ",
  • "email": "saitoh@gmail.com"
}

Response samples

Content type
application/json
{
  • "employee": {
    }
}

Get employee by id

Authorizations:
bearerAuth
path Parameters
id
required
string
Example: dfb50988-88ff-4dd1-bac0-c860fe70befc

The id to filter by

Responses

Response samples

Content type
application/json
{
  • "id": "user-id",
  • "name": "サイトウ",
  • "email": "saitho@gmail.com",
  • "role": "employee"
}

Update employee

Authorizations:
bearerAuth
path Parameters
id
required
string
Example: dfb50988-88ff-4dd1-bac0-c860fe70befc

The id to filter by

Request Body schema: application/json
required

Updated employee

name
required
string

Responses

Request samples

Content type
application/json
{
  • "name": "サイトウ"
}

Response samples

Content type
application/json
{
  • "success": true
}

Delete employee by id

Authorizations:
bearerAuth
path Parameters
id
required
string
Example: dfb50988-88ff-4dd1-bac0-c860fe70befc

The id to filter by

Responses

Get all vehicles

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new vehicle

Authorizations:
bearerAuth
Request Body schema: application/json
required

Created vehicle

name
required
string
capacity
required
integer
plate
required
string

Responses

Request samples

Content type
application/json
{
  • "name": "ハイエース",
  • "capacity": 8,
  • "plate": "1234"
}

Response samples

Content type
application/json
{
  • "id": "1b451a10-afc1-40e1-b3b4-e0dc5ecd4d6c",
  • "name": "ハイエース",
  • "capacity": 8,
  • "plate": "1234"
}

Update vehicle

Authorizations:
bearerAuth
path Parameters
id
required
string
Example: 0cbb29a8-e10f-4794-9458-298fde2973ab

The id to filter by

Request Body schema: application/json
required

Updated vehicle

name
required
string
capacity
required
integer
plate
required
string

Responses

Request samples

Content type
application/json
{
  • "name": "ハイエース",
  • "capacity": 8,
  • "plate": "1234"
}

Response samples

Content type
application/json
{
  • "id": "1b451a10-afc1-40e1-b3b4-e0dc5ecd4d6c",
  • "name": "ハイエース",
  • "capacity": 8,
  • "plate": "1234"
}

Delete vehicle by id

Authorizations:
bearerAuth
path Parameters
id
required
string
Example: 0cbb29a8-e10f-4794-9458-298fde2973ab

The id to filter by

Responses

Response samples

Content type
application/json
{
  • "success": true
}

Get all holidays

Authorizations:
bearerAuth
query Parameters
since
string
Example: since=2023-01-01

since date to filter by

until
string
Example: until=2023-01-31

until date to filter by

Responses

Response samples

Content type
application/json
{
  • "holidays": [
    ]
}

Create new holidays

Authorizations:
bearerAuth
Request Body schema: application/json
required

Created holiday

dates
required
Array of strings
title
required
string

Responses

Request samples

Content type
application/json
{
  • "dates": [
    ],
  • "title": "正月休み"
}

Delete holiday by id

Authorizations:
bearerAuth
path Parameters
date
required
string
Example: 2020-01-31

The date to filter by

Responses

children

Operations about children

Get all children

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Add children manually

Authorizations:
bearerAuth
Request Body schema: application/json
required
Array
name
required
string
school
required
string
spotName
required
string
spotAddress
required
string

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Get child by id

Authorizations:
bearerAuth
path Parameters
id
required
string
Example: 0cbb29a8-e10f-4794-9458-298fde2973ab

The id to filter by

Responses

Response samples

Content type
application/json
{
  • "id": "5a8d0cf2-a6c7-42ed-b266-4a7b391d74f2",
  • "name": "サイトウジュニア",
  • "school": {
    },
  • "parent": {
    },
  • "spots": [
    ]
}

Delete child by id

Authorizations:
bearerAuth
path Parameters
id
required
string
Example: 0cbb29a8-e10f-4794-9458-298fde2973ab

The id to filter by

Responses

Update child's spot by id

Authorizations:
bearerAuth
path Parameters
id
required
string
Example: 0cbb29a8-e10f-4794-9458-298fde2973ab

The child id to filter by

spotId
required
string
Example: 0cbb29a8-e10f-4794-9458-298fde2973ab

The spot id to filter by

Request Body schema: application/json
required
name
required
string
address
required
string

Responses

Request samples

Content type
application/json
{
  • "name": "おばあちゃん宅",
  • "address": "福岡県福岡市中央区大名123-4大名ビル2階201"
}

others

Everything about others

Get all schools

Authorizations:
bearerAuth
query Parameters
q
string

The query to filter by

Responses

Response samples

Content type
application/json
[
  • {
    }
]