-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7c3ae25
commit e10594b
Showing
48 changed files
with
1,685 additions
and
7 deletions.
There are no files selected for viewing
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
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
45 changes: 45 additions & 0 deletions
45
server/app/build/openapi/src/main/kotlin/mu/muse/rest/api/AddFavoriteApi.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.8.0). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package mu.muse.rest.api | ||
|
||
import mu.muse.rest.dto.ClientError | ||
import mu.muse.rest.dto.InstrumentId | ||
import mu.muse.rest.dto.ServerError | ||
import org.springframework.http.HttpStatus | ||
import org.springframework.http.MediaType | ||
import org.springframework.http.ResponseEntity | ||
|
||
import org.springframework.web.bind.annotation.* | ||
import org.springframework.validation.annotation.Validated | ||
import org.springframework.web.context.request.NativeWebRequest | ||
import org.springframework.beans.factory.annotation.Autowired | ||
|
||
import jakarta.validation.constraints.DecimalMax | ||
import jakarta.validation.constraints.DecimalMin | ||
import jakarta.validation.constraints.Email | ||
import jakarta.validation.constraints.Max | ||
import jakarta.validation.constraints.Min | ||
import jakarta.validation.constraints.NotNull | ||
import jakarta.validation.constraints.Pattern | ||
import jakarta.validation.constraints.Size | ||
import jakarta.validation.Valid | ||
|
||
import kotlin.collections.List | ||
import kotlin.collections.Map | ||
|
||
@RestController | ||
@Validated | ||
interface AddFavoriteApi { | ||
|
||
|
||
@RequestMapping( | ||
method = [RequestMethod.POST], | ||
value = ["/api/favorite/add"], | ||
produces = ["application/json"], | ||
consumes = ["application/json"] | ||
) | ||
fun addFavorite( @Valid @RequestBody instrumentId: InstrumentId): ResponseEntity<kotlin.Any> | ||
} |
19 changes: 19 additions & 0 deletions
19
server/app/build/openapi/src/main/kotlin/mu/muse/rest/api/ApiUtil.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package mu.muse.rest.api | ||
|
||
import org.springframework.web.context.request.NativeWebRequest | ||
|
||
import jakarta.servlet.http.HttpServletResponse | ||
import java.io.IOException | ||
|
||
object ApiUtil { | ||
fun setExampleResponse(req: NativeWebRequest, contentType: String, example: String) { | ||
try { | ||
val res = req.getNativeResponse(HttpServletResponse::class.java) | ||
res?.characterEncoding = "UTF-8" | ||
res?.addHeader("Content-Type", contentType) | ||
res?.writer?.print(example) | ||
} catch (e: IOException) { | ||
throw RuntimeException(e) | ||
} | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
server/app/build/openapi/src/main/kotlin/mu/muse/rest/api/BasicLoginApi.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.8.0). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package mu.muse.rest.api | ||
|
||
import mu.muse.rest.dto.JwtResponse | ||
import mu.muse.rest.dto.ServerError | ||
import mu.muse.rest.dto.UsernameAndPasswordRequestBody | ||
import org.springframework.http.HttpStatus | ||
import org.springframework.http.MediaType | ||
import org.springframework.http.ResponseEntity | ||
|
||
import org.springframework.web.bind.annotation.* | ||
import org.springframework.validation.annotation.Validated | ||
import org.springframework.web.context.request.NativeWebRequest | ||
import org.springframework.beans.factory.annotation.Autowired | ||
|
||
import jakarta.validation.constraints.DecimalMax | ||
import jakarta.validation.constraints.DecimalMin | ||
import jakarta.validation.constraints.Email | ||
import jakarta.validation.constraints.Max | ||
import jakarta.validation.constraints.Min | ||
import jakarta.validation.constraints.NotNull | ||
import jakarta.validation.constraints.Pattern | ||
import jakarta.validation.constraints.Size | ||
import jakarta.validation.Valid | ||
|
||
import kotlin.collections.List | ||
import kotlin.collections.Map | ||
|
||
@RestController | ||
@Validated | ||
interface BasicLoginApi { | ||
|
||
|
||
@RequestMapping( | ||
method = [RequestMethod.POST], | ||
value = ["/api/auth/login"], | ||
produces = ["application/json"], | ||
consumes = ["application/json"] | ||
) | ||
fun basicLogin( @Valid @RequestBody usernameAndPasswordRequestBody: UsernameAndPasswordRequestBody): ResponseEntity<JwtResponse> | ||
} |
45 changes: 45 additions & 0 deletions
45
server/app/build/openapi/src/main/kotlin/mu/muse/rest/api/CreateInstrumentApi.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.8.0). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package mu.muse.rest.api | ||
|
||
import mu.muse.rest.dto.ClientError | ||
import mu.muse.rest.dto.CreateInstrumentRequestBody | ||
import mu.muse.rest.dto.ServerError | ||
import org.springframework.http.HttpStatus | ||
import org.springframework.http.MediaType | ||
import org.springframework.http.ResponseEntity | ||
|
||
import org.springframework.web.bind.annotation.* | ||
import org.springframework.validation.annotation.Validated | ||
import org.springframework.web.context.request.NativeWebRequest | ||
import org.springframework.beans.factory.annotation.Autowired | ||
|
||
import jakarta.validation.constraints.DecimalMax | ||
import jakarta.validation.constraints.DecimalMin | ||
import jakarta.validation.constraints.Email | ||
import jakarta.validation.constraints.Max | ||
import jakarta.validation.constraints.Min | ||
import jakarta.validation.constraints.NotNull | ||
import jakarta.validation.constraints.Pattern | ||
import jakarta.validation.constraints.Size | ||
import jakarta.validation.Valid | ||
|
||
import kotlin.collections.List | ||
import kotlin.collections.Map | ||
|
||
@RestController | ||
@Validated | ||
interface CreateInstrumentApi { | ||
|
||
|
||
@RequestMapping( | ||
method = [RequestMethod.POST], | ||
value = ["/api/instrument/create"], | ||
produces = ["application/json"], | ||
consumes = ["application/json"] | ||
) | ||
fun createInstrument( @Valid @RequestBody createInstrumentRequestBody: CreateInstrumentRequestBody): ResponseEntity<kotlin.Any> | ||
} |
43 changes: 43 additions & 0 deletions
43
server/app/build/openapi/src/main/kotlin/mu/muse/rest/api/DeleteInstrumentByIdApi.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.8.0). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package mu.muse.rest.api | ||
|
||
import mu.muse.rest.dto.ClientError | ||
import mu.muse.rest.dto.ServerError | ||
import org.springframework.http.HttpStatus | ||
import org.springframework.http.MediaType | ||
import org.springframework.http.ResponseEntity | ||
|
||
import org.springframework.web.bind.annotation.* | ||
import org.springframework.validation.annotation.Validated | ||
import org.springframework.web.context.request.NativeWebRequest | ||
import org.springframework.beans.factory.annotation.Autowired | ||
|
||
import jakarta.validation.constraints.DecimalMax | ||
import jakarta.validation.constraints.DecimalMin | ||
import jakarta.validation.constraints.Email | ||
import jakarta.validation.constraints.Max | ||
import jakarta.validation.constraints.Min | ||
import jakarta.validation.constraints.NotNull | ||
import jakarta.validation.constraints.Pattern | ||
import jakarta.validation.constraints.Size | ||
import jakarta.validation.Valid | ||
|
||
import kotlin.collections.List | ||
import kotlin.collections.Map | ||
|
||
@RestController | ||
@Validated | ||
interface DeleteInstrumentByIdApi { | ||
|
||
|
||
@RequestMapping( | ||
method = [RequestMethod.GET], | ||
value = ["/api/instrument/{instrumentId}/delete"], | ||
produces = ["application/json"] | ||
) | ||
fun deleteInstrumentById( @PathVariable("instrumentId") instrumentId: kotlin.Long): ResponseEntity<kotlin.Any> | ||
} |
45 changes: 45 additions & 0 deletions
45
server/app/build/openapi/src/main/kotlin/mu/muse/rest/api/EditInstrumentApi.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.8.0). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package mu.muse.rest.api | ||
|
||
import mu.muse.rest.dto.ClientError | ||
import mu.muse.rest.dto.EditInstrumentRequestBody | ||
import mu.muse.rest.dto.ServerError | ||
import org.springframework.http.HttpStatus | ||
import org.springframework.http.MediaType | ||
import org.springframework.http.ResponseEntity | ||
|
||
import org.springframework.web.bind.annotation.* | ||
import org.springframework.validation.annotation.Validated | ||
import org.springframework.web.context.request.NativeWebRequest | ||
import org.springframework.beans.factory.annotation.Autowired | ||
|
||
import jakarta.validation.constraints.DecimalMax | ||
import jakarta.validation.constraints.DecimalMin | ||
import jakarta.validation.constraints.Email | ||
import jakarta.validation.constraints.Max | ||
import jakarta.validation.constraints.Min | ||
import jakarta.validation.constraints.NotNull | ||
import jakarta.validation.constraints.Pattern | ||
import jakarta.validation.constraints.Size | ||
import jakarta.validation.Valid | ||
|
||
import kotlin.collections.List | ||
import kotlin.collections.Map | ||
|
||
@RestController | ||
@Validated | ||
interface EditInstrumentApi { | ||
|
||
|
||
@RequestMapping( | ||
method = [RequestMethod.POST], | ||
value = ["/api/instrument/edit"], | ||
produces = ["application/json"], | ||
consumes = ["application/json"] | ||
) | ||
fun editInstrument( @Valid @RequestBody editInstrumentRequestBody: EditInstrumentRequestBody): ResponseEntity<kotlin.Any> | ||
} |
44 changes: 44 additions & 0 deletions
44
server/app/build/openapi/src/main/kotlin/mu/muse/rest/api/GetCountriesApi.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.8.0). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package mu.muse.rest.api | ||
|
||
import mu.muse.rest.dto.ClientError | ||
import mu.muse.rest.dto.GetCountriesResponse | ||
import mu.muse.rest.dto.ServerError | ||
import org.springframework.http.HttpStatus | ||
import org.springframework.http.MediaType | ||
import org.springframework.http.ResponseEntity | ||
|
||
import org.springframework.web.bind.annotation.* | ||
import org.springframework.validation.annotation.Validated | ||
import org.springframework.web.context.request.NativeWebRequest | ||
import org.springframework.beans.factory.annotation.Autowired | ||
|
||
import jakarta.validation.constraints.DecimalMax | ||
import jakarta.validation.constraints.DecimalMin | ||
import jakarta.validation.constraints.Email | ||
import jakarta.validation.constraints.Max | ||
import jakarta.validation.constraints.Min | ||
import jakarta.validation.constraints.NotNull | ||
import jakarta.validation.constraints.Pattern | ||
import jakarta.validation.constraints.Size | ||
import jakarta.validation.Valid | ||
|
||
import kotlin.collections.List | ||
import kotlin.collections.Map | ||
|
||
@RestController | ||
@Validated | ||
interface GetCountriesApi { | ||
|
||
|
||
@RequestMapping( | ||
method = [RequestMethod.GET], | ||
value = ["/api/countries"], | ||
produces = ["application/json"] | ||
) | ||
fun getCountries(): ResponseEntity<GetCountriesResponse> | ||
} |
44 changes: 44 additions & 0 deletions
44
server/app/build/openapi/src/main/kotlin/mu/muse/rest/api/GetInstrumentBasicMaterialsApi.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/** | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (7.8.0). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
package mu.muse.rest.api | ||
|
||
import mu.muse.rest.dto.ClientError | ||
import mu.muse.rest.dto.GetInstrumentBasicMaterialsResponse | ||
import mu.muse.rest.dto.ServerError | ||
import org.springframework.http.HttpStatus | ||
import org.springframework.http.MediaType | ||
import org.springframework.http.ResponseEntity | ||
|
||
import org.springframework.web.bind.annotation.* | ||
import org.springframework.validation.annotation.Validated | ||
import org.springframework.web.context.request.NativeWebRequest | ||
import org.springframework.beans.factory.annotation.Autowired | ||
|
||
import jakarta.validation.constraints.DecimalMax | ||
import jakarta.validation.constraints.DecimalMin | ||
import jakarta.validation.constraints.Email | ||
import jakarta.validation.constraints.Max | ||
import jakarta.validation.constraints.Min | ||
import jakarta.validation.constraints.NotNull | ||
import jakarta.validation.constraints.Pattern | ||
import jakarta.validation.constraints.Size | ||
import jakarta.validation.Valid | ||
|
||
import kotlin.collections.List | ||
import kotlin.collections.Map | ||
|
||
@RestController | ||
@Validated | ||
interface GetInstrumentBasicMaterialsApi { | ||
|
||
|
||
@RequestMapping( | ||
method = [RequestMethod.GET], | ||
value = ["/api/instrument/materials"], | ||
produces = ["application/json"] | ||
) | ||
fun getInstrumentBasicMaterials(): ResponseEntity<GetInstrumentBasicMaterialsResponse> | ||
} |
Oops, something went wrong.